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.2

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

Uploaded CPython 3.10Windows x86-64

qoqo-1.2.2-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.2-cp310-cp310-macosx_10_7_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10macOS 10.7+ x86-64

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

Uploaded CPython 3.9Windows x86-64

qoqo-1.2.2-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.2-cp39-cp39-macosx_10_7_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.9macOS 10.7+ x86-64

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

Uploaded CPython 3.8Windows x86-64

qoqo-1.2.2-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.2-cp38-cp38-macosx_10_7_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.8macOS 10.7+ x86-64

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

Uploaded CPython 3.7Windows x86-64

qoqo-1.2.2-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.2-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.2.tar.gz.

File metadata

  • Download URL: qoqo-1.2.2.tar.gz
  • Upload date:
  • Size: 185.6 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.2.tar.gz
Algorithm Hash digest
SHA256 b1d92b86ba2919acde0e23b0e7a349b9f20f049f8d7f8bff2d98c5c7dcfaefb2
MD5 ad4083c970dddfa9f252fc7e3be18c4d
BLAKE2b-256 adbfa4ef75f4b94fd7f28c8bbc513ccab62244d4849c677b99cad60037f0b0da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qoqo-1.2.2-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.2-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 c00907564c0a6f76bc637d93481ad50def5d6e768f52c99e8da8a07734aa69b2
MD5 94379ada041c6292166aaa2605db0143
BLAKE2b-256 4cdefef9f20a1d765f2300aa4672bfef56b7e4b18f0b949f67aa3c3237504640

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 391287afaa5aabe01536e750f538cbbdc37961617ce8b394211cb1a287749e76
MD5 bed07b6904189abcf6f93a1c9eb2f32b
BLAKE2b-256 865e643e9c17fbb88f5caadb2259243db4375c3a3fdbe1f9379f9f6c1ba764dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.2.2-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 d31520f812265db89f94607eeaab250a244d4ae62ef72ef0b1e428a7273850ff
MD5 7a2b0c169d9a300cfccbd283b146b0a1
BLAKE2b-256 30351731fae45fce36448e39d44e26e6cdda2915d9c92254e448ae40ca502c3b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qoqo-1.2.2-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.2-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 7ed6041ed68a11c3069913667ab1040d8c027231a95f833dd1b90e30d1bfff33
MD5 2800ada7275025b3f109facfcc1ba5ed
BLAKE2b-256 24b2de5937f18939064c1c6c0a6e1be7fefc2f6c2da2b2fd3dc14209954f4a0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5e046fe64e0072883a29f65a968f8ed48208272dd688cbbcfc9f1c627bc6ece0
MD5 4c11091dae2f99c661eeaa6a005a8f58
BLAKE2b-256 d40b53358ac5cd7b8d537d16686e2fe1716399187a503ef5314dce31fa57dc0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.2.2-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 d23a51b313ee61ad2eb580f5a3df1f5276df541509a5ad60a8530f02da3f8a03
MD5 4ccdf25af97200b8fb2f74422d1f6474
BLAKE2b-256 a0f8616b332b1f9c0010a6615aebf5f81bef53e80c94ca89a8422b0a421b0b4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qoqo-1.2.2-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.2-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 9c287a1418647972d13407c163f108b0959108b14352dfe30a63ece2fd5d9990
MD5 2ca318f16f70a85bcc559b4c6125c1bb
BLAKE2b-256 77cd1bb5936c3100237ebbdf1db493d37e5b3ab80458bae5f049afc2e1020e07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f8b962baef51fcdcbca601beb0a215ad5b2f3331ae8eb0c8f9d2e8dbd0660d9d
MD5 9e5e0f527c0bb2eefdaea2ec8be12c22
BLAKE2b-256 cc1a925701841f02dab3a0ca6ee5cc27ce84243a119b728d661cef1a6f003a2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.2.2-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 c8025322c483feb982a499c1a97fc5a5dbf7d2f8c69409ddedb6a5e999a8cda1
MD5 12c3cb56f9da17feb1aed048247d6dc2
BLAKE2b-256 90763d03c6cf64c950a9c09ab4b7d4fe9e8a84f98551a15fa8e245f23f141add

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qoqo-1.2.2-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.2-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 3ae0232511332c02c17e8bb662b0af7ec5c7cc255d601496f9e66d422339406c
MD5 77102222fc1a52db0e76d2aae3544ca8
BLAKE2b-256 18a4e79fec835f8574330dd0ac63dc58125ad9a958a4a3ab984578f05232bd4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.2.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 27bcb60208c1d9e6ede38b0e708fae77f18f77aac34b036075f22de45a8ff919
MD5 c2b8bdc4fcd6934e63bd7712b4365ae0
BLAKE2b-256 a0252258dd33569a17af1ffa97a0e5c074693230d05e760f68977a3c7b89cd1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for qoqo-1.2.2-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 8a11bc910b859cafb9f22431b3a32a7115f4f8bdad43b2ea5c1bac02c3563fe2
MD5 1a214cd3ef6016d516dffc881d3fdc64
BLAKE2b-256 f173254cd4e97c118be099dc102981fa1366f11d234697c547bbe50c8cf810d9

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