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.0.tar.gz (176.3 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.0-cp310-none-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.10Windows x86-64

qoqo-1.1.0-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.0-cp310-cp310-macosx_10_7_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10macOS 10.7+ x86-64

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

Uploaded CPython 3.9Windows x86-64

qoqo-1.1.0-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.0-cp39-cp39-macosx_10_7_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.9macOS 10.7+ x86-64

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

Uploaded CPython 3.8Windows x86-64

qoqo-1.1.0-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.0-cp38-cp38-macosx_10_7_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.8macOS 10.7+ x86-64

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

Uploaded CPython 3.7Windows x86-64

qoqo-1.1.0-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.0-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.0.tar.gz.

File metadata

  • Download URL: qoqo-1.1.0.tar.gz
  • Upload date:
  • Size: 176.3 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.0.tar.gz
Algorithm Hash digest
SHA256 33e24aaec8b18cb2a37d901ffd3ccfe203aecec4233ca0cc31bb4e90eb01a3bb
MD5 118d82aec506cbc503dfaa93936272dc
BLAKE2b-256 5c900fbc336a4368e96d85457a6a79e9ab4c6c5e2ccc602c91b8f56dc0ffc61a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qoqo-1.1.0-cp310-none-win_amd64.whl
  • Upload date:
  • Size: 2.0 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.0-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 8cd284951859bd81e2eaadae8fa5387b2874072cbbb87b08fc4a88993091e503
MD5 2c82295206e4914f4a16fc796426da8c
BLAKE2b-256 32e4e20d65ac9a3c93e0ff382d9cedae38e08852460e7bfcbb1784069aa35cb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e852982b4c3bbe05990d5700d5a2f463f47ab33102bf6b17a67d61561029dd6f
MD5 40c68751910e1687361339103889e951
BLAKE2b-256 6814ea43bca1c801589780a2ca449c58b9822322fd6d57957ec656c1425c43a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.1.0-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 2fc067f1ef27dfa91a9f8fa271cfe5cd05881ad6b8c4caba356aa3ab3de7de7a
MD5 dac1562edcd52b36986069310db9d339
BLAKE2b-256 fab4b5c77cf39718d382be792525737bb3203b9eaa5db44d5ad3ed67db82f0d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qoqo-1.1.0-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 2.0 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.0-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 e57ea39bf74c1881ff3df7c57fbce05d2306975d46ae955d53725662bd4bb6ad
MD5 b4ddbe54a9ff991c8f06c542ebf2652b
BLAKE2b-256 82b3ae76ffe6ad8081041fb64ee62b30be2b8dbefff492df627b7e51561fe16c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3829d22a3a8231f2db7b65dcecc0b397cecf815db3ec5f464ba616f13f950c6d
MD5 f35af0cdf7a2c2dfd640a25155bfe0d8
BLAKE2b-256 4021d0431e210f41de1ad13676f545318e7a16548041f18287fd8d8a15533449

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qoqo-1.1.0-cp39-cp39-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.9, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for qoqo-1.1.0-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 a09425dca0349d3165c50d884b9a2198a2a015baf3406287e2124ad3f968928b
MD5 977aa10a9aa4d3bbe7d584ce08cd5c7e
BLAKE2b-256 1540104f986da69d6fb774d385fe012078fdebae10c79000b8918eb60069e685

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qoqo-1.1.0-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.0-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 9e9b03ffa5dabeca7b03136aaf227dc3a67703b5f68c269b8980dac6dfdbf33d
MD5 58fd53e47052f70cb2fdca82bdba30bf
BLAKE2b-256 b83242ea6bee03f5ca18cb12b1585a3792bd7285c75537364033c12e691e710f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6b2fad06b4be4f46b6455ffa593c417d064e71deefb42ae2c71683911161977d
MD5 0bf92e091ba63175147a3877b3727b84
BLAKE2b-256 05019b919384166f8abbc7bc133ed74c22896816b63773de4b36739f96905643

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qoqo-1.1.0-cp38-cp38-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.8, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for qoqo-1.1.0-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 3106d07533da474c591144cc7dc82ec99790949643aa52b28c426ba5c39aabf3
MD5 6d1829ad1cea2eacbeefa1a5f2904833
BLAKE2b-256 6911f346fdc1698b5ffca44f94bb61ac829362d5cb5bb47a2b6272bc82a88400

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qoqo-1.1.0-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.0-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 7c44d520e14a62169e7a7c24adfc41281fedcb07004f34ed84ab97f3eab72581
MD5 18e9150bcdbb1af1ae3878811ee8914d
BLAKE2b-256 9531ddca101c46187a76bd442fd42a668407aba4ca8ebbb004c6aabd051b91d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d18fa1deaaf9718d60b34c0ff0cd5a7df6f50cf663daff66ec058bd677847792
MD5 3b6b7941c9391561e830e08e002826ca
BLAKE2b-256 49fa709e676eb45dbc32d9cbfff4e437e73b6a89feccd58230da625b857fbb4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.1.0-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 55e7452ae294f258aa734d52ddd4d5dd560bb1ec90ecf50efe3365a57411d098
MD5 add654d48b740d0b9d448b7335c946fd
BLAKE2b-256 6ad524cfa30e087d5a7c4fb1421e26aea365e309eae52e9ed97059bab3e795d1

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