Skip to content

Latest commit

 

History

History
185 lines (130 loc) · 4.16 KB

index.rst

File metadata and controls

185 lines (130 loc) · 4.16 KB

Documentation

* { box-sizing: border-box; } body { font-family: Arial, Helvetica, sans-serif; } /* Float four columns side by side */ .column { display: inline-block; vertical-align: middle; float: none; width: 25%; padding: 0 10px; } /* Remove extra left and right margins, due to padding */ .row { text-align: center; margin:0 auto; } /* Clear floats after the columns */ .row:after { content: ""; display: table; clear: both; } /* Responsive columns */ @media screen and (max-width: 600px) { .column { width: 100%; margin-bottom: 20px; } }

qbraid logo qBraid | QIR

qBraid-SDK extension providing support for QIR conversions.

Release

Python package for generating QIR programs from Cirq, and other high-level quantum programming languages. This project aims to make QIR (Quantum Intermediate Representation) 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.

"Interoperability opens doors to cross-fields problem-solving." - QIR Alliance: Why do we need it?.

Installation

pip install qbraid-qir

Test container

Docker image providing an environment for testing and executing QIR programs with the qir-runner package.

Clone the qbraid-qir repository:

git clone https://github.com/qBraid/qbraid-qir.git
cd qbraid-qir

Build the QIR runner image:

docker build -t qbraid-test/qir-runner:latest qir_runner

Start the container running a Jupyter Server with the JupyterLab frontend and expose the container's internal port 8888 to port 8888 of the host machine:

docker run -p 8888:8888 qbraid-test/qir-runner:latest

Visiting http://<hostname>:8888/?token=<token> in a browser will launch JupyterLab, where:

  • The hostname is the name of the computer running Docker (e.g. localhost)
  • The token is the secret token printed in the console.

Alternatively, you can open a shell inside the running container directly:

docker exec -it <container_name> /bin/bash

Acknowledgements

This project was conceived in cooperation with the Quantum Open Source Foundation (QOSF).

qir qbraid cirq qosf

userguide/cirq_qir userguide/qasm3_qir userguide/qasm3_supported

api/qbraid_qir api/qbraid_qir.cirq api/qbraid_qir.qasm3

Indices and Tables

  • genindex
  • modindex