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.15.2.tar.gz (411.2 kB view hashes)

Uploaded Source

Built Distributions

qoqo-1.15.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

qoqo-1.15.2-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

qoqo-1.15.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

qoqo-1.15.2-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

qoqo-1.15.2-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

qoqo-1.15.2-cp312-none-win_amd64.whl (4.3 MB view hashes)

Uploaded CPython 3.12 Windows x86-64

qoqo-1.15.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

qoqo-1.15.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

qoqo-1.15.2-cp312-cp312-macosx_11_0_arm64.whl (3.9 MB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

qoqo-1.15.2-cp312-cp312-macosx_10_12_x86_64.whl (4.2 MB view hashes)

Uploaded CPython 3.12 macOS 10.12+ x86-64

qoqo-1.15.2-cp311-none-win_amd64.whl (4.3 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

qoqo-1.15.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

qoqo-1.15.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

qoqo-1.15.2-cp311-cp311-macosx_11_0_arm64.whl (3.9 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

qoqo-1.15.2-cp311-cp311-macosx_10_12_x86_64.whl (4.2 MB view hashes)

Uploaded CPython 3.11 macOS 10.12+ x86-64

qoqo-1.15.2-cp310-none-win_amd64.whl (4.3 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

qoqo-1.15.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

qoqo-1.15.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

qoqo-1.15.2-cp310-cp310-macosx_11_0_arm64.whl (3.9 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

qoqo-1.15.2-cp310-cp310-macosx_10_12_x86_64.whl (4.2 MB view hashes)

Uploaded CPython 3.10 macOS 10.12+ x86-64

qoqo-1.15.2-cp39-none-win_amd64.whl (4.3 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

qoqo-1.15.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

qoqo-1.15.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

qoqo-1.15.2-cp39-cp39-macosx_11_0_arm64.whl (3.9 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

qoqo-1.15.2-cp39-cp39-macosx_10_12_x86_64.whl (4.2 MB view hashes)

Uploaded CPython 3.9 macOS 10.12+ x86-64

qoqo-1.15.2-cp38-none-win_amd64.whl (4.3 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

qoqo-1.15.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

qoqo-1.15.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

qoqo-1.15.2-cp38-cp38-macosx_11_0_arm64.whl (3.9 MB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

qoqo-1.15.2-cp38-cp38-macosx_10_12_x86_64.whl (4.2 MB view hashes)

Uploaded CPython 3.8 macOS 10.12+ x86-64

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