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
File details
Details for the file qbraid-qir-0.0.1.dev20240111204536.tar.gz
.
File metadata
- Download URL: qbraid-qir-0.0.1.dev20240111204536.tar.gz
- Upload date:
- Size: 250.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61123f7e78916f64bfee94261549b064a7cda5c72f12795d7b68cffa4894ae25 |
|
MD5 | ae5513269d5a053213567e7e2e97b0d2 |
|
BLAKE2b-256 | 107025d5131c758cf42ebd237a655bcc0932685dbed47ceefcf0e1fde2429f37 |
File details
Details for the file qbraid_qir-0.0.1.dev20240111204536-py3-none-any.whl
.
File metadata
- Download URL: qbraid_qir-0.0.1.dev20240111204536-py3-none-any.whl
- Upload date:
- Size: 36.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d0cb98f099dc62f2a0d01947bf1f28907856047438b1aeadfa7f1ac3984a004 |
|
MD5 | 4cfa8cfb5ef937db0061807060e2420f |
|
BLAKE2b-256 | 498b5c83596f4998b4a9ee6fc33878660216e57ae91620306303ead0fd1ba820 |