Calibrator
class Calibrator(mode=None, options=None)
Bases: object
Class for calibrating a backend.
A calibrator can be initialized only inside a session. The run() method can be used to submit a calibration request for a backend.
from qiskit_ibm_runtime import QiskitRuntimeService, Session, Calibrator
service = QiskitRuntimeService()
backend = service.backend("ibm_boston")
with Session(backend=backend) as session:
calibrator = Calibrator(session)
calibrator.run()This feature is experimental and subject to change without notice.
Parameters
-
mode (BackendV2 | Session |Batch | None) –
The execution mode used to make the primitive query. It can be:
- A
Backendif you are using job mode. - A
Sessionif you are using session execution mode. - A
Batchif you are using batch execution mode.
Refer to the IBM Quantum Compute documentation for more information about the
Execution modes. - A
-
options (CalibratorOptions) – Calibrator options, see
CalibratorOptionsfor detailed description.
Attributes
mode
Return the execution mode used by this primitive.
Returns
Mode used by this primitive, or None if an execution mode is not used.
options
Type: CalibratorOptions
The options of this calibrator.