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_qest, 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 a full python interface to the underlying roqoqo library, including:
- A circuit class to represent quantum programs
- Single-Qubit, Two-Qubit and Multi-Qubit Operations that can be executed (decomposed) on any universal quantum computer
- PRAGMA Operations that only apply to certain hardware, simulators or annotate circuits with additional information
- Classical Register and Measurement operations to use with a quantum program
- Measurement structs for evaluating observable measurements based on projective measurements from quantum hardware or simulator readouts
- A QuantumProgram class combining circuits and measurement information in complete quantum programms with a simple interface
- 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.
Installation
On Linux, macOS and Windows on x86 precompiled packages can be found on PyPi and installed via
pip install qoqo
Alternatively, installing from the source distribution is possible. For this, a rust toolchain and the maturin Python package need to be already installed. A Rust toolchain can be installed using rustup. With this Rust toolchain installed, qoqo can be installed using a pip command:
# After installing the Rust toolchain, execute the following:
pip install maturin
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.0.0b2-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8073f2846dd8b4ce50131ca54154e0585f9ee01aba107bbb7c1cc3b076e89ff |
|
MD5 | a1cd3ad04de3855c92229200863303c2 |
|
BLAKE2b-256 | 7962bc47e103ac430538c9117969c834ff98a6af70aa714786d4a5234e1c477b |
Hashes for qoqo-1.0.0b2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a5c0fa3575fd9c24d8d247de7b0fe022fae5a4effda7368f7090f5b3241dfa2 |
|
MD5 | 6ad79ef2cf7efe6062b55fc067a95e56 |
|
BLAKE2b-256 | 3993045335165842ba6c71b3b36013e4ece4d0ffe35358fbf7b175baa8f31683 |
Hashes for qoqo-1.0.0b2-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0de3f60918a757aacb3e1516d1fd83ed0eaf2d1cf0f26a876b764661d9ffa6a |
|
MD5 | 16795b438dae084c172b36a079d676b5 |
|
BLAKE2b-256 | 2c0be9f589db7b73a5936fcee96c3c8a6d51eb832c3f7e54c1d6eb713a8d7673 |
Hashes for qoqo-1.0.0b2-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fae0b9bfea480d4d970795f8550b55e7defede6be655dca8a81bdf5279e102d4 |
|
MD5 | b73ae9dd5bf663a02d6b2c783db0ef7e |
|
BLAKE2b-256 | 98a49532860715e1af6134b88416e6f03725b4ee5024fe89d3cf4bff3332b73e |
Hashes for qoqo-1.0.0b2-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8efa29cd78475ec4746052ae9b0e18342a7ee0605cc9e4fae11bcd49dd597a25 |
|
MD5 | 188753bb05341be139e299dd3b91ae0f |
|
BLAKE2b-256 | dd3dafcb13b86bd83e3036ebab62a1c98659a371e0518c07bbb642052f1141ce |
Hashes for qoqo-1.0.0b2-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14ee98460720ecdaa58a37b58640fcd6191ed4ea049651cc8250be71ac585257 |
|
MD5 | 9219f098dc6afd03e13f9d56b0eb9043 |
|
BLAKE2b-256 | b198236976d0dc8125d3726dd57e19ade4318838102b35344f6ea676d312057b |
Hashes for qoqo-1.0.0b2-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9879d14b444f9ceafcaae375912924e143eab3eb7536ca45904071e9315bdb27 |
|
MD5 | 9c00cdb1e3f92d6b566bad870b065970 |
|
BLAKE2b-256 | b785a4a06d9ad5042d72ce58ce20f1369fc0db8dcfc051c3adbce49ba7ab7bd2 |
Hashes for qoqo-1.0.0b2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22adee7cd6837231314b632d7a8bc8f9da057deaedf548dc06973f03f8929c79 |
|
MD5 | 352beb973c9ded7ab93831bf8c57e7a6 |
|
BLAKE2b-256 | 12e96f3b54d3eb4e324a2155760f394e3258298f3b90f98c39dbaa730d4ed1ad |
Hashes for qoqo-1.0.0b2-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66151efb150181182188b4f4b66908e54cab583b26641e9d34bece99156fbc50 |
|
MD5 | 75305743a36f49ed8ba69de3839c1d40 |
|
BLAKE2b-256 | 3a67e1c3ce36a81fea88ca7be4f9470453461356b66bdfeb024af86a6086c722 |
Hashes for qoqo-1.0.0b2-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a59fa59a0da02689aa179cc9f54dc33acfb40f99c9ed573e8037620b978197d |
|
MD5 | 0ac45e10453ad44fd897e9e56d5345f8 |
|
BLAKE2b-256 | 749dd5be9ded04e59a7475d0391de9b1fd2313ae44181d8a535c563443dd4b20 |
Hashes for qoqo-1.0.0b2-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9c95f514877c348f619a3bf5a49b4907a57375b3b6e74e8fe4ea05c90988297 |
|
MD5 | 71658a5ad61dfb9df30c8b0bdf741081 |
|
BLAKE2b-256 | 651c1aa92984870b6297b514fef7f3d7746bb8e5232a61f9b3b00cd84fd52ef0 |
Hashes for qoqo-1.0.0b2-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3d5e2556f06dbead5ced7fdbacfe2f9844d0a0ae1b543460f1c46b18beee070 |
|
MD5 | 21af4b8f5c4055cf6083388e6db70d72 |
|
BLAKE2b-256 | ecb73398c2fd643ef9d337d5507c319af1cdd4b4bb1fd28318dda16f22b24c35 |