Skip to main content

ParityOS Qrisp

ParityOS extension adding an interface to Qrisp.

Installation

It is recommended to install this package in a separate Python virtual environment. For example:

# To create a standard Python virtual environment:
python -m venv my_new_venv && source my_new_venv/bin/activate
# Alternatively, to create a Anaconda/Miniconda environment:
conda create --name my_new_conda_env python=<version> && conda activate my_new_conda_env
# or a pyenv environment
pyenv virtualenv <version> my_new_venv && pyenv activate my_new_venv
# or a uv managed environment
uv venv -p <version>

where <version> is a python version and one of [3.11, 3.12, 3.13].

After activating the virtual environment, install via your favorite package manager, e.g.:

# using pip
pip install parityos-qrisp
# using uv
uv pip install parityos-qrisp

Exporter

parityos-qrisp offers an exporter of ParityOS quantum circuits to Qrisp quantum circuits.

Basic usage

In the following you find a basic usage of the exporter:

from parityos.operators.circuit import Circuit
from parityos.operators.elementary_operator import H
from parityos_qrisp.exporter import export_parityos_to_qrisp

#      ┌───┐┌─┐
#   0: ┤ H ├┤M├──────
#      ├───┤└╥┘┌─┐
#   1: ┤ H ├─╫─┤M├───
#      ├───┤ ║ └╥┘┌─┐
#   2: ┤ H ├─╫──╫─┤M├
#      └───┘ ║  ║ └╥┘
# c: 3/══════╩══╩══╩═
#            0  1  2
parityos_circuit = Circuit(
    [
        H(q(0)),
        H(q(1)),
        H(q(2)),
    ]
).measure_all()

qrisp_circuit = export_parityos_to_qrisp(parityos_circuit)

Unsupported features

Currently, parityos-qrisp cannot export the following circuits:

  • Circuits containing conditional operators
  • Circuits containing general rotation operators
  • Circuits containing measurements in Y
  • Circuits containing the following gates (including their controlled versions): ISwap, ECR, RYY, RXZ, RExchangeTerm

License

This software package is made available under the 3-Clause BSD License. See License.txt for details.

Download files

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

Source Distribution

parityos_qrisp-0.1.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

parityos_qrisp-0.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file parityos_qrisp-0.1.0.tar.gz.

File metadata

  • Download URL: parityos_qrisp-0.1.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for parityos_qrisp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d5f25c6a0fc51667d0baa55136aea3472941920f25f36e1bb49b80977193542b
MD5 d1c8bd742ded1f9f11dcbd85a27074e0
BLAKE2b-256 0c8edfdf240f14f8ee27b2a95d185b72f079dec83a07843ce51de5470eeb5da4

See more details on using hashes here.

File details

Details for the file parityos_qrisp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: parityos_qrisp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for parityos_qrisp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 abe68ff368707941c9a15410b5d654b2aa33b9fa064449bf4fd326276a7b791b
MD5 a0fecdccc58a4dd37cd26d3583cfca2e
BLAKE2b-256 8495d52a5e65c3fdbffdcf58719bfd94b1c66dab97ae36b631673e116107342a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page