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
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
