Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

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 qiskit-qir 0.5.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 qiskit-qir 0.5.0
File Size Uploaded
qiskit-qir-0.5.0.tar.gz 33.4 kB Details

Built distribution (wheel)

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

Total release size: 53.2 kB

Release files / qiskit-qir-0.5.0.tar.gz

Download URL qiskit-qir-0.5.0.tar.gz
Size 33.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5635837234974fdf6f1f6863231493f1fcdd571dc5283b480fe45ef69c9c86fd
BLAKE2b-256 checksum
How to use checksums
954f242d1fe01ff971895689c7fe9924e0f886df29b0bbf4f6334b013dee6ad4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / qiskit_qir-0.5.0-py2.py3-none-any.whl

Download URL qiskit_qir-0.5.0-py2.py3-none-any.whl
Size 19.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
646c924919d24562d4640973f0284d32e9e2e8c63b6352b12e98f1bce89b1e8e
BLAKE2b-256 checksum
How to use checksums
ebad359059ba1169a106fa9f0bfdd7068423ead0490aa313fb2361cb03116dde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7
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