Skip to main content

No project description provided

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.13.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.13.2-cp313-cp313-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.13Windows x86-64

struqture_py-1.13.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.13.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.13.2-cp313-cp313-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

struqture_py-1.13.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.13.2-cp312-cp312-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.12Windows x86-64

struqture_py-1.13.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.13.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.13.2-cp312-cp312-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

struqture_py-1.13.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.13.2-cp311-cp311-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.11Windows x86-64

struqture_py-1.13.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.13.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.13.2-cp311-cp311-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

struqture_py-1.13.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.13.2-cp310-cp310-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.10Windows x86-64

struqture_py-1.13.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.13.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.13.2-cp310-cp310-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

struqture_py-1.13.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.13.2-cp39-cp39-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.9Windows x86-64

struqture_py-1.13.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.13.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.13.2-cp39-cp39-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

struqture_py-1.13.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.13.2.tar.gz.

File metadata

  • Download URL: struqture_py-1.13.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.11

File hashes

Hashes for struqture_py-1.13.2.tar.gz
Algorithm Hash digest
SHA256 e19530a7fe8ab9abbc82ce9940bca347b14ea94828c5ebd37eecadef82705ecd
MD5 47bd0ffa0c18dd0e2f76b0683bf286a1
BLAKE2b-256 8c2e21d40e268f3e15203ad0c4d44673b2722960ede02d8d8c8edc2b095b3164

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 cbec4183ae85f28d3c31be3b2af044ede90bdf0d6cf20288c9f58d0f3d212847
MD5 4b403fec0ce1ac6f71ed44f2a1d3442c
BLAKE2b-256 2a66bb60ab8988bc36a2a7d4cb47c9fb553fe664e221f08df898859c172c6d98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 01424bddd6563f3464fdf0e075f39e746fb36587eff2bd570cfc4bd264d02829
MD5 af94d48fe3afe0f8d52c98ddfb1357b6
BLAKE2b-256 bf91a3337231ad2d5e66251bb57397c321b5bec2e75d87ef856973cb1acf3f75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a0c8ef1559f5b14f43640d8db651c30e57769d2f21b53adad9a5af586b0ab6c2
MD5 33d2b006045ef15c19c03c21b12e1bce
BLAKE2b-256 ac7266661ff550b784a1585786fd35bd93b2489b80d22c49ffd3551495d5a8f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6eb805ccac8d182bd728f157ed3d18cc858bea204c4f2cc163e279ce594f07ba
MD5 5c4cd2e5a58e26511be91c020b850ddb
BLAKE2b-256 080bfbca2eae6ac8e4dde150f609df9b26a099151339b86e591959b2143d0b13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 caf540f13597a99d6bcae205554a966df4b35b7c3e06aed5383a4929b0f0343a
MD5 a0774df57999bdd21b295aecf08922ed
BLAKE2b-256 ac809de7dbcf35bb307ff0b13f1af7c99017f4075dc0cf68ff54922ef6bf2c68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7bed4125a8838035af74a62fb8086f6808b0b28a325722a4c757cb4492b9218e
MD5 b5676f73b5a88464db757b114d1e3c53
BLAKE2b-256 b1d4ed1bcf89b989396656bff03d7975348c8e4fdf7ddcb2a9b4d94c2ff24837

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3516c7abab325bd0bc048a90dc9ba820e8df5d4c3426efabb2a00ffdeb28fd07
MD5 9b34a2aaf76b444f568c34abc3cabc1a
BLAKE2b-256 f455512aa6653486a9854ee97e37c145c11d9f37aae55cb590da90a931365417

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 26723c364716bea0999bded56cd61fc3d4e1f030dd83914050478d953abe7ee1
MD5 a73a857e68149598b9679c883d5cfccb
BLAKE2b-256 7a7dee58de078bfd3bd0a377af921b06bbbb0c8b9bbf7ca89489962f21f95526

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f827aea23f284ab42e7abdde830c6aa60b5094f7e5ad097ab5c42db7adb0c500
MD5 c3e9ae019c791479f9775930b5f093b7
BLAKE2b-256 28d323e232cb05fa4c25b4430ca3a658d571f91a54bef0cd4721499530803b02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f2ebe04b31a6c56241a2cd242adcf9e15bf12a2994c449d658097c1fd13967bc
MD5 9736027c6e3449279068067b7347470a
BLAKE2b-256 9c947eca74d5fd78647549246488e32e354efa9cf405ae34f94f3618f08ba61f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 16a6866b3f043e94e7578d25299fd2f513574ade63aa3cd854d6608ad4e3b03a
MD5 b3a92d5ac5a9814476a60d78d771d4b4
BLAKE2b-256 b20b6a591726ce72676d7b51e17a425a1ba30db179622a6233ecb2d9ea3ca498

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c4f42dda598b84c328c6b105d61972a412f8d8c81d7109df543d6efe36f94dff
MD5 a484680e9c17c2f74b3013fc5f190e82
BLAKE2b-256 149566820955f61d6d50d2ac510878dab17684bb3840dfda13c9756922dbff22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f52833bfca9802d20f05ed0d66edfe278e58417ac8b4c80987657b63584dcd21
MD5 9382fb295f21e6cc85abee5680942914
BLAKE2b-256 1bbebd1377e6c6ede16a4b3d3c4ac3c0de4461c35ed9071a5b507578863fb476

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4d5d30b4310ea999e6b616ebfac36802effeca8f155330b5f1aa56bf37ddae87
MD5 a49dd6962becfe4b52db3fc6146cc2ae
BLAKE2b-256 1a31b0d62c2d33ac1f876eb0d5cce21ee9d1cfb4c62111681433b9803c2928c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 01b9746041f7f72a6653538f56fb95527458aa3a09f679ed70ee107e58821541
MD5 8b977275cfe6b4f68737a9599b8d3a48
BLAKE2b-256 3c71f28cd155648e9f562a24a768e4aeeacd7bbbb745c5ae7f618e51a0ff10fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 788a0e848db57ff0648e05a21b215a3e08ea34fb21d7f0e49b1b867a2d6a0ba0
MD5 a81be926d89029f680354a2c46094187
BLAKE2b-256 5a82808fa30b2e3d9a2c40909a80a422b6054dcb346b75066bdce489fadd4fa0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b0c6aa4424bbc818018d8123e7a6083e31c8d067748cfe086f3c54cad95e0aad
MD5 4d82c29313498e3d3f9b1ab5cc63ee7a
BLAKE2b-256 aef04c7aaee5481e61b8a458dc4794b3e86b923f62e5fc59e703db7b82168265

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 74faa7ef0d4debc991f3614a6b84df9b257bdba3403daf9a216f0a7359870146
MD5 962d3be40cf34ea62901c5f476b0db16
BLAKE2b-256 c8bab3a472b151525604139925c17edba5c5fedd9b4889596d694455ffebbe69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5d38499ba0acc0d321fb0c47a7e72704da373717f931e3db09b3344a45a1ec26
MD5 348b226e60378dbcb957e388ca3b51e3
BLAKE2b-256 71592a41cc98eb2932071ece5ff663bb980806d4cd6fb9a0c0bb4555df8d5c75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7f156a9c6adbd9a83774379d512588d0b94c87507d0c4c3857c31b44cbca0587
MD5 847a9a61a29271ae04f9c0bfae564a86
BLAKE2b-256 6cf0288e5778d98fe4bf751176cf34f6c4d59ff0b06008053b9b820d55d195c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ffe7b4bbf3f87f2ca29fe00699ebb3c6e80e31d280f00b66a3a6447cc1ce7dc6
MD5 4abeb23884ac61798fe87800a537c06d
BLAKE2b-256 790dfc79025447adde58c2acd21239d4b66f2d4c590a9d5093a2b275bb3a9ef9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f9bba43f1c60f03773fe0b0dd447dc033ef09f8d9ec4fc000f22b0727690fa79
MD5 2d8d8e50498b18b56aad783e8efb77f9
BLAKE2b-256 26b0fcef4c44166c5a0f3259bc4cf1d251f58db5b043dd3b1575a823b2231827

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 61bb4cee4be190c3ecd1430526d03525f3a93aa0698754f01fcdf6fe5bdbb263
MD5 ba864d420c6992f5fc1cf7f27acb1b49
BLAKE2b-256 a03c7cd23a45dd052edbb0ceacf49a6b87a9dad016debe5770c24b6852785bfb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c837c72413e643df5fb741ce3b0fe62996b150cb155220a6ee0213ac02e1979e
MD5 c678ac9a97f56e9403cf52b20741df72
BLAKE2b-256 644e234e840a15bcaa164ce4de4d269a82ac884a5d55c3db045ca088e7d20514

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for struqture_py-1.13.2-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 03f3d3eee77e180d3ab05abbd8fec9b2f8c7c174dc10adb5d476db414ae00368
MD5 27ae5f6fc5ea3a426ceef51afbfe63dd
BLAKE2b-256 91d4b50ee3f3ffbe78f25b20a1808de96d93dd78cdc3cb53c68590f01790aa23

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