Skip to main content

qBraid-SDK extension providing support for QIR conversions

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qbraid-qir-0.0.1.dev20240111231857.tar.gz (250.9 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file qbraid-qir-0.0.1.dev20240111231857.tar.gz.

File metadata

File hashes

Hashes for qbraid-qir-0.0.1.dev20240111231857.tar.gz
Algorithm Hash digest
SHA256 49142d77d0ffcda381d9641ecc7792312e32a110b3f5f46f82d122e1cf0c57ae
MD5 dc2d0c2fe78ca1848a493a3bb07544a5
BLAKE2b-256 117946e2e3f5e616076d1c41e177cb3debef072cb03b67d8c067f75b8add51e5

See more details on using hashes here.

File details

Details for the file qbraid_qir-0.0.1.dev20240111231857-py3-none-any.whl.

File metadata

File hashes

Hashes for qbraid_qir-0.0.1.dev20240111231857-py3-none-any.whl
Algorithm Hash digest
SHA256 9513d6ed43dc91073be9fdecff550a83da17fea9a38dbbb9651a229f3a7f28ef
MD5 0c463b93973099fc83afea2da983a926
BLAKE2b-256 5c3b93198c2b5ed1a680cf97ea9725c50b804caaa4955beb2e9296bcf03f3701

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page