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.

struqture

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 systems 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

struqture_py-1.11.1-cp313-cp313-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.13Windows x86-64

struqture_py-1.11.1-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-1.11.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

struqture_py-1.11.1-cp312-cp312-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.12Windows x86-64

struqture_py-1.11.1-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-1.11.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

struqture_py-1.11.1-cp312-cp312-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

struqture_py-1.11.1-cp312-cp312-macosx_10_12_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

struqture_py-1.11.1-cp311-cp311-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.11Windows x86-64

struqture_py-1.11.1-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-1.11.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

struqture_py-1.11.1-cp311-cp311-macosx_10_12_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

struqture_py-1.11.1-cp310-cp310-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.10Windows x86-64

struqture_py-1.11.1-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-1.11.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

struqture_py-1.11.1-cp310-cp310-macosx_10_12_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

struqture_py-1.11.1-cp39-cp39-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.9Windows x86-64

struqture_py-1.11.1-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-1.11.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.1 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.9macOS 11.0+ ARM64

struqture_py-1.11.1-cp39-cp39-macosx_10_12_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.9macOS 10.12+ x86-64

File details

Details for the file struqture_py-1.11.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f419d368ed21f1d56683e6ac074a203c1ce5b9905025c804c0c7258347d68323
MD5 1f6f1846fbcff72d767a91a483cc3549
BLAKE2b-256 f648b22263a9a8c7db3792241d43828458f7e50f19d9e130d8e6acc473ba32e3

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 de09b15d0f9e1be1eb2d4b282367704ac15eecec16dafcb2df1616cb65e514d3
MD5 dfba824e0832c528116900f2f0cb0900
BLAKE2b-256 556afb3a2a432f660f7ceff982b43cb17ad78409072105f9a5417fa2e984518f

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 18fd82b60ce3bbeeafcfb9339925dae9570331c9829b901c6885e62197af304c
MD5 0e607766d9cdb68e6940e3b737e88d9c
BLAKE2b-256 f8f588e073242e70c65e346f204ab08707455b63dce6e5711bdc59e1cd0417b9

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3052cf9117933c9095ea43d18a4ad65597575d8235a3accbc49200a28c70f2ad
MD5 db974bfd87d915e7e7466f445931659f
BLAKE2b-256 a81bf525b86f7f8806d701813246076fc9c5a5eefd01271b06148c26bab2d012

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 74298d3e9fd52807cc0bfd388f60a621091d8a3154f50ed14e9252336c1552c5
MD5 0b5faa823e76973f490a9261217cebcb
BLAKE2b-256 981a5f6c30ddc9a6b19bf73497fb1e5558c737be9820ff96f1aa9fe20437957d

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a436a6512b414a45c6e2268169936cfafab58ef7d48deca852b356f621f1136f
MD5 6de746f60fe3c72093011c534f430ae8
BLAKE2b-256 1725a76e20deabb81cfa78b762eda1282796ac61da30ac3ebbd563cd089649f1

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ce2d63c78fdccd2dc62f16a1970e70b52903b9434241e73c3a9cb4e21c9295f
MD5 f7c5c8a93cd25202523968efacffe2fa
BLAKE2b-256 2f0dc4ec1eb18015156d0689148cf3f12ad37708c32d07bd729bc34c7aa3289f

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.1-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 814fe150845beb20e02c7dca8254088935a3c5e6fdd41cea42e18a1b26b54682
MD5 f887d8fb2bf7f657ffa370cfaed094af
BLAKE2b-256 16716d9d5732211f8e0d5f81781c7d2d20edd1fa0fdff0c4a5a9f7c79b388ce4

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 882909f83b0b5f6aadcb6f5681ac044e7797e90e2557b19b8599bc2301fa003d
MD5 4f9c92b32983016ade207573cd6595ff
BLAKE2b-256 48693bc4ec4ab4f097f06c1278a6d21c39ca02dff7cff52d0a1ec153ad6311ce

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7a315d66c73a3d29fb2b6bbbfced2f121e2f199fd9bb7e5249905b88e495c4cf
MD5 5c840949d66b8e8f0f26593cca20f7ea
BLAKE2b-256 11a68a87f65d7e2dadddd7c54229ebe011cd5d0ca42031fbe601b91d4a5a16b9

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3fae971d34fed7e8a70dc9054ee2a47e49d595a263606c61da35a3c757e7c670
MD5 1e56167a4f8f743e8a29e166caf44444
BLAKE2b-256 d8d8bceec19afd7e5768dd1036d47c57ba0d7ebc5c2df2ecd4f28b15a5d253ec

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 acaf0ad80b1119cd6cb89ea8827243eb3ecf14483c7c46a408139873f997e845
MD5 41ccc820ae72c8886e15877440750a14
BLAKE2b-256 8329b69746310d71794d941144c1b08b60387cc3caebc5d60f39034534af776e

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.1-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 da4c3dbf2890bd9ab7badbf69cd07e60f61aaa2dae64610243cb89ea37e3c0b7
MD5 76f5daa6c7b845833c4b7b172c370af3
BLAKE2b-256 523ed74df960d5f30d4d675afe78c86279196c45b7ac51ea1f77a23ef9a1fefe

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 97a0cea84274c8b5745a41d130f04d888b8099b20712251cb7372e36020d053d
MD5 05f6e528df478a2ed268be31131a79f0
BLAKE2b-256 6dcf46002ef33d17ae5af465986b88bb5d4ac7adbb2c2a81873e8e50a4b24fd0

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 edc2226515394fa18ce02ef28042e21787870c2f7089332edc8733243b4af802
MD5 0baef62102bd5f5780449d88d13fbfae
BLAKE2b-256 0f68319d96be420c2d7963e5f67bd678d24a0c811af397f3ed5a35a3be673ca0

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e148cfceabb03e7dca5f58084b1de203ee002ae3d169c2399170297f50c86bf7
MD5 b7b0b5651c59c33d78553f13cd88bc41
BLAKE2b-256 386f2061159fa283e803a5a4fb08137b83163c08f4f1a4e7a0e3f211095efe1a

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7958213d72e73c89f2b54b117e5c1fccb2281c1e5a1c47734fff383774c2ed3e
MD5 bc4d5c741bba6a79ed6fd95d3afe3c75
BLAKE2b-256 13e9687033b8dcd5b8144f30003bd9323e40e87aaff89e39ce3f25c4c3e01b85

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.1-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.1-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 69b7ba873a49c02b9ce5d09e99448d1a987d236e4a6d4339e10fc7ea3723b1d3
MD5 0996d073b82e779ed0cb6830f90b4439
BLAKE2b-256 44077fdba3ff0bca3c38546d791555692b7ba300cabf9887ce6866ced88bd692

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.1-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b0a146c88faff0c4e85e475c7f5a6cbda66257603af05e150204bc16c0527768
MD5 e2bee1df8b77d955b92cb0d05db9bbe5
BLAKE2b-256 678dcd92fd59118ed063f7d0ea6fb4d097c40364ad131e7fd3e2dddb9a18aa6e

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 53d1cabeddad4fb66af51cb9c66e563efb293ab0a3e1d4018dcdf2fe40a0ccc4
MD5 122be5083b27ed8156d4f781558428b6
BLAKE2b-256 ed5b82337d64102b9d83f71172bb691deabdf4a1003baeb71a13bb48c929bb6c

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 bd6b321e7a46821dc624ca92fd410a7e1c8ea2357117f4a47eb28c7f005e459d
MD5 9e1e89a4a87b73718ab7a3dcde1bd656
BLAKE2b-256 178e1035850845dd48931e8906f8db6bd59350b3ed96b18a1918e101da1f7d1c

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 52fa67e773b22bcc2f374cf330a4ab9ab632a341a9c8ab778fb4fe7ed2bcdff0
MD5 be8998cd9398a987febd7bdf0003e2f2
BLAKE2b-256 1a9b2c60d7383673324dc90131738e5f42f41016781afae9f56b844ff3ad1272

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.1-cp39-cp39-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.1-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3dc528bbae9c7a5320ae97c6c71fb78d0eb37ff629843f4e46f447a4648a8eff
MD5 fa57009d1d43f83af6ea95ce4a8018e7
BLAKE2b-256 9da8a41f5954969fb9e03a411d83fbf5da8f3e6bed3df0a02e61e7835f8b8c13

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