Skip to main content

qiskit-qir

Qiskit to QIR translator.

Example

from qiskit import QuantumCircuit
from qiskit_qir import to_qir_module

circuit = QuantumCircuit(3, 3, name="my-circuit")
circuit.h(0)
circuit.cx(0, 1)
circuit.cx(1, 2)
circuit.measure([0,1,2], [0, 1, 2])

module, entry_points = to_qir_module(circuit)
bitcode = module.bitcode
ir = str(module)

Installation

Install qiskit-qir with pip:

pip install qiskit-qir

Note: this will automatically install PyQIR if needed.

Development

Install from source

To install the package from source, clone the repo onto your machine, browse to the root directory and run

pip install -e .

Tests

First, install the development dependencies using

pip install -r requirements_dev.txt

To run the tests in your local environment, run

make test

To run the tests in virtual environments on supported Python versions, run

make test-all

Docs

To build the docs using Sphinx, run

make docs

Metadata

Release files for iqm-qiskit-qir 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iqm-qiskit-qir 0.10.0
File Size Uploaded Provenance Actions
iqm_qiskit_qir-0.10.0.tar.gz 31.7 kB Without provenance Details for iqm_qiskit_qir-0.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for iqm-qiskit-qir 0.10.0
File Interpreter ABI Platform Actions
iqm_qiskit_qir-0.10.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for iqm_qiskit_qir-0.10.0-py2.py3-none-any.whl

Total release size: 51.8 kB

Release files / iqm_qiskit_qir-0.10.0.tar.gz

Download URL iqm_qiskit_qir-0.10.0.tar.gz
Size 31.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5a6544fce953091e67bc7e3432b5ae6f97351c0955fe0bf455c447a6229d1eae
BLAKE2b-256 checksum
How to use checksums
a32991c4def73c6548fc5ab4e4589bda6b9ab4c2be383706ab4ca23d7333423e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / iqm_qiskit_qir-0.10.0-py2.py3-none-any.whl

Download URL iqm_qiskit_qir-0.10.0-py2.py3-none-any.whl
Size 20.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
234e5a45bd2c6cfbb44f4535dada7802cb238f97cabe7035610a9637e1d01072
BLAKE2b-256 checksum
How to use checksums
bce116cb54c7ebd8bd4c3baf8c34d8a9ccf3e20d9869168d99297d6265572498
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Security for iqm-qiskit-qir 0.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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