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.2.0.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

qiskit_qir-0.2.0-py2.py3-none-any.whl (18.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file qiskit-qir-0.2.0.tar.gz.

File metadata

  • Download URL: qiskit-qir-0.2.0.tar.gz
  • Upload date:
  • Size: 21.5 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

Hashes for qiskit-qir-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c94e4532a849429e0038f98c7ba6fbb537f0bfe832db14e0634f0a064bcccdca
MD5 433fb08d991fe189035e53767b5de32a
BLAKE2b-256 702b177c571788d301ad3299c7ad5ac973769b3c95bd14d50f4253e0c147be20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qiskit_qir-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 18.9 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

Hashes for qiskit_qir-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5c08eafd1dc2ad41c92e660dcaa2377be4546cd06ca4f0353588a47b7d9a3cb0
MD5 debfc7e9cfae1d409d5e07673c094137
BLAKE2b-256 4573d398cac44052c28049e519ca67fe4d27630156634d144955d4d4f7dfd340

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