Primitive options (qiskit_ibm_runtime.options)¶
Options that can be passed to the Qiskit Runtime primitives.
V2 Primitives¶
SamplerV2 and EstimatorV2 each have their own options. You can use the
options attribute to set the options. For example:
from qiskit_ibm_runtime import QiskitRuntimeService, EstimatorV2
service = QiskitRuntimeService()
backend = service.least_busy(operational=True, simulator=False)
estimator = EstimatorV2(mode=backend)
estimator.options.resilience_level = 1
You can also use the update() method to do bulk update. For example:
from qiskit_ibm_runtime import QiskitRuntimeService, EstimatorV2
service = QiskitRuntimeService()
backend = service.least_busy(operational=True, simulator=False)
estimator = EstimatorV2(mode=backend)
estimator.options.update(resilience_level=1)
Refer to SamplerOptions and EstimatorOptions for V2 Sampler and
V2 Estimator options, respectively.
Note
If an option is not specified, the server default value is used. The default values are subject to change. Refer to this current module’s documentation for the latest defaults.
Classes¶
Base primitive options¶
Options for V2 Estimator. |
|
Options for V2 Sampler. |
|
Options for the executor. |
Suboptions¶
Options for |
|
Options for |
|
Options for dynamical decoupling (DD). |
|
Resilience options for V2 Estimator. |
|
Options for learning layer noise. |
|
Options for measurement noise learning. |
|
Probabalistic error cancellation mitigation options. |
|
Zero noise extrapolation mitigation options. |
|
Options for post selecting results. |
|
Twirling options. |
|
Execution options for V2 primitives. |
|
Extension of |
|
Options related to the execution environment. |
|
Simulator options. |