Skip to main content

Python interface of struqture, the HQS tool for representing operators, Hamiltonians and open systems.

Project description

Struqture

Struqture is a Rust (struqture) and Python (struqture-py) library by HQS Quantum Simulations to represent quantum mechanical operators, Hamiltonians and open quantum systems. The library supports building spin objects, fermionic objects, bosonic objects and mixed system objects that contain arbitrary many spin, fermionic and bosonic subsystems.

Struqture has been developed to create and exchange definitions of operators, Hamiltonians and open systems. A special focus is the use as input to quantum computing simulation software.

To best support this use case, struqture has a number of design goals:

  • Support for arbitrary spin, bosonic, fermionic and mixed systems
  • Full serialisation support to json and other formats
  • Preventing construction of unphysical objects by using well defined types for all objects in struqture
  • Support of symbolic values in operators, Hamiltonians and open systems

Following these design goals, we prioritize using distinctive types to construct objects over a less verbose syntax. Similarly the support of symbolic expression leads to a trade-off in speed compared to an implementation using only floating point values. Struqture is designed to also support the construction and (de)serialisation of large operators but for the use in numeric algorithms we recommend transforming Operators and Hamiltonians into a sparse matrix form.

Documentation

We recommend users to start with the user documentation for stuqture and struqture-py. The user documentation is intended to give a high level overview of the design and usage of struqture. For a full list of the available data types and functions see the API-Documentation of struqture and struqture-py.

Installation

Python

You can install struqture_py from PyPi. For x86 Linux, Windows and macOS systems pre-built wheels are available. On other platforms a local Rust toolchain is required to compile the Python source distribution.

pip install struqture-py

Rust

You can use struqture in your Rust project by adding

struqture = { version = "1.2" }

to your Cargo.toml file.

This project has been partly supported by PlanQK and is partially supported by QSolid and PhoQuant.

Contributing

We welcome contributions to the project. If you want to contribute code, please have a look at CONTRIBUTE.md for our code contribution guidelines.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

