Skip to main content
IBM Quantum Platform
翻訳情報

このページの追加言語翻訳は近日公開予定です。

Primitive options

qiskit_ibm_runtime.options

Options that can be passed to the IBM Quantum Compute (formerly 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

コラム「 1 」
コラム「 2 」
EstimatorOptionsOptions for V2 Estimator.
SamplerOptionsOptions for V2 Sampler.

Suboptions

コラム「 1 」
コラム「 2 」
NoiseLearnerOptionsOptions for NoiseLearner.
DynamicalDecouplingOptionsOptions for dynamical decoupling (DD).
ResilienceOptionsV2Resilience options for V2 Estimator.
LayerNoiseLearningOptionsOptions for learning layer noise.
MeasureNoiseLearningOptionsOptions for measurement noise learning.
PecOptionsProbabalistic error cancellation mitigation options.
ZneOptionsZero noise extrapolation mitigation options.
TwirlingOptionsTwirling options.
ExecutionOptionsV2Execution options for V2 primitives.
SamplerExecutionOptionsV2Extends ExecutionOptionsV2 for the sampler primitive.
EnvironmentOptionsOptions related to the execution environment.
SimulatorOptionsSimulator options.
このページは役に立ちましたか?
バグや誤字の報告、またはコンテンツの要求はGitHubで行ってください。