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 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-2.0.0a7-cp313-cp313-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.13Windows x86-64

struqture_py-2.0.0a7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

struqture_py-2.0.0a7-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

struqture_py-2.0.0a7-cp313-cp313-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

struqture_py-2.0.0a7-cp313-cp313-macosx_10_12_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

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

Uploaded CPython 3.12Windows x86-64

struqture_py-2.0.0a7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

struqture_py-2.0.0a7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

struqture_py-2.0.0a7-cp312-cp312-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

struqture_py-2.0.0a7-cp312-cp312-macosx_10_12_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

struqture_py-2.0.0a7-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

struqture_py-2.0.0a7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

struqture_py-2.0.0a7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

struqture_py-2.0.0a7-cp311-cp311-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

struqture_py-2.0.0a7-cp311-cp311-macosx_10_12_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

struqture_py-2.0.0a7-cp310-cp310-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.10Windows x86-64

struqture_py-2.0.0a7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

struqture_py-2.0.0a7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

struqture_py-2.0.0a7-cp310-cp310-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

struqture_py-2.0.0a7-cp310-cp310-macosx_10_12_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

struqture_py-2.0.0a7-cp39-cp39-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.9Windows x86-64

struqture_py-2.0.0a7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

struqture_py-2.0.0a7-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.3 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

struqture_py-2.0.0a7-cp39-cp39-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

