QiskitRuntimeProvider
Runtime integration for streamlined access to IBM Quantum hardware.
API Reference: qbraid.runtime.ibm
Installation & Setup
To interface with IBM Quantum backends, install the qiskit
extra,
and configure your IBM credentials.
Basic Usage
The QiskitRuntimeProvider
allows you to easily submit jobs to IBM Quantum devices. There are several ways to initialize the provider:
- Direct authentication with IBM Cloud:
- Authentication with IBM Quantum:
- Using environment variables:
- Using credentials stored in
$HOME/.qiskit/qiskit-ibm.json
When using environment variables or stored credentials, you can initialize the provider without any arguments:
Once initialized, you can list available devices and access their information:
Our chosen device is the IBM Osaka Backend, which we will now submit a Qiskit job to.
So now we have job
which is of type QiskitJob
, which inherits from QuantumJob
. To see the results, we can do the following:
See how to visualize these results in the Visualization section.