Pre-release
This release is a pre-release and may not be stable for production use.
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
Metadata
Release files for qbraid-qir 0.0.1.dev20240111204536
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qbraid-qir-0.0.1.dev20240111204536.tar.gz | 250.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qbraid_qir-0.0.1.dev20240111204536-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 287.4 kB
Release files / qbraid-qir-0.0.1.dev20240111204536.tar.gz
| Download URL | qbraid-qir-0.0.1.dev20240111204536.tar.gz |
|---|---|
| Size | 250.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61123f7e78916f64bfee94261549b064a7cda5c72f12795d7b68cffa4894ae25
|
|
BLAKE2b-256 checksum How to use checksums |
107025d5131c758cf42ebd237a655bcc0932685dbed47ceefcf0e1fde2429f37
|
| 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.dev20240111204536-py3-none-any.whl
| Download URL | qbraid_qir-0.0.1.dev20240111204536-py3-none-any.whl |
|---|---|
| Size | 36.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d0cb98f099dc62f2a0d01947bf1f28907856047438b1aeadfa7f1ac3984a004
|
|
BLAKE2b-256 checksum How to use checksums |
498b5c83596f4998b4a9ee6fc33878660216e57ae91620306303ead0fd1ba820
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|