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.1.0b10.tar.gz
(20.6 kB
view details)
Built Distribution
File details
Details for the file qiskit-qir-0.1.0b10.tar.gz
.
File metadata
- Download URL: qiskit-qir-0.1.0b10.tar.gz
- Upload date:
- Size: 20.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.8.2 requests/2.22.0 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05c0f034e6c3f6c0edbaefc5adcb710ac7369b5c36bdefc0062fa8e05e9df15e |
|
MD5 | 78eb4afb064966eabe84338ddc208829 |
|
BLAKE2b-256 | 9e9b9d7a63fc465d1b08654782951bceb0c96bc8a1b7e70c23a01c976a5c4951 |
File details
Details for the file qiskit_qir-0.1.0b10-py2.py3-none-any.whl
.
File metadata
- Download URL: qiskit_qir-0.1.0b10-py2.py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.8.2 requests/2.22.0 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bec5f36d07ce83c26718e1782af622231a08857fbd2ab76f6fc5a31052565cf |
|
MD5 | 2b8c03ec67937d1dc876685bc3a193bc |
|
BLAKE2b-256 | e856a5a9bee4804a2c7d8dcf8f39b41435159d994730948d200f6d8931cee18e |