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.dev20240103022636

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.dev20240103022636
File Size Uploaded
qbraid-qir-0.0.1.dev20240103022636.tar.gz 248.8 kB Details

Built distribution (wheel)

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

Total release size: 282.2 kB

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

Download URL qbraid-qir-0.0.1.dev20240103022636.tar.gz
Size 248.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f152aa074aee7291ddc88fe81e7c0c43e178bc7cee887079cc0ae5e16d56927e
BLAKE2b-256 checksum
How to use checksums
67bcab70656f0762e485e95f02265b6418ff430b03590ec8b003e946c507f8d0
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.dev20240103022636-py3-none-any.whl

Download URL qbraid_qir-0.0.1.dev20240103022636-py3-none-any.whl
Size 33.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8aecd16f7e4ae8fadf110e164f4e5c539a0b307320ac34c7c4a109726d4d0d9f
BLAKE2b-256 checksum
How to use checksums
9e108eaeab81a9557eb1eb181779d5d3f9c54c78da28fddd2c2181bc64d9396d
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