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.0b8.tar.gz
(17.9 kB
view details)
Built Distribution
File details
Details for the file qiskit-qir-0.1.0b8.tar.gz
.
File metadata
- Download URL: qiskit-qir-0.1.0b8.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.8.2 requests/2.27.1 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07d0fca2a436e90ab299d2e1a9bbbf1acd134814dcaa322505c6456fb330f6d6 |
|
MD5 | 2e9b7f78bc73b271ecdcb6b0cb93a4cc |
|
BLAKE2b-256 | 47ee98e12a4b8ca9ddeaf7f88c5b37028c0f020bd4837e2fbae80f8d23b7a903 |
File details
Details for the file qiskit_qir-0.1.0b8-py2.py3-none-any.whl
.
File metadata
- Download URL: qiskit_qir-0.1.0b8-py2.py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.8.2 requests/2.27.1 setuptools/58.1.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4771c54293231cdd50c6ab40c2dfb25a27ea99306572da37666552b7f66606c |
|
MD5 | e022f02bc04478a7f78f962ef9079ca8 |
|
BLAKE2b-256 | f21a6a8b7586e9b54bce72efc226f2d2879d30252884c1515db8d83739c05d5a |