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 Distribution

struqture_py-1.11.2.tar.gz (441.2 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-1.11.2-cp313-cp313-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.13Windows x86-64

struqture_py-1.11.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

struqture_py-1.11.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

struqture_py-1.11.2-cp313-cp313-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

struqture_py-1.11.2-cp313-cp313-macosx_10_12_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

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

Uploaded CPython 3.12Windows x86-64

struqture_py-1.11.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

struqture_py-1.11.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

struqture_py-1.11.2-cp312-cp312-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

struqture_py-1.11.2-cp312-cp312-macosx_10_12_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

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

Uploaded CPython 3.11Windows x86-64

struqture_py-1.11.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

struqture_py-1.11.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

struqture_py-1.11.2-cp311-cp311-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

struqture_py-1.11.2-cp311-cp311-macosx_10_12_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

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

Uploaded CPython 3.10Windows x86-64

struqture_py-1.11.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

struqture_py-1.11.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

struqture_py-1.11.2-cp310-cp310-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

struqture_py-1.11.2-cp310-cp310-macosx_10_12_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

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

Uploaded CPython 3.9Windows x86-64

struqture_py-1.11.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

struqture_py-1.11.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

struqture_py-1.11.2-cp39-cp39-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

struqture_py-1.11.2-cp39-cp39-macosx_10_12_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.9macOS 10.12+ x86-64

File details

Details for the file struqture_py-1.11.2.tar.gz.

File metadata

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

File hashes

Hashes for struqture_py-1.11.2.tar.gz
Algorithm Hash digest
SHA256 9f8f73741697b252b3bcdec583b73076a9421d4b531abc9cf43d81e2a2d4b913
MD5 0889a9825c1c8256ccdbc7db05f58e37
BLAKE2b-256 dd28445e0f486ca7c8088222dccaa79434d2933828fb416786e3c59d744cb12d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d44526dc0dc8f89ff9557225702139ac7de5083e2f377ac559aa2cffd3701103
MD5 f23ff177a1b78bae5ba5cdfaf6eaceb5
BLAKE2b-256 87ab3e198eb83c69efbf79d2929da68ee637593a5627d21ceecf31570c188080

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 05499f0eb0b610a2ef62d4d1616f8ac23418f583bf665281407b6a97e2d5bd6d
MD5 f9d80ced3578201a0ac0df32e0bb3af3
BLAKE2b-256 0fd7a3f8d7a651e3005501a1c841334160b0d41efb3bd67a3c1a0026cdd19d4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 84548a4f6014cebe0046a645c4516d13741e4534ee6e23dc72c9c6f476a66fb2
MD5 0ebe2891afa69ec9c26594107eaf6814
BLAKE2b-256 d2a6832462aa6517fe075264b85b28fa40ab6a5a6e3608e800923fbf896f466f

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.2-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fc4c498d020fbd4e248b1ecf8483fda172177ac6763412dc4765cebbda349d2d
MD5 eb02de17cbd72240e6cdab5db39919e9
BLAKE2b-256 d09d1c42049ea00270b8fbcbd1233a5590df0cd557de2e78bdbf455df21bed9b

See more details on using hashes here.

File details

Details for the file struqture_py-1.11.2-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 274eb2f83005ef4c4287cebf5b47a4f725348594a2c0f8735e1008471fcf25d5
MD5 a7100b80424ffdfe449989190d755faf
BLAKE2b-256 a4cc5aee385a4fd0364e4a5436ad8e5cf41a55b555687aeb68b0b3f8961bb96d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 28c0fb6a6fdd55adf2fb7d354e0c0a6b87c651dad6cdc52a36eb4c3d8ddb5024
MD5 fde316834a649eff834cc6910856a889
BLAKE2b-256 d8aba3139c3be2a9595b1b88d0390705ee531bda50f94b50b62dc4d521aca604

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bdf0ecda1e09dd0a6ff6f73c0a9479860ceed48c08f9c2c9a7b0df237e51cdca
MD5 cefcba078d478a026a29c8ccbbfbbfbb
BLAKE2b-256 c662c1958678b11640bb80c877e8b001cbe88170be1748d793744e1b793b19da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 70b5aa8c7b91155829a729ffaa6cc3d1085c67041b0574a126ea6fca9cc95ef3
MD5 65e883aaf42baf081559516de5dc8ce3
BLAKE2b-256 65b08b11c62b5ebbcdf746e7366e1758f50d35ed19a9d8f3256d1bc7899ce999

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9a4a4b89da7befaab5c65cc0cf12ff2b843e0577363a49cf7519190fde26a761
MD5 76701b672832ae4e32c91e1d932e374d
BLAKE2b-256 7b0e3ce8da81b09892769e98dc17b0d84189aff742b6923e4ac0d9637d6bab60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e07b5e90cf79c740da4a0533f748d7739ce1c1d76776dd330534074e7eda6cf4
MD5 2c9335495fcfe1ce74246e2bbe5485a5
BLAKE2b-256 f961fe1e5e7a332a6899462121c7cbfc455137a82d4e8c7d3293e08b01d39851

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ea47d1ec9883d10e29d4bd3cbee0829606929d9c7ec194799e4f03f3272fe070
MD5 d730d19493aae37ca95f1a6003213df6
BLAKE2b-256 63651901527e83b9d024db7a25c4b96951e4ef70a31a4ecd37278c335a73b957

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 134bc4d653a6d0953e077c23e664e54e6efe0bfc252b152519123ce3b7b1ab25
MD5 8881949ba404793832cbe50e815ed5a1
BLAKE2b-256 05f3ad7e6669c74282aba00caa8b5a4557095680db4b3893845a9cb0a43c76b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 81625eca5eae1632b6eb1b9eaef0189ffed85597bb4ad8c33238143a980d2181
MD5 b476342883015d78be064842ff85c47d
BLAKE2b-256 89ebbe869614b61233baed375771313737b1d6e8a578a9940a2dff4f27dfdfd7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d55d0c51dd74a7954fff10060ef951229b09fac6534b854c9a0efdb1aeed87ec
MD5 13776df567129120a0f3fbb1ac8e95dd
BLAKE2b-256 95853969d63d494035496584986048df244dca66bfacd2be4222e2b6d2d252c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 4bc66e4ca0ededb25b68541a2cdb48355f79111f9c9998ed9fa7b43e28f0082b
MD5 760890a1f2890bea29c3d375d8f14291
BLAKE2b-256 84a8976ff13b061eb6f6d551a29cdc2d08de9d1ea3ea92488ff458973f35f0f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2c52bd21dd565bc1cc44b0814f1c850cad98bac699bee837f77a97f196242c70
MD5 5ffdd9d7d5be694dc3af88dc5fccc8c1
BLAKE2b-256 06dd335f72e167e7ce2cd1a23331573b0777dfbd5ad448d6249b548677adfe22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 15353779430c2d0e139da1973a483ea8a8e86139b1d2ec016cc973addbaf76f8
MD5 01b71b7c382d177d263d373a483ef583
BLAKE2b-256 53d260b7ad491efa82a6ffe7c296882aac1b01b07d5caf2cf6bcafb188381964

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f68583ae9e774cdc2002a11b9597627c557447639f67975831cdf0e20e1d5d0e
MD5 b76b410e21db438c9da379a914271687
BLAKE2b-256 1a15e44a7a30146e899c3b3d5a11e690b544fd72171cf4e6f4b5798a1829f342

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 50aacc9a65a76ebab8e8ab9757bbcddd6b9ba870bc6c17a731b1e3cb03b0a4df
MD5 c736b951a7bc675e760ee8ec669f4089
BLAKE2b-256 44d7c22d749f51261e51ba787b6c7f89e3509df4914d5f13c02cbf0aa6acf827

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c0260c0e419b93925f77c7e101ac525eb569a70fcd4b171b0837ad88cf7d1c61
MD5 8e748b0ea3895337aec0cdc78464d1bc
BLAKE2b-256 baa894552bacc09c8700ec0e7cccaf990df8089a02116e4f428cb4805d549e21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a0026942fbf7ff940ef8227ec62a5913696cd09977732389f15f4c6b9c81740e
MD5 a238447cb0b1c497c8d539fa060cdb90
BLAKE2b-256 56d1c57e8c9e884ec64107e3776b816a2fa99002c03a9024f5eada9067238d98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b7242f688cfb88585590a08771c1eb7b7d6492c748f51a8627ea87f84f4a803a
MD5 4def1ece80dda1e4a66848bf3ca4e194
BLAKE2b-256 ecc54ac334dc4b4d8d423474bd73106af99462de6ee4f24520854f256018c38e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f08406c8e060068cc125e7d67be3a98deb0b61af02bb29bc8d60d20bf7eea654
MD5 343354c371e2e8b1f3da07bd21353a3e
BLAKE2b-256 df327eae94f011cd0337c9630413a5fe26646d87b6d64c20ce43245c8b252a5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ae39b6bbcf2c1fc57d527dd06447e5e56e0efb0b7aa0802718ad2af50dd2e948
MD5 e38ae4ffa24103ed894a0e214f797986
BLAKE2b-256 22f0f940a6c7eb8533e9329c6240a6250956523b8e5d9db989f20e382b5362f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.11.2-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 339905be95eb0c2de040d29190334841ce719e012fc89eaa508ea07601c29d01
MD5 6f7729ac116e5e6f3d7d3f19651621be
BLAKE2b-256 9bba7696a1c59d87a45534b17d7efe0b6259fb75f2f63f3a3077599c374c99ed

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