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

Uploaded Source

Built Distribution

qiskit_qir-0.1.0b5-py2.py3-none-any.whl (6.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: qiskit-qir-0.1.0b5.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 pkginfo/1.8.2 readme-renderer/27.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.2 keyring/23.4.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for qiskit-qir-0.1.0b5.tar.gz
Algorithm Hash digest
SHA256 6eeb335f80e78f977c9b51c8fc9ef29ca13dcbf0981baa3adcaabaaa769d4d69
MD5 b60de7d1ac8566e31d3596d0660bb558
BLAKE2b-256 03a8f80594b2a30a1dc94c6bc98b6686e1eef4ca0d576136a50b9bfc8f2c4526

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qiskit_qir-0.1.0b5-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 pkginfo/1.8.2 readme-renderer/27.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.2 keyring/23.4.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for qiskit_qir-0.1.0b5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9e7c9244d79d69a4e9429e12b9a4cf3c921b6b827430b1f4e531edb18ef980c2
MD5 24ada73e901a392999ed3e73aaf1e468
BLAKE2b-256 3a3182a26782d3919b3e1c28f88917d427a5ef29f1a9035c2d2522e37e75ac5c

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