struqture_py-2.0.0a7-cp39-cp39-macosx_10_12_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.9macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 67594bf10611f79ba64facb47f6b12f4984fe023147c4c2f4641db040f57ef3e
MD5 194ea1c1db4c42b137866f14992f2dcd
BLAKE2b-256 ae6272aa85da7a8c163f34cdcf3548a3bc581b232e3b62599dae47bd7bad3eb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 23f233317cc0a8c1b6263f1845a7642cebc55ead2bc14ea8bf9210a0db621ef9
MD5 c4531bf3b8d074ca003df11c8b592ccd
BLAKE2b-256 1999c1316a57d1278d1959b6445b8a031ceabfdac5ab5f612056f649dc915ab9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3214504349e1155482566db7a31c25ecacaf4e1551c76b63314cbdc2f2df72f2
MD5 f206f232fc00a6c3f16ecf76e897c808
BLAKE2b-256 0e51b029963778d81388fe0d76c55738c556d7faac08e697d78cef7081ad5422

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2d89269eb80235a58869dc0c463a489e5f9c686f8a53ec880a9b65ef9d3c0ca1
MD5 c8ff85b337209b1d4219e16058bb6a79
BLAKE2b-256 bea4e9dd14c91d7075a619cec1dc3319ff8eb35b3766912b14efc6dac38e9444

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 857b64a8f9527d87890233193d391f11d5581d71c48feedbbd85b8b0e9e85c9f
MD5 70335be029e575c4883264fffd38a76d
BLAKE2b-256 223f0d23b3a94fc6cca2438f49be29c90ffdff340772385b7372c82efa024ced

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c6005c14856cc271e4306d7e8728ec71bfcc240c92d324123f8a85aaeacc773a
MD5 1cb5bb5205c677c2d03522010e606214
BLAKE2b-256 b7d6bbb5780024e242b33abb8a27c2559562ad1ffece821395cb2844bec5cc3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 efd46655ce29651b5d9732207238b432d3aa2f4d3e88ca575f813396346edac5
MD5 351f9f277e3e5d4512bb8a8f0de08b78
BLAKE2b-256 32a8968d17d5beb1901f32e59125f2b96b6eb13810a0f1c11cc682e585d1a0cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 37080db153eabcfde9349c2f7de81f088d5cbea3a8df23ae2953e2f8345f0192
MD5 409e4bdd4a08b3d8385fadfac0580f39
BLAKE2b-256 c74644efc4d00e5650bf78b2f20576d77b7042800450727755a65928ad9c0907

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f6dfc8a22297d64d837b0e6bd92cc42f0ffe4899063a8f510c2a04ff3d3eda2c
MD5 3347be3cc53f14ce5be5707385d931b8
BLAKE2b-256 56ab3825750cdbf3ada167e12342fb95b0de0f7de162f0b8580e7fd44af1e9b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 20ee1bb65109099485f64833a0c33b68e35397cb609b6722edc0d7e358564c3a
MD5 d0842f253307c710dc18cad96b2f0b6e
BLAKE2b-256 e4837fe2cb12063e82e203c7242a93135d3f10ce3cf634ebc8c27b61d4ae57d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0abfc585a4d8b3cc58b6562a94b82c00c616b0ff5346ed4fc13cea5f32540a97
MD5 f412615f4e63b1d883fdbf954bcee31e
BLAKE2b-256 4e9e781370d6a7ba6f7553f054746a220f901313dc91ea5653f74fe3df17a3a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eb7cba8959d7c17a4cf8b53ce72b4aff5595526641c5e81da7cd6a771f74ce3e
MD5 9f4d9d5c2200c6ff56ffb6de5f8f0fdd
BLAKE2b-256 70a4a6097b6f3932946536de6a3ab1d22c599a94b994e4c21d77e13dfcb5f808

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4895e9ec7384281544196e2fbca36f8f5e694dfbccbeeb8b09a91422ba8a8a4f
MD5 055cd558336bb025d0cf1881c8771d95
BLAKE2b-256 48846a0c4d1aa0b3da7bfc357cbe7f6f9dd1e39ddfd310d5b21cd6e4a05eef8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b50c297416d871b8d1b5f6e4cf9e7c236a53cf52bb9bc07026db483b22b7739b
MD5 0f10afb36caa62f7363b0fccd5d72256
BLAKE2b-256 0b672aec274d84bd5f90a07ca4fdc20e4dd8ad430cc3382a90428598400c9b54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9f75de55b21a594b422ed1751577b662f864842a110db51a409468a98bf152a5
MD5 5f4c095cf6cc3127bef044e33d032447
BLAKE2b-256 211d6d15c103c74de4dcc6b0cdbf6a2ca82abf7783118942c27b5e819a2fda0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0982575d9229605dfa579e268803c2fbe47b3f17985e29855441fb646bb0d971
MD5 04c29a23b54142f43951fe509b220b27
BLAKE2b-256 36c55c41d8df341a7fe2f7cec999a94e667897f8f20311f873c4f2d71f88b86d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 969242c2799c58398d83a394f7911439016e9fe1bdf3a282216d084536d2824f
MD5 e78b5f2da666c95c871516a07c735623
BLAKE2b-256 05d51584e4e4d8e820a7d663a7b888e08defb20241a82b8b6c7b3f082d1c5fe7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 92d62a8369b799873986a4a84930a141e4e0a32266a8d41a262f67b572dd560e
MD5 0f304fc9eaf828331dd90285196fa765
BLAKE2b-256 7cf5cdbed08d46c87d26a899839b7ab050cb6ebbe50c48bf60aca0dd32ae6cbd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76e7f1b4309e8d82677041742304601963cb80e7d09f688f98d4b11ce0504b11
MD5 f9ac859f3ee09af07065e7b38ded3833
BLAKE2b-256 83bc38fa654da71cb79fec547bdceacad3379ce9e2b83db5fc34f9a7018f6a1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 accb2a019f0468f625e47f739aea96401dea0900c91dfc323252fdb8f2f539b5
MD5 9d6de557e00ed3918464952b44ae619f
BLAKE2b-256 26db1f72edc99482909b62c749fd685fbb6571b281693cf90ed07a3822c87dba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d9d9dce1e4eb868fd61e258b782b910fbec6a28a8a31a99991343be8f1b13f7e
MD5 8fd6e767f3e0343be1c02142defd602f
BLAKE2b-256 0ae3f9158971f1b0742b6174bb3ac70cbe958dbf102a09d52a3e9b6125cdceb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 86f38bea5032f72fdbd3fcad1ff01dcf34ce5b7aed0de542da62df162d904c08
MD5 78a04da07207b204a8b012bc48129c70
BLAKE2b-256 243cc5ff3e471fab4bb2fee2c9066e8fcff94ca4f4686bf544145e52a36ccdff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 af35974c6863707b7a6f8db6dc56aa371f9e7801fbb5736f1d0e80896ddceee8
MD5 d547419c0cf72fdc255901f2ec8fc5f1
BLAKE2b-256 7c91ded16214be4be495ac85224442a9e0d346bda56f61a20aed1e53c2730158

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a438ee2cbf6985e25314af1af5d573c775e8af94734b675302c6c2eecb23f7b0
MD5 9c6e2be2b7647aecd5c70cb41964ee2b
BLAKE2b-256 b92b58cf608cb3c0d64d7f650dc8984e4c208ebdf54d26a2f6eba6001abbce09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-2.0.0a7-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 fcfd5b4e5eb8d3f2a2d26dc8d6578d5f4d1924b1cc5015b24ba2a469ccd13f14
MD5 e26abb50ca8196f1dd53594da55c2390
BLAKE2b-256 da0fe07a53a9ca3f78918afeffd36da67c2c2a362cdf3a64307e6ad685fd706d

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