Quantum computing circuit toolkit. Python interface of roqoqo
Project description
qoqo
Quantum Operation Quantum Operation
Yes we use reduplication
qoqo/roqoqo is a toolkit to represent quantum circuits by HQS Quantum Simulations.
For a detailed introduction see the user documentation and the qoqo examples repository
What roqoqo/qoqo is:
- A toolkit to represent quantum programs including circuits and measurement information
- A thin runtime to run quantum measurements
- A way to serialize quantum circuits and measurement information
- A set of optional interfaces to devices, simulators and toolkits (e.g. qoqo_quest, qoqo_mock, qoqo_qasm)
What roqoqo/qoqo is not:
- A decomposer translating circuits to a specific set of gates
- A quantum circuit optimizer
- A collection of quantum algorithms
qoqo provides the Python interface to the underlying roqoqo library, including:
- A
Circuit
class to represent quantum circuits - A
QuantumProgram
class to represent quantum programs - Classes representing single-qubit, two-qubit, multi-qubit and measurement operations that can be executed (decomposed) on any universal quantum computer
- Classes representing so-called PRAGMA operations that only apply to certain hardware, simulators or annotate circuits with additional information
- Support for symbolic variables
- Readout based on classical registers
- Measurement classes for evaluating observable measurements based on raw readout date returned by quantum computer backends
- Serialization to json and deserialization from json for circuits and measurement information. Serialization support can easily be expanded to other targets with the help of the serde crate.
This project is partly supported by PlanQK.
Installation
On Linux, macOS and Windows on x86 precompiled packages can be found on PyPi and installed via
pip install qoqo
If no pre-built python wheel is available for your architecture you can install qoqo from the source distribution using a rust toolchain (for example available via rustup) and maturin (also available via pip). After installing the rust toolchain and maturing run the same pip install command as above. In some cases on macOS it can be necessary to provide specific linker arguments as shown below:
# can be necessary on macOS
pip install qoqo
When using qoqo in a rust project providing a python interface add
qoqo = {version="1.0.0", default-features=false}
to the [dependencies]
section of the project Cargo.toml.
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
Built Distributions
Hashes for qoqo-1.15.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfede98b6a8cd3b7872bdcf4cb38e5e275d4318f977a9f358a5e4b3bcae21a28 |
|
MD5 | 813a2970f5361deda9dabf6c689abd30 |
|
BLAKE2b-256 | abff4ed05027d3701ce0675a3af7fe072560921bbff087cde146d983eadb390d |
Hashes for qoqo-1.15.2-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1974fbec875e86de96f1ada4b23b73d2ebed4c093e98953275ce193d5257e4b |
|
MD5 | 19749d06bf99e148e3cc1debbea5328a |
|
BLAKE2b-256 | 26d63d89cd193cc7b88083e9dafbf69ab114505e8d4320ce215be7d3ace574b3 |
Hashes for qoqo-1.15.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cedb6f9a7fcadcc59298c0dc482a58cee298aa4d9d12526f8b6244edf4e98899 |
|
MD5 | 2137c1d9b419096d4e5543470258ed12 |
|
BLAKE2b-256 | c34479ad53e5bdb29dddced4961afd0f28ff987cac4fbc6374ff4b421f5e7c4b |
Hashes for qoqo-1.15.2-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b77e4d6a4906c07b8d5c4e9cfeaf2524ccd018f05b73f5a2d29b2d49157c8c6d |
|
MD5 | 89f62b785b4733e8f4fe623760cb5ca1 |
|
BLAKE2b-256 | 0718f02a8cc13d20ff7f48f113ed2f871c7a00aa747f1f5abe3bae4b7f8d59c3 |
Hashes for qoqo-1.15.2-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fc0acabede62352013f395b913f9e629f7a73a0a380f30c3199245fe4c79b41 |
|
MD5 | 43aef5ed815e7b275e21779883741df4 |
|
BLAKE2b-256 | 5ab95bc45f82100162b1cf3d3180f1fe556889555d6257bbd75a462e5eccb31b |
Hashes for qoqo-1.15.2-cp312-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7f32a4ad2f1b55621e536ec3554e6fcb75b084daa40c4077f464718275dc5ba |
|
MD5 | 0764826e8d84b779e6b86e5cc0d1726d |
|
BLAKE2b-256 | a3d18b5f031782b23d5764dbb76e7dc7f94a4f11097da24aa52c8920dfce4a0c |
Hashes for qoqo-1.15.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2f58f9fc70b36b85346282e8156fc75052c5ec1c0786fb735ad454364fa4ec3 |
|
MD5 | 8f5637a792acb3e83f66fcaf2f5f1da2 |
|
BLAKE2b-256 | 76e3aa52222afc615b3d83574909e3bedc25a311b6c8380c446f570522093969 |
Hashes for qoqo-1.15.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a8832d23b7922ddf9e98553f033ffa148a5c4d9d66d4583ceb60897b85e05a0 |
|
MD5 | fb9af60093ad38c970db9f662ae295fe |
|
BLAKE2b-256 | 9ef3225d546c82b0f73fc1c8abc8d38f2d4076f47e6c192cf24202a42256a7d5 |
Hashes for qoqo-1.15.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98b3c11b1de4ca0378d9add8f290937b55480d8e1dc74af197d12fd7261aac4b |
|
MD5 | cfa7c366612dd75722df38af8e20e0a1 |
|
BLAKE2b-256 | d391413a3aa6ee0544ea44e1ad561379bb3f7110e6e6d2fb008dcc2f2d678fe7 |
Hashes for qoqo-1.15.2-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b83a4c91b99ad94c10166bf9dc87bb543179f0ba528656df66fbd2ab9789f5ef |
|
MD5 | 0688a2d0a6711bd2e19871987def2d51 |
|
BLAKE2b-256 | d9703910bb48544fb3102488dca28273cdaeb3453ee6d40a06aa44c585a5b365 |
Hashes for qoqo-1.15.2-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21ed76478d6027521994da62bb7076887e8824b112193bce07e3f14dc199ede8 |
|
MD5 | f376fc9597ecb91a518c581b6f4a3bae |
|
BLAKE2b-256 | 2e3203ac683121bebbcb1adcb368074a4066e9d0ae7f88394682699852286af1 |
Hashes for qoqo-1.15.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6f72c2b191ccc1800ddc85a223702eb81151220374dd828c9c6c040fe263102 |
|
MD5 | 5a734eab1c0fe004cffda3ec356f895f |
|
BLAKE2b-256 | b3a20ca05bbc747ae13fc65976d9db01b226bfc1388c5cd13ece180f4effff3d |
Hashes for qoqo-1.15.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7def194a80c77c89e4559d1483342ffe3253b08536730d3e0f13ff443c5946ee |
|
MD5 | 2cd737ffdaaaa0cabcbd9bc9f5956035 |
|
BLAKE2b-256 | aeb4daaa4c448801d7467608e40ff7fdc46a653211c7253c266e0b2f38918b7b |
Hashes for qoqo-1.15.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63a0656a4e78ffdd066071e233483ff191592310754a24fb3e24183b31768178 |
|
MD5 | 3efa4389b5fe4c6bc00d93049e34ae00 |
|
BLAKE2b-256 | fd3a01c3d87990889281b4c905bc4a0a0eeeda9080b64161c8776e87490adb38 |
Hashes for qoqo-1.15.2-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb093fa5e32c85c3fc5b6210666850f988063371c38fa23f9cd3a950ebe280b3 |
|
MD5 | 15c9d3e16ba5e3108117cc0c5fcfda3f |
|
BLAKE2b-256 | 6f750153dc3c56366ea8962a6abc951e77e10ec384a61538d6594ed52fe53774 |
Hashes for qoqo-1.15.2-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5b4c3fd67afad7c5ca541d589eeb26c1051203312f1c36a1c5e4c7ab7189919 |
|
MD5 | d487e1344991f009254b14042f73ec3c |
|
BLAKE2b-256 | 7cd58534bffa5f2231596099f3c1a0b9fd9559991425ef929505ef36f9a30277 |
Hashes for qoqo-1.15.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f5ac878ef6e3c90d87c2a877e3e4f0c4d2014ebcd1f8efd4ab6611672c9e3b0 |
|
MD5 | 382d57e9da07e3ebd4655f6f30a61573 |
|
BLAKE2b-256 | a9990185277b766b164fd1e4a50ca93bafd9301905c5be5a9355a3548c99c976 |
Hashes for qoqo-1.15.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75e12efe69bc45845817d5163eae2ed57760ca486f2a8230b21d118f22274093 |
|
MD5 | dcd79447a31e186b6551ba12b22940cb |
|
BLAKE2b-256 | 848025ed5f7a82e07ce12cc745a21fc8f566903ecaac756738901e8ebfd3193d |
Hashes for qoqo-1.15.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eca2bd9a6130f4f03234a06bc86d7a1a3bedaa7649e8d5dfa67fd7f8ba3a3d40 |
|
MD5 | c0e0dfcde2085bfc02f21bfa975eb996 |
|
BLAKE2b-256 | b0976a0179033d76c5fd0077e276bed60a6079750fceb1867be118c220b4a8b6 |
Hashes for qoqo-1.15.2-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a2af30f8456f1052515cbebb750e9c768f72c921e9cb9865ada786f5ca84ae5 |
|
MD5 | 214faa4422c29f95caa2dc018278ca20 |
|
BLAKE2b-256 | a247d3eed99bd34856702ccc65af14539b1d9a3e1830f2dcb2709d304cfffc41 |
Hashes for qoqo-1.15.2-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11d751b6c3d2711832936e66b79e4989d4c1d1d3054a90209a5e583e3044f7d7 |
|
MD5 | abb2a3cf9540c0d6fa43eda9ab92598a |
|
BLAKE2b-256 | 75e67fd1f4bb31842c81d00041415a06928b7d98d9d56a7cc7753768486a842a |
Hashes for qoqo-1.15.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ef1f26b20ed62de8e66a24a4ab8bf73644e673e738602b9693dd33978802972 |
|
MD5 | 2c6623145f9e35c3320aa9ec308100e2 |
|
BLAKE2b-256 | 397c19765266362a85b7788a783f5d479da2407a249771a5af04b84593ffb38d |
Hashes for qoqo-1.15.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40618876541e4c856496df7e68cd14b7dbce30407b0d5288e9c4c6d253c04b71 |
|
MD5 | e6723e5544ffd5361a2e26c8aa63d19e |
|
BLAKE2b-256 | ecec06a46508d9681c1c3785af11ec0682d8710f00347c7f3c9f56441dcc01ae |
Hashes for qoqo-1.15.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c976b21b40dfc7217d455687c4aa35b109dfede8104bbf28bfce150ade528112 |
|
MD5 | f251e2ae84b3d9388123f0ad439d2edf |
|
BLAKE2b-256 | 0dfd918bc5faf1a917fc35e721924ee32493eb9f8f737c22e8afae201aaed690 |
Hashes for qoqo-1.15.2-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdf8f923187a97ab7da93bc9fcaad1f951929ba141c6fb2908103e189f852a1b |
|
MD5 | cadae22366e78e8e79420360b312b8e6 |
|
BLAKE2b-256 | 93d9fef30d1f90d1d453218d986bfe3ebb83bba2ce15af4a89a5db991de61828 |
Hashes for qoqo-1.15.2-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eab0d6d48c2b65fd2819334df0d21589ff5a88b8b2783b28e5d6e27024ebd15 |
|
MD5 | 56adb319522903bb9f7d16140b95438b |
|
BLAKE2b-256 | 5af6ebeb8544feacf598a38c545f340197b69ed7acea9b1fe5cf71ba81eacdf7 |
Hashes for qoqo-1.15.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8f2648115deb3fc2d8408210a68cfac7a5538c7610dd6da11e7538dc0901aa6 |
|
MD5 | 4d1513550cd01d1cd5b84b6fea3ad13a |
|
BLAKE2b-256 | 29f456be24e2c625a4435174a1b1c65db6fa3ff683e3ba630a45a2430093677b |
Hashes for qoqo-1.15.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83fa4c4053afd96fdb970f2dba6f1d4a4e13c9f15b8d2ceacd35e56d8410901b |
|
MD5 | 84e73f985af09bfa7093efd8c9a53dce |
|
BLAKE2b-256 | 332c909e7f3f9c819271dd1d2f61e74e9ac1587548cc721df81850bf443cfb69 |
Hashes for qoqo-1.15.2-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19be0b58f95cb4079784ca166b26efc9ec29dbedc380afb7fc47504dd3ded267 |
|
MD5 | 37cae0a5ae2a62a53e37ec6a21cc00ca |
|
BLAKE2b-256 | 7c596bd815ded7dcaa8ec495048ca4dab511610d7811ab2db95651099278db15 |
Hashes for qoqo-1.15.2-cp38-cp38-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 038b9ba235b6dc459aeb45257eace15523e2bf1ce6fe2d01437d4240da9ab246 |
|
MD5 | 9b0f3478db37c889f6d147698fa12deb |
|
BLAKE2b-256 | 226f669618dcaf5aea97ac7e2d105ef1e66d53cac62a0d27319cf383a6f162ba |