struqture_py-2.0.0a15.tar.gz (421.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

struqture_py-2.0.0a15-cp313-cp313-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.13Windows x86-64

struqture_py-2.0.0a15-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

struqture_py-2.0.0a15-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

struqture_py-2.0.0a15-cp313-cp313-macosx_11_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

struqture_py-2.0.0a15-cp313-cp313-macosx_10_12_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

struqture_py-2.0.0a15-cp312-cp312-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.12Windows x86-64

struqture_py-2.0.0a15-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

struqture_py-2.0.0a15-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

struqture_py-2.0.0a15-cp312-cp312-macosx_11_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

struqture_py-2.0.0a15-cp312-cp312-macosx_10_12_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

struqture_py-2.0.0a15-cp311-cp311-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.11Windows x86-64

struqture_py-2.0.0a15-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

struqture_py-2.0.0a15-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

struqture_py-2.0.0a15-cp311-cp311-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

struqture_py-2.0.0a15-cp311-cp311-macosx_10_12_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

struqture_py-2.0.0a15-cp310-cp310-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.10Windows x86-64

struqture_py-2.0.0a15-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

struqture_py-2.0.0a15-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

struqture_py-2.0.0a15-cp310-cp310-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

struqture_py-2.0.0a15-cp310-cp310-macosx_10_12_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

struqture_py-2.0.0a15-cp39-cp39-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.9Windows x86-64

struqture_py-2.0.0a15-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

struqture_py-2.0.0a15-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

struqture_py-2.0.0a15-cp39-cp39-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

struqture_py-2.0.0a15-cp39-cp39-macosx_10_12_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.9macOS 10.12+ x86-64

File details

Details for the file struqture_py-2.0.0a15.tar.gz.

File metadata

  • Download URL: struqture_py-2.0.0a15.tar.gz
  • Upload date:
  • Size: 421.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for struqture_py-2.0.0a15.tar.gz
Algorithm Hash digest
SHA256 61ff03261e5750728f1990d2b71a38706e2759692ac6d69d067e7a85a27eda64
MD5 0ea5226fd321fdd2f577584400fec4cf
BLAKE2b-256 9ce0a61c6b4980ff62995812b11b1579fc01be9f28b19e4af81272f0aa74a4b9

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1deea8bb6262c8cba69c08fb893b8c22b1399ef33a3fc1bea180070587671c05
MD5 25060968202db4ff774966d025967492
BLAKE2b-256 ccf63ebc09308950d9f46705e1eb7309ebcd5fb9067b30a2f021fe9d359cb065

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c948246f977b063d85c7643bb2e8680608f44c5d3e67d164ed96fea86a8bb8b9
MD5 2fee51b23968a0f6c21782e9b997cfe2
BLAKE2b-256 5c68763784f20813cb1e4822b3e8f22f81cf8862edf36c95fe10319c8216fa75

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6ca994f2f0bccc631135549a273c96738d28cf5b2873d78664b2fe7953eebe71
MD5 fa0ff769a96125fb2739360c52b63dfb
BLAKE2b-256 cf428ec2678372e6049d318a76d6ae35be48e4f4854edbdd331a0d1c7220fc20

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 455ba89d49e0fda472fc6d1cdd3c08f04805e31ee847b621f1b4c8d9d9c6b7e6
MD5 b9334a31971329657a0d7fc05ec5d4b0
BLAKE2b-256 709d6191a7df122b1fe3931cb0604d6469c83d21ba0ee714f8ab5f82ac47c1dd

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4c815bdf1fd2f1303b2adca311ae941a8c465c4636dd1fb9f7b8aa6c16ae9d3d
MD5 e1f7c204a19bf81bc0efb4727d820839
BLAKE2b-256 c1d216079c32f4ec551fd31500ba417547f7470800ff3e0490e3e6f3fe98db0d

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 76489620367d3ff17617d58484d2454fcd0dce60817617861d8630e797efccd4
MD5 4f3894d59e56bbe24ce9facbbc0605de
BLAKE2b-256 7922f9092b362f0dfb1b3e1e2e57648d152b599c196561530e388703a895025e

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2467ed0bf06cfd7a6ab41df03d494802a7172215b8b4df15b8196a1e355c3d27
MD5 30470d9fb0a3c374cf87aae08227a346
BLAKE2b-256 9fa3021a04bc17d477bcb19bff582a4c5ae03d6dd5bed7c1aa2632df213b083a

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 657c48df09d06617c9395aa5338a1a34014abefbec7980c3b59e3c14161bab1a
MD5 960d103c4049f965500d7719f8ae3bb6
BLAKE2b-256 588f744662bab5c2a528555d5b71de1faec099dd7227d7458832136cf6acca69

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 663a63848fa379a5425d706ef8d00d4618e26816c8cf4b64e40dcb38c53a098c
MD5 40848f6e85aee3ae4e8dbc13bc123486
BLAKE2b-256 416ff6c37667cde02f4806c436cdf71ac9177e3098a94a43698d37b5a3a33aff

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7fa46f5030913e787a8b61effe67f91b9997f9a7a95cb9de06cde33b8e708771
MD5 913495b72fb03a640eee83e4f95c7323
BLAKE2b-256 d89c745e24658220727551d66c7c224261d597804209beb44956af1da8a07b85

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7ffddcef10b3e832312d5b98b9815983d202628e57338e57150d46df391a4a6a
MD5 db222416971bf2cfdf45a27c2b0e2f83
BLAKE2b-256 a6542060839674e8d6c3c9dafb90f9894081fdd3a146868ebb5b54f3d928c358

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3d90b5568264957de92ff95321bd918c0a82a76223bad35ea47d29cda68f5d50
MD5 1d1e0ed9988561d05f90162bd98ed784
BLAKE2b-256 7afb2fb2c76dc049925e2a81c86d2ce0348c6fab81c86b5bf418b80217d04013

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 98ec01ef21d8fb854d72d9e52d788b6f82fd4f0146aeef2a632cc099da46d0ac
MD5 1b65b7164e3d04284c2dd203941ec54f
BLAKE2b-256 cec6026ea64002c3b8f70fe79e86cee0143b890eb97605bcd16952f43d4cc253

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8b263fbd7f22cd1e84b593f1821a215caa5cae93c23f1b98ed7d4d29bfdcd893
MD5 aa270f1aaf4a758d0ff7c8cb6209f49e
BLAKE2b-256 319c99ed8e23fca0086444a2fb669bb4949db89f446329ebac4dd5a76c28bd0d

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e1dce53395d0f8f21d612591ff542e2f554e68725059761fbf5aa45bd6fd579b
MD5 44047104424e980b27d0727122074af7
BLAKE2b-256 961c51171be69fe91566709afb8f16a6fdcb8c5c0761d86303e9c5aa2e81db82

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 aec13acbe2ecd8952051ad552c1455e54990b8e6ad9635493a7b61761f423736
MD5 8a2d5036c188992ca9d4c167c63277b3
BLAKE2b-256 e7682577c5e3133d709006365a0f5297125ca168cbefc3e000f7b6cd1fe38df9

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eec4cf714c7eeb467167d29db9537dca956d4346e9ea3eade47829e0e5064038
MD5 0170bb3e9f40ccfc144e41cac8beb162
BLAKE2b-256 b188e0d4bbc7491b8e545c992a5282cc73cb363c0f449fd35a80769b8302b008

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d2776c5a325c10827d10071d9a91c54551be469376ae0a5cc277d5de0054af3b
MD5 4c9e104c3b170b31d8b4013bf3c74ecf
BLAKE2b-256 403e4a497d856913ad3b04f456bc846eaba08bf97f065fc3dded9cf523895e71

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cf384a4bb5d03cb7b473e9438d7898b1175eda0859c7ff7218c3c59668e5b85d
MD5 00d31765f74582aa0a810ead90cedda1
BLAKE2b-256 daf989d11b0d5f5e788047e270d8bdcbead95d1ec275e75b4c1a028813d8e89f

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 63cfd004ee840c18509769c9f9fd88bb8f2e5dd9a00333e8203d49a5d5c0169f
MD5 8debb621bcefbb4a2ec641337c5321ea
BLAKE2b-256 4dae8b312b1612ef0d64a16d60029c24e0673862c635fb8b5d12c3ce64981175

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e1133e074af2ec4fe162d7d2a0f4fdf3fb0a8b8f7f673f3b0e9b4e535a30281b
MD5 9014b468b3e70aef2632df8698fe60ec
BLAKE2b-256 17dcc850c98c56677a735f5fafd700f7ae4db3243334201c45920e3e7901e5e0

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 28bbd524659d36a14089e279b4c1524b541b82490d62a6f39cde12c3f8110f4f
MD5 a05ce13e2f4286e9f7ab8a4063602c30
BLAKE2b-256 850f2914254e6536117b77dd9902e66e2fdc46dc88443fbea5505077384a0cb8

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 cac85e679b80b4e28fd48ff64ced46eaa394480cc0ca9e9bf779d6b008dfa0d8
MD5 fedeb87cc0e9f36807f8c9265089b3a8
BLAKE2b-256 7361eef231adfadfbd8033c87eb497109b5c7512b48af9b9d97bcfaccc81551e

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7e863a31dc0aec00ca860f58356da8b9be79d6dc02c48cf44b5de395516bf887
MD5 812689f43c4e50883b2a8d8d1fa901b7
BLAKE2b-256 2e9ef0c9e673090d9d356726b9d16689dc5d420b32ef37f6a52b9982c9facd11

See more details on using hashes here.

File details

Details for the file struqture_py-2.0.0a15-cp39-cp39-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for struqture_py-2.0.0a15-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ba4f7f7bfb400b539d03aa13221a238e9928339d2f34f4a1ac4073cc1aef60e5
MD5 77d359f7fc22432d5185fbbc3cec58db
BLAKE2b-256 59b4ddba8fb0e330258338098b00eb2db6714fb2a1488922d425ff1a413d4741

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page