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.16.1.tar.gz (421.8 kB view details)

Uploaded Source

Built Distributions

qoqo-1.16.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

qoqo-1.16.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.1 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

qoqo-1.16.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.1 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

qoqo-1.16.1-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.1 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

qoqo-1.16.1-cp312-none-win_amd64.whl (4.4 MB view details)

Uploaded CPython 3.12 Windows x86-64

qoqo-1.16.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

qoqo-1.16.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

qoqo-1.16.1-cp311-none-win_amd64.whl (4.4 MB view details)

Uploaded CPython 3.11 Windows x86-64

qoqo-1.16.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

qoqo-1.16.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

qoqo-1.16.1-cp310-none-win_amd64.whl (4.4 MB view details)

Uploaded CPython 3.10 Windows x86-64

qoqo-1.16.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

qoqo-1.16.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

qoqo-1.16.1-cp39-none-win_amd64.whl (4.4 MB view details)

Uploaded CPython 3.9 Windows x86-64

qoqo-1.16.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

qoqo-1.16.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

qoqo-1.16.1-cp38-none-win_amd64.whl (4.4 MB view details)

Uploaded CPython 3.8 Windows x86-64

qoqo-1.16.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

qoqo-1.16.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

File details

Details for the file qoqo-1.16.1.tar.gz.

File metadata

  • Download URL: qoqo-1.16.1.tar.gz
  • Upload date:
  • Size: 421.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for qoqo-1.16.1.tar.gz
Algorithm Hash digest
SHA256 dfec9dce44792980324be2356fb5942c5a046a3314bfa0b8d1ab7890bee1fa35
MD5 2a45a0addbae205f9ee2b4fd035a21db
BLAKE2b-256 4b944f9a7c71baa1c9dce21210fc5039ab11778470772dcfce3100c143feaabd

See more details on using hashes here.

File details

Details for the file qoqo-1.16.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for qoqo-1.16.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 10c13baea00f2aa57ef4e245d75d5a7c574d36ed8e19861eb49914d873b2ce35
MD5 832eb1783587b1a184e9fed8859a3e6c
BLAKE2b-256 1e5c14535aa93ea1a0631548679972053a2487d0cbc75982989472217a5de2b4

See more details on using hashes here.

File details

Details for the file qoqo-1.16.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for qoqo-1.16.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 433b693aee58add6ecf2671a1e820393f33fd6ffc9a38973530d884135ecfbca
MD5 3272a74ccd49a7b26f25c2b6b8d552e9
BLAKE2b-256 e0f15a218fdbc5bea97db777ade7d16b712a3ea8d19c784ba5f04168f5fc6206

See more details on using hashes here.

File details

Details for the file qoqo-1.16.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for qoqo-1.16.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 463c66bea4cef0e597280ec9a892f674450498b8dc4e23050d4adaddc8d47220
MD5 f74f4266af7814128353a6afb1043b8c
BLAKE2b-256 9cec0d4df57c97b5011cdd05aff105c74174f0a6f84158845914240e9ab6c177

See more details on using hashes here.

File details

Details for the file qoqo-1.16.1-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for qoqo-1.16.1-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 06d756ad896f908750fca1f56539e6ebb2e7876a90beb25877302d5484671394
MD5 a4e837f3a8ccfd014a5667cacfa6d0cb
BLAKE2b-256 a7f7af1df9d3731ec21c79c9d743c0cbc17c42e2784990418e75227d6f1247eb

See more details on using hashes here.

File details

Details for the file qoqo-1.16.1-cp312-none-win_amd64.whl.

File metadata

  • Download URL: qoqo-1.16.1-cp312-none-win_amd64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for qoqo-1.16.1-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 fd8a056d2397bb50713f9e474655f6db2913f4157d494947e151a11a9d557f85
MD5 b15991b38437b8f88ffb4ed8cc48fdbf
BLAKE2b-256 4912115b335941f58e3a68b410f0c279295ddf07542bd75ed58fffc0585e5182

See more details on using hashes here.

File details

Details for the file qoqo-1.16.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for qoqo-1.16.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6899a7da11f132861e8652538667b512a4a27b2e05ac8e5584910d023a2b5430
MD5 276edf491ba474ae9f4f8975a9eae656
BLAKE2b-256 abeed11054f39e33da06617b4b7c7ce61d900ecf05a9af37d9f24b71479c0836

See more details on using hashes here.

File details

Details for the file qoqo-1.16.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for qoqo-1.16.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4d012a4716eb647e6bcafd449bec0f44c4e1cc83ca0fb19ef92c6157f77ae480
MD5 b76e2bf98961951a173e7715939da7e6
BLAKE2b-256 98fcf35bba0acc9dec5ea887d5087282d289709f091d401a3743595a0bd7fb3f

