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

This version

1.2.3

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.2.3.tar.gz (185.9 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.2.3-cp310-none-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.10Windows x86-64

qoqo-1.2.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

qoqo-1.2.3-cp310-cp310-macosx_10_7_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10macOS 10.7+ x86-64

qoqo-1.2.3-cp39-none-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.9Windows x86-64

qoqo-1.2.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

qoqo-1.2.3-cp39-cp39-macosx_10_7_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.9macOS 10.7+ x86-64

qoqo-1.2.3-cp38-none-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.8Windows x86-64

qoqo-1.2.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

qoqo-1.2.3-cp38-cp38-macosx_10_7_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.8macOS 10.7+ x86-64

qoqo-1.2.3-cp37-none-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.7Windows x86-64

qoqo-1.2.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

qoqo-1.2.3-cp37-cp37m-macosx_10_7_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.7mmacOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: qoqo-1.2.3.tar.gz
  • Upload date:
  • Size: 185.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for qoqo-1.2.3.tar.gz
Algorithm Hash digest
SHA256 4c1e8d8752f5c28d58983bb72c246befaa91fbe6b143c6b7b7b89b53c35be736
MD5 afe1795e5e99fa5b0135107a57316f94
BLAKE2b-256 7cf78b3c110295444802e0d9a03185ab5fdf25c74de9c0d3b9cf6ba52712e63e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qoqo-1.2.3-cp310-none-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for qoqo-1.2.3-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 83fe045037299f978b0b95ee32267b051b91a2814555d894889a48b1c377ab5f
MD5 5e11d7a2fcd1c85a5fc3e09b3ee171a7
BLAKE2b-256 869cb2d0502240a41af286fc0e336aa7dc2205cf198cd311f8eeb57d91ab0ecd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.2.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c2a0caa4bd3ef034cdaa66e90ca479f29438142aa8b8c7483252caf31c645795
MD5 8eb494afbfe8f758a6d062d3c700bed6
BLAKE2b-256 9199f5e6cb6c34e7a3396042e97caf6e0a8bfa7fbb4b75a4ff42750468f87867

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.2.3-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 70401d48ab5fa1de461438fa66015fa87fe1a802ba91f744739ccdbb51a698ff
MD5 088b6eea2152be5b0af3061a6b28e7cc
BLAKE2b-256 4b0a0cfa4829c8b4706039a989a6d996c529f1d5dd826f3c1410bfd92a016c3b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qoqo-1.2.3-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for qoqo-1.2.3-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 4f0cb62d43319f356516803579cfa25a084986241789bbcd9967d23ed4c5075a
MD5 7c51997671fe8476a307b133c11a3bde
BLAKE2b-256 22c9fac0e2be49f3825d64459080b15bf44463b29eeb38a3662daaa2c0d03e64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.2.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7a44cd047c57694167af805a5d64ea4009228d7363bf5925b3f040e155298e4b
MD5 b304c90f8855f08cd454d59206c303e2
BLAKE2b-256 baeac61efc88b21372ddef58cae45a9cab9b5a165dd2648a882390134ce5d994

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.2.3-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 4291b379a96da9b851c95a9d53ab745a3d6ff5ee472172b08218efb21ed3a384
MD5 e544e48dcac355788c69042d25fa7468
BLAKE2b-256 fd2d5d32b20decac684a397b47c7e375ea6f703a7d316d1ba806af8de1e7a78a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qoqo-1.2.3-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for qoqo-1.2.3-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 e16561e175d041e8a03e37f48a04563dba8bb03e06301b342c4b2316183a030b
MD5 a70c5183a509486c9612b07167ffce3b
BLAKE2b-256 0ed87e692fcb082eb0391012c2c4f89470cf3b6a7197aa4b4854fbab5e15f80e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.2.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 659df4b042ad036fc6b1d02779397c4118ca2224329295907f39dfb21c23beaa
MD5 f306dbc983996b19c4d0c3d3a265f68f
BLAKE2b-256 f6460f8c21754e0f10e47a25b3ca313b01b04cb47865cf57f0fda91ef0200663

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.2.3-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 d20263d1fc14315af739b58a7fd9d87a204e491a450f253b335c5964146f33e5
MD5 5ef06e019381a817f7efa5b1361aeb8a
BLAKE2b-256 1cec381c6305407f7a96919e1ab7ecda22f0e2ced6282dd30b9ca12a83a951b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qoqo-1.2.3-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for qoqo-1.2.3-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 6b9c89eb7abe9eb25e005b9f9d2fbe2dc27b46c6dc0b77218bced7fcf56a726a
MD5 7b3158698b714b55ae06e4e091f5a26a
BLAKE2b-256 7032c3e0456de565af13c81073cbc8614bb690aee27bd8cb41e43cbf0d628d9a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.2.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 97edd65a523c520ccb17023402623adf43503c34ec60cb13f9ef28d51ca75bfc
MD5 2b23be445acddaf441f4335f4e4ed451
BLAKE2b-256 492190aca181e7c3891dc6ce9465ec56f6506724373c49664282ba9d064cbe0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.2.3-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 b923637bc8c2004e8c335448c678e51eaf944ea8ef43a82a25be419066ed6908
MD5 8b11da0904e9ff9e09f65bf4d0dc405e
BLAKE2b-256 71ab32ddf5947750ba0ee94c5a23725c76be07bcb4d56e09627027906afe45f2

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