Run jobs in a session
No net ibersetzt
Die Seid isch no net ibersetzt worda. Se gucket die englische Originalversion.
Package versions
The code on this page was developed using the following requirements. We recommend using these versions or newer.
qiskit[all]~=2.3.0
qiskit-ibm-runtime~=0.43.1
scipy~=1.16.3
Note
Open Plan users cannot submit session jobs. Workloads must be run in job mode or batch mode.
Use sessions when you need dedicated and exclusive access to the QPU.
Set up to use sessions
Before starting a session, you must set up Qiskit Runtime and initialize it as a service:
# Added by doQumentation — required packages for this notebook
!pip install -q numpy qiskit qiskit-ibm-runtime scipy
from qiskit_ibm_runtime import (
QiskitRuntimeService,
Session,
SamplerV2 as Sampler,
EstimatorV2 as Estimator,
)
service = QiskitRuntimeService()