Skip to main content

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

Documentation Status GitHub Workflow Status PyPI PyPI - Format Crates.io Crates.io

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

qoqo-1.1.0b12.tar.gz (173.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

qoqo-1.1.0b12-cp310-none-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.10Windows x86-64

qoqo-1.1.0b12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

qoqo-1.1.0b12-cp310-cp310-macosx_10_7_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10macOS 10.7+ x86-64

qoqo-1.1.0b12-cp39-none-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.9Windows x86-64

qoqo-1.1.0b12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

qoqo-1.1.0b12-cp39-cp39-macosx_10_7_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.9macOS 10.7+ x86-64

qoqo-1.1.0b12-cp38-none-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.8Windows x86-64

qoqo-1.1.0b12-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

qoqo-1.1.0b12-cp38-cp38-macosx_10_7_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.8macOS 10.7+ x86-64

qoqo-1.1.0b12-cp37-none-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.7Windows x86-64

qoqo-1.1.0b12-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

qoqo-1.1.0b12-cp37-cp37m-macosx_10_7_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.7mmacOS 10.7+ x86-64

File details

Details for the file qoqo-1.1.0b12.tar.gz.

File metadata

  • Download URL: qoqo-1.1.0b12.tar.gz
  • Upload date:
  • Size: 173.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for qoqo-1.1.0b12.tar.gz
Algorithm Hash digest
SHA256 31e1df9597f64a7b238620d9791da5cc13bf703dff62eb02e567f26c28ceccdf
MD5 696864c3021207b5ac30fca6142ac195
BLAKE2b-256 212c43335540c8a1156a16f99d0c33a880416e14f2db4c2d8a8114a0cb508e73

See more details on using hashes here.

File details

Details for the file qoqo-1.1.0b12-cp310-none-win_amd64.whl.

File metadata

  • Download URL: qoqo-1.1.0b12-cp310-none-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for qoqo-1.1.0b12-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 e400f4a4acaeb6f5f895b80203a8f812ad81a0d58ed317839e3456b5a2203320
MD5 805bc5df56d2b45a5a1c60758928dc38
BLAKE2b-256 903d4cec5ac41fc199ee7d8a473c964d478bed046b28caffdd25aea312ef1f4b

See more details on using hashes here.

File details

Details for the file qoqo-1.1.0b12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for qoqo-1.1.0b12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e40fe021657e01d1bf5e614ccc5224b98d8305e18d948ec08db53e6d16acf2e7
MD5 96a05c44e6561d7fae534c2bec547fa0
BLAKE2b-256 5fbb0761cee78f375d8d521155284410bc30941cd3eeca5713a2e1b7e3c93af7

See more details on using hashes here.

File details

Details for the file qoqo-1.1.0b12-cp310-cp310-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for qoqo-1.1.0b12-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 b306817d2cfe37c51efe92ef89b4c8b34d38e4bb93af7a3f8eb0769f9af35ca1
MD5 4a88be1c56ca1fb5c1e39b8ba210559b
BLAKE2b-256 0906dbf170c1c0d9248a06abce0d91ec629838cd2fe52eef7ee3601fd7b5ae55

See more details on using hashes here.

File details

Details for the file qoqo-1.1.0b12-cp39-none-win_amd64.whl.

File metadata

  • Download URL: qoqo-1.1.0b12-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for qoqo-1.1.0b12-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 873cff70d60351ff6038e86d5638fcbee67480a6a43c8c44092437195d7e6a2c
MD5 fdf3041c2f24d552631dfc088ab0b089
BLAKE2b-256 88939bc034f13ac7bf3d677fe537fea5d5de9cf9db52c712e812495cc7a4dcaa

See more details on using hashes here.

File details

Details for the file qoqo-1.1.0b12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for qoqo-1.1.0b12-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0a5bc2cf2fe85bb0c10a299fce571751f680597c851bf9ec04aa5a451e621529
MD5 4f9df05f0ceacef864b8dcb43f244902
BLAKE2b-256 7127ec4d398721a05cf50f088a4f8aba8b135cbc77ff1d8d537133765c07f183

See more details on using hashes here.

File details

Details for the file qoqo-1.1.0b12-cp39-cp39-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for qoqo-1.1.0b12-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 74594384c4db0ea8964e94a5c8fa6fc8afcbdbf8547b93617d0744b87684588c
MD5 163ce82b4e71b24b5ff629d5353ec36e
BLAKE2b-256 01cc9fab01ae1ae40c250d430fdd9561466d2e2d28e1463ab04e496f81b81114

See more details on using hashes here.

File details

Details for the file qoqo-1.1.0b12-cp38-none-win_amd64.whl.

File metadata

  • Download URL: qoqo-1.1.0b12-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for qoqo-1.1.0b12-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 8a0909e9c6e49561006e27b24432fa5dffe72e8e8c998bca8c38835a39113335
MD5 1dcff263880a82761b79f1fe2288608e
BLAKE2b-256 fbd246636527f6ebd5a0fea6e9b07c85d2fccfdfc34670d1a925424730eb6c70

See more details on using hashes here.

File details

Details for the file qoqo-1.1.0b12-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for qoqo-1.1.0b12-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7305354f2e5c03da69ba0fa2206823fe8de947d21c00ee93f34b24198eb16f52
MD5 28202dfd5a3906fd464fbeae1ccd2d98
BLAKE2b-256 440648b5248242b556e71140b4af29f25f88ffb2d89cc981046fb0d01035a2a1

See more details on using hashes here.

File details

Details for the file qoqo-1.1.0b12-cp38-cp38-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for qoqo-1.1.0b12-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 7b5fc72caf0cb64ff47e46e9648478a9b32b62ec4e69c31f0362ae3c20b9387d
MD5 907a70506a1f1d9cea766a56b9a31c20
BLAKE2b-256 4e38ca0830ccdb1d8914309a384b4cbccc4efbd52eaaf353457a6f605eab3ba7

See more details on using hashes here.

File details

Details for the file qoqo-1.1.0b12-cp37-none-win_amd64.whl.

File metadata

  • Download URL: qoqo-1.1.0b12-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for qoqo-1.1.0b12-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 f47fa11d0c55c7e109b8977e537a8efa92f3397e3573d4f665947faec8c67579
MD5 eb86d8617eb1f76678b73da6b62c2d6a
BLAKE2b-256 3ee20a66241c957476bb5ec8de39779574dbcb947b38d51dfeef86f15ace13a6

See more details on using hashes here.

File details

Details for the file qoqo-1.1.0b12-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for qoqo-1.1.0b12-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a7927882cc458dc942174c0568270fe4c4d8e09b60389c60397f57125ef3c99e
MD5 df28c10cd8b1cf1e29d8ff8cb36851ae
BLAKE2b-256 9dc735285fb9943a4dae7f444eccecb36694751afacfc10353dd8a52e1f101d0

See more details on using hashes here.

File details

Details for the file qoqo-1.1.0b12-cp37-cp37m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for qoqo-1.1.0b12-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 0fd6776cd663018ef38f75a12c7dc79386bd3984ea4e2461faec004626d0176a
MD5 f2d6b143bd8f5853070a22069c31771b
BLAKE2b-256 88fe1ded1030dbcd2474b564016d5b46bf31b91dd3878b4cebe6be87ea57ebb1

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