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?.
pip install qbraid-qir
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)
git clone https://github.com/qBraid/qbraid-qir.git
cd qbraid-qir
pip install -e .
pip install -r requirements-dev.txt
pytest tests
with coverage report
pytest --cov=qbraid_qir --cov-report=term tests/
cd docs
pip install -r requirements.txt
make html