Skip to main content

qBraid-SDK extension providing support for QIR conversions

Project description

qbraid-qir-header

CI Documentation Status PyPI version PyPI version License Discord

Work in progress

qBraid-SDK extension providing support for QIR conversions.

This project aims to make QIR representations accessible via the qBraid-SDK transpiler, and by doing so, open the door to language-specific conversions from any and all high-level quantum languages supported by qbraid. See QIR Alliance: why do we need it?.

Getting started

Installation

pip install qbraid-qir

Example

import cirq
from qbraid_qir import cirq_to_qir

q0, q1 = cirq.LineQubit.range(2)

circuit = cirq.Circuit(
  cirq.H(q0),
  cirq.CNOT(q0, q1),
  cirq.measure(q0, q1)
)

module = cirq_to_qir(circuit, name="my-circuit")

ir = str(module)

Development

Install from source

git clone https://github.com/qBraid/qbraid-qir.git
cd qbraid-qir
pip install -e .

Run tests

pip install -r requirements-dev.txt
pytest tests

with coverage report

pytest --cov=qbraid_qir --cov-report=term tests/

Build docs

cd docs
pip install -r requirements.txt
make html

Architecture diagram

architecture

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

qbraid-qir-0.1.0.tar.gz (303.0 kB view details)

Uploaded Source

Built Distribution

qbraid_qir-0.1.0-py3-none-any.whl (36.6 kB view details)

Uploaded Python 3

File details

Details for the file qbraid-qir-0.1.0.tar.gz.

File metadata

  • Download URL: qbraid-qir-0.1.0.tar.gz
  • Upload date:
  • Size: 303.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for qbraid-qir-0.1.0.tar.gz
Algorithm Hash digest
SHA256 806de294f13ff35b8d8d2be51276467a542587b43bec54775495cbe2a8f8d15b
MD5 42238a9896749ca436a1cda6169442a3
BLAKE2b-256 8ead30726a7e0e6d085f0bb997d7388a7f399c191f35d37279bdd94b8f743c5d

See more details on using hashes here.

File details

Details for the file qbraid_qir-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: qbraid_qir-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 36.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for qbraid_qir-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c3b624d03979881adad6edf30562b329c78507d60d9f0f1b90ca6ae8d9ef390
MD5 88c97d5ca2ca1516f577e2f43e71affe
BLAKE2b-256 f0b0e6630408078daab29df1d2b63c90383debb915de53ac11e3ed159d339581

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