qBraid-SDK extension providing support for QIR conversions
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for qbraid-qir-0.0.1.dev20240103022636.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f152aa074aee7291ddc88fe81e7c0c43e178bc7cee887079cc0ae5e16d56927e |
|
MD5 | db3517f1c9989a248e75d17ac2a63b10 |
|
BLAKE2b-256 | 67bcab70656f0762e485e95f02265b6418ff430b03590ec8b003e946c507f8d0 |
Close
Hashes for qbraid_qir-0.0.1.dev20240103022636-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8aecd16f7e4ae8fadf110e164f4e5c539a0b307320ac34c7c4a109726d4d0d9f |
|
MD5 | 439ca9c79d994134c5846e779ccb5ec9 |
|
BLAKE2b-256 | 9e108eaeab81a9557eb1eb181779d5d3f9c54c78da28fddd2c2181bc64d9396d |