Skip to main content

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


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.0b13.tar.gz (30.5 kB view details)

Uploaded Source

Built Distribution

qiskit_qir-0.1.0b13-py2.py3-none-any.whl (18.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file qiskit-qir-0.1.0b13.tar.gz.

File metadata

  • Download URL: qiskit-qir-0.1.0b13.tar.gz
  • Upload date:
  • Size: 30.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.6

File hashes

Hashes for qiskit-qir-0.1.0b13.tar.gz
Algorithm Hash digest
SHA256 e68d5d9402619567bafe4e9ab1868c27ec1b46209692a4ad8ade6de2bf632802
MD5 ce4caf427477b0da1e15d3dc2047cb27
BLAKE2b-256 d2c0d53fc191d7436d2f204fe1f1bd4b041c70bbc8c416e572b9549d48e0e898

See more details on using hashes here.

File details

Details for the file qiskit_qir-0.1.0b13-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for qiskit_qir-0.1.0b13-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 16c81b4008019c99909a0de8bb6483fef78737c9bd68ab7a9548b07828df867c
MD5 ccb6d3e45dcfa7067294057f7e567121
BLAKE2b-256 0f6ee0c0ec01b984a3c39af993569fb283f915c2e7b116f7bf8f30eb1ccade52

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page