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.
- Copy your API Key from the Plan info card on the left side of your account page.
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:
Account credentials are saved in plain text, so only do so if you are using a
trusted device.
Load account from environment variables
Alternatively, the qBraid-SDK can discover credentials from environment variables:Basic Usage
Given aqbraid_id
, a QbraidDevice
object can be created as follows: