Skip to main content

QRyd backend for qoqo quantum computing toolkit

Project description

qoqo-qryd

GitHub Workflow Status PyPI PyPI - Format Crates.io Crates.io

The qoqo-qryd python package implements modules to support qoqo usage with quantum computers and quantum computer emulators of the QRydDemo project.

The QRydDemo project builds on quantum computers using Rydberg atoms. qoqo is quantum computing toolkit by HQS Quantum Simulations.

The qoqo-qryd package contains the following functionality:

Interface to the current QRydDemo WebAPI

At the moment QRydDemo WebAPI allows access to Quantum Hardware Emulators of different device topology. qoqo-qryd supports interfacing with the corresponding REST-API with low level calls as well as a high-level backend to qoqo quantum programs. For this it provides the backend APIBackend to evaluate qoqo quantum programs and the api_devices module to represent devices available on the emulators.

QRydDemo specific hardware operations (prototype)

Rydberg atom based quantum devices support, in principle, operations not commonly found in other quantum hardware. Changes in device topology are one of these operations. qoqo-qryd adds support for changes in device topology to qoqo via the operations in its pragma_operations module. Note that this is a preview prototype and does not represent a finalized set of operations on the QRydDemo hardware.

Local simulator supporting specific hardware operations

qoqo-qryd includes a local QuEST based simulator for quantum devices supporting the Rydberg specific quantum operations. The simulator is intended to let users test the capabilities of quantum hardware with the additional operations. qoqo-qryd provides the simulator via the SimulatorBackend qoqo-compatible backend that uses the device prototypes in its qryd_devices module. Note that the devices for the simulator do not represent a finalized design for QRydDemo.

Accessing QRydDemo WebAPI

To use the WebAPI, a QRydDemo account is required. Users can register via the online registration form.

Installation

The qoqo-qryd package is available on PyPi as a source distribution and as precompiled wheels for linux and macOS on the x86 platform. Other platforms need to install from the source distribution.

For both source distribution and pre-built wheels it can be installed via

pip install qoqo-qryd

When building from source qoqo-qryd requires rust, maturin and cmake to be installed locally. We recommend using rustup to set up a rust toolchain. The pip command should also automatically install maturin to build a python package locally and install it.

For a quick installation of the dependencies you can also use:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
pip install maturin

Documentation

The user documentation is provided on github pages. The API-documentation for qoqo-qryd can be found as an appendix of the user documentation.

Examples

A small collection of example python scripts for the QRydDemo project can be found in the project github repository. The examples include

  • howto_webapi_qoqo.ipynb provides an example accessing the QRydDemo's emulator with qoqo.
  • switch_layout_example.py shows how to construct a QRydDemo device and using the PragmaChangeQrydLayout operation to switch between layouts in a quantum Circuit.
  • shift_qubits_example.py shows how to construct a QRydDemo device and using the PragmaShiftQrydQubit operation to shift qubits between tweezer positions in a quantum Circuit.
  • multi_qubit_example.py shows how to use multi-qubit-operations.
  • serialisation_example.py demonstrates how to serialize a QuantumProgram to JSON format.

OpenSSL

Acknowledgments related to using OpenSSL for http requests:

"This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/)."

This product includes cryptographic software written by Eric Young (eay@cryptsoft.com). This product includes software written by Tim Hudson (tjh@cryptsoft.com).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qoqo_qryd-0.16.4.tar.gz (232.9 kB view hashes)

Uploaded Source

Built Distributions

qoqo_qryd-0.16.4-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.9 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

qoqo_qryd-0.16.4-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.9 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

qoqo_qryd-0.16.4-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.9 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

qoqo_qryd-0.16.4-cp312-none-win_amd64.whl (5.9 MB view hashes)

Uploaded CPython 3.12 Windows x86-64

qoqo_qryd-0.16.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

qoqo_qryd-0.16.4-cp312-cp312-macosx_11_0_arm64.whl (5.2 MB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

qoqo_qryd-0.16.4-cp312-cp312-macosx_10_12_x86_64.whl (5.7 MB view hashes)

Uploaded CPython 3.12 macOS 10.12+ x86-64

qoqo_qryd-0.16.4-cp311-none-win_amd64.whl (5.9 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

qoqo_qryd-0.16.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

qoqo_qryd-0.16.4-cp311-cp311-macosx_11_0_arm64.whl (5.2 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

qoqo_qryd-0.16.4-cp311-cp311-macosx_10_12_x86_64.whl (5.6 MB view hashes)

Uploaded CPython 3.11 macOS 10.12+ x86-64

qoqo_qryd-0.16.4-cp310-none-win_amd64.whl (5.9 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

qoqo_qryd-0.16.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

qoqo_qryd-0.16.4-cp310-cp310-macosx_11_0_arm64.whl (5.2 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

qoqo_qryd-0.16.4-cp310-cp310-macosx_10_12_x86_64.whl (5.6 MB view hashes)

Uploaded CPython 3.10 macOS 10.12+ x86-64

qoqo_qryd-0.16.4-cp39-none-win_amd64.whl (5.9 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

qoqo_qryd-0.16.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

qoqo_qryd-0.16.4-cp39-cp39-macosx_11_0_arm64.whl (5.2 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

qoqo_qryd-0.16.4-cp39-cp39-macosx_10_12_x86_64.whl (5.6 MB view hashes)

Uploaded CPython 3.9 macOS 10.12+ x86-64

qoqo_qryd-0.16.4-cp38-none-win_amd64.whl (5.9 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

qoqo_qryd-0.16.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

qoqo_qryd-0.16.4-cp38-cp38-macosx_11_0_arm64.whl (5.2 MB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

qoqo_qryd-0.16.4-cp38-cp38-macosx_10_12_x86_64.whl (5.6 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