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

Uploaded Source

Built Distribution

qiskit_qir-0.3.0-py2.py3-none-any.whl (19.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: qiskit-qir-0.3.0.tar.gz
  • Upload date:
  • Size: 33.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.15

File hashes

Hashes for qiskit-qir-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d8dd521ea1b654f09a583a61482301e5a9860884f1e11af134f12c89cb075c0d
MD5 131c257518cfb10f0d2f3a6af8dddec2
BLAKE2b-256 95f74b1987c2872c05b82203de4ee8c7489c33b983abfda72e534bcefeabb4ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qiskit_qir-0.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.15

File hashes

Hashes for qiskit_qir-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cbeb0440686abb70ba431f02755c8edc310f9a1744f14bf797cff8e2862719d5
MD5 782c6ba2957a904aca3e38730abe7c77
BLAKE2b-256 1a83e82e6383374ae5c0d048e1a1627e8352cc8f090cba1575b1df8d7364d4d0

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