qBraid Integration¶
Run your qBraid circuits on real quantum hardware through Open Quantum. Link your accounts once, then target any Open Quantum backend from the qBraid runtime you already use; execute on QPUs from IonQ, Rigetti, IQM, and AQT without changing circuit code.
The integration is available inside qBraid Lab notebooks and from any local environment using the qBraid SDK.
Overview¶
Once your qBraid and Open Quantum accounts are linked, Open Quantum backends appear as qBraid devices and can be selected with the standard qBraid runtime API:
from qbraid.runtime import QbraidProvider
provider = QbraidProvider(api_key="YOUR_QBRAID_API_KEY")
device = provider.get_device("openquantum:iqm:qpu:garnet")
Open Quantum handles transpilation, routing, and result formatting, and bills the job to your Open Quantum credits. You do not need qBraid credits to run on Open Quantum backends.
qBraid SDK¶
The qBraid SDK is a platform-agnostic quantum runtime framework that runs anywhere Python runs, including local editors such as VS Code. It supports over 10 major languages with built-in cross-framework transpilation and handles the full lifecycle of a quantum job through one interface. Full documentation and the API reference are available at docs.qbraid.com.
Using it with Open Quantum backends works the same way as any other qBraid-supported device: write your circuit as you normally would, then simply target an Open Quantum device string through the qBraid runtime instead of another provider.
See Installation & Authentication to get set up.
qBraid Lab¶
qBraid Lab is a web-based IDE for quantum computing. Inside Lab, the qBraid SDK is already installed and your qBraid API key is detected automatically, so you can simply run circuits without any local setup.
How the Integration Works¶
- Link accounts. Connect your qBraid and Open Quantum accounts once via the qBraid website. See Installation & Authentication for a step-by-step guide.
- Select an Open Quantum device. Call
provider.get_device()with an Open Quantum device id (for example,openquantum:iqm:qpu:garnet). - Run. Submit your circuit with
device.run(). The job executes on Open Quantum hardware and the cost is drawn from your Open Quantum credits. - Retrieve results. Call
job.result()and read measurement counts withresult.data.get_counts().
Next Steps¶
- Installation & Authentication -- configure accounts and credentials.
- Backends & Targets -- target Open Quantum QPUs.
- Examples -- run complete circuits.