API Reference:
qbraid.runtime.native
Installation & Setup
To interface with the qBraid QIR simulator or any of the 10+ quantum devices supported by qBraid’s managed access, install the relevantqbraid runtime extra(s) based on your device(s) of choice:
- Login or create an account at account.qbraid.com.
- Navigate to Account > API Keys in the left-sidebar, and then click “Create API Key”.
See also: Account - API Keys
Save account to disk
Once you have your API key, you can save it locally in a configuration file~/.qbraid/qbraidrc,
where ~ corresponds to your home ($HOME) directory:
Load account from environment variables
Alternatively, the qBraid-SDK can discover credentials from environment variables:Basic Usage
Given a device “QRN” (qBraid Resource Name), aQbraidDevice object can be created as follows:
Runtime Options
When submitting jobs through theQbraidProvider, you can pass provider-specific options using
the runtime_options keyword argument. These options are forwarded directly to the underlying
cloud provider’s submission API, giving you access to device-specific features without
needing to configure provider credentials yourself.
runtime_options dictionary is passed through as-is to the provider backend:
- Amazon Braket devices: options are unpacked as keyword arguments to the Braket
device.run()call - Azure Quantum devices: options are passed as
input_paramsto the Azuredevice.run()ordevice.submit()call - qBraid devices: options are merged into the job submission payload
qBraid Simulator Examples
Pass aseed to make a simulation reproducible. Two runs of the same circuit with the same
seed return identical measurement counts:
"seed": 42 returns those same counts. Change the
seed, or leave it out, and the simulator draws a fresh sample on every run.
This is useful for tutorials and course material where the output in the text should match
what the reader sees, for regression tests that assert on exact counts, and for sharing a
result someone else can reproduce.
Amazon Braket Examples
Enable experimental capabilities on supported devices:Azure Quantum Examples
Use the stabilizer simulator on Quantinuum emulators:IonQ Examples
Run with a hardware noise profile on the IonQ simulator:ideal, harmony, harmony-1, harmony-2, aria-1, aria-2, forte-1, forte-enterprise-1

