Qiskit to QIR translator
Project description
qiskit-qir
Qiskit to QIR translator.
Example
from qiskit import QuantumCircuit
from qiskit_qir import to_qir
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])
qir = to_qir(circuit)
Installation
Install pyqir-generator
and qiskit-qir
with pip
:
pip install pyqir-generator
pip install qiskit-qir
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
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
qiskit-qir-0.3.0a1.tar.gz
(32.9 kB
view hashes)
Built Distribution
Close
Hashes for qiskit_qir-0.3.0a1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bf1198643b04fd9b2dff88b0ff064d5c092c1163279fb2b07e516763ff0dda1 |
|
MD5 | 3ea48172ae8dff3a4c263b84f1496486 |
|
BLAKE2b-256 | ca04de5a41c192137083f2013c5e1ef20e849aa44f040f1805454c5bfcf285c2 |