See more details on using hashes here.

File details

Details for the file qoqo-1.16.1-cp311-none-win_amd64.whl.

File metadata

  • Download URL: qoqo-1.16.1-cp311-none-win_amd64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for qoqo-1.16.1-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 ff75ba50a0629160cfa7041457a989ba4007519d0151502faca57e9413b1a788
MD5 c6dbe22d6f308e3b9f266d28527bc6d7
BLAKE2b-256 106ff8cc0926444970a59086d16c6e768bc8f48d0abba43458d6d8e22d6a7d32

See more details on using hashes here.

File details

Details for the file qoqo-1.16.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for qoqo-1.16.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fb6674ab5e953fd2d9a852fffb28b24fd47fc23efcb8a0b7f2eafccb7a11dda9
MD5 38a42948f5166154e7861ca5e889ecfc
BLAKE2b-256 6d31125530b5f0d6a86cc28347741f4b08fb9bb75d5b2e78e330b94a5df3f346

See more details on using hashes here.

File details

Details for the file qoqo-1.16.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for qoqo-1.16.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6aeacb3c257882cea098b770dc70ddfcefd744e8a6fbf370ed9dc4c22dd0e43d
MD5 79a8d07de814423adc10f3ef0f64a4d5
BLAKE2b-256 713e0f71f48818eca3783337bcbeb48bed2a4dcf967459d26ee739bf5607d2d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qoqo-1.16.1-cp310-none-win_amd64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for qoqo-1.16.1-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 b011a16118ad484c8a209065356d8873ec9c78593bebd541d6b0862c612d77c4
MD5 cf46adf9a6ad5648b9f37c4ec6f2f7fe
BLAKE2b-256 981000103048cd7da95e650b3e85bb2e5465559075dff3d1a1beca06d175a245

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.16.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8641bdfb8601131e5a06d37e265949df32796c7118ae2bbd6b4e07b1ec836044
MD5 0bdf4cafa4f910cdd094bfe36d44f424
BLAKE2b-256 c091453110f1c3e5daa3c3511f6279cf2d7a4ee4b0aac1b36c69e89f07b103f0

See more details on using hashes here.

File details

Details for the file qoqo-1.16.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for qoqo-1.16.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 00976518032dc3b52b04b3e02b6ed34c28b09efc76408b9ed7730326d258a477
MD5 5077853234ec47d8b90baab63cd42673
BLAKE2b-256 565d7d35c0d3bae1e9ffc161f4caa9bd10fbd5a807b5a13cbc3d7253d7967afb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qoqo-1.16.1-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for qoqo-1.16.1-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 810d996cae7b71ba0426fe0e7e38d9dfefe2f63fdba0aae354e8222806bc95b2
MD5 7f244945ef6de193d86aa9b444bebc2f
BLAKE2b-256 3dc9f0814e41456eca05eaf52ed571c365744c74d959c8dd7aa3f37257059fa2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.16.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 472daca37435aa7188aa44b037b07887c5a8d61a40172294eb3cf3fd9ff837e3
MD5 f020ddaa51a309741b58ae0480d49f94
BLAKE2b-256 5725ece35ec20914a5133a258f76265f7e30ce3ddadc4d5ffe5033dd7bff737f

See more details on using hashes here.

File details

Details for the file qoqo-1.16.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for qoqo-1.16.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ac9da44886ef10bd5fa025d0e8ad8e848d056779c81f81373175ec5ed27c5ab7
MD5 21786c00ab11ad431df8b064bd7d2daf
BLAKE2b-256 c3bed5d6f7157800d3304f3922e002782fa7e030a820ec7663702566a441a9f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qoqo-1.16.1-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for qoqo-1.16.1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 4a00c05c0dad3f5b129a6860ff56ecebeb9d32665bdf85b57a92ded1cd9a4242
MD5 b30d7ea40ce7c47538dce374db4fb564
BLAKE2b-256 9c22528edba1c01b4803dca47807488c1c8382af1ba6d83464d218e4128ae44b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.16.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1b16b30bd9e6e42dc9534968f0801799faf868fe9417b1780962b78159c553ce
MD5 3e47ebc67e8d06c79704c2ffab77bd3c
BLAKE2b-256 d6b7ca7370539af9ffb57c1687218ef3757050c46234785162e9d6402147e629

See more details on using hashes here.

File details

Details for the file qoqo-1.16.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for qoqo-1.16.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d56d1ad787f7e6921e0a5752529f7226b8fe153510842357f1bf88fdab4414b9
MD5 0b80dff87e4c24a63dfba8606b866dd6
BLAKE2b-256 6057d9c1cb068235f107531a4aaf2aaef5fce3e608593b1f2d3f0c6f2ca2dd01

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page