Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

Metadata

Release files for qbraid-qir 0.0.1.dev20240111231857

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qbraid-qir 0.0.1.dev20240111231857
File Size Uploaded
qbraid-qir-0.0.1.dev20240111231857.tar.gz 250.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qbraid-qir 0.0.1.dev20240111231857
File Interpreter ABI Platform
qbraid_qir-0.0.1.dev20240111231857-py3-none-any.whl Python 3 none any Details

Total release size: 287.4 kB

Release files / qbraid-qir-0.0.1.dev20240111231857.tar.gz

Download URL qbraid-qir-0.0.1.dev20240111231857.tar.gz
Size 250.9 kB
Tags Source
SHA-256 checksum
How to use checksums
49142d77d0ffcda381d9641ecc7792312e32a110b3f5f46f82d122e1cf0c57ae
BLAKE2b-256 checksum
How to use checksums
117946e2e3f5e616076d1c41e177cb3debef072cb03b67d8c067f75b8add51e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / qbraid_qir-0.0.1.dev20240111231857-py3-none-any.whl

Download URL qbraid_qir-0.0.1.dev20240111231857-py3-none-any.whl
Size 36.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9513d6ed43dc91073be9fdecff550a83da17fea9a38dbbb9651a229f3a7f28ef
BLAKE2b-256 checksum
How to use checksums
5c3b93198c2b5ed1a680cf97ea9725c50b804caaa4955beb2e9296bcf03f3701
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page