Skip to main content
IBM Quantum Platform

プリミティブオプション

qiskit_ibm_runtime.options

Qiskit Runtime プリミティブに渡せるオプション。


V2 プリミティブ

SamplerV2EstimatorV2 、それぞれ独自のオプションがある。 options 属性を使ってオプションを設定することができます。 例:

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

update() 、一括更新することもできる。 例:

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)

V2 サンプラーおよび V2 推定器のオプションについては、それぞれ および EstimatorOptionsqiskit_ibm_runtime.options.SamplerOptions 参照してください。

オプションが指定されていない場合は、サーバーのデフォルト値が使用される。 デフォルト値は変更される可能性がある。 最新のデフォルトについては、現在のモジュールのドキュメントを参照してください。


クラス

基本プリミティブオプション

EstimatorOptionsV2 Estimatorのオプション。
SamplerOptionsV2 サンプラーのオプション。

サブスクリプション・オプション

NoiseLearnerOptionsNoiseLearner. のオプション
DynamicalDecouplingOptionsダイナミック・デカップリング(DD)のオプション。
ResilienceOptionsV2V2 Estimatorのレジリエンス・オプション。
LayerNoiseLearningOptionsレイヤーノイズの学習オプション。
MeasureNoiseLearningOptions測定ノイズ学習のオプション。
PecOptions確率論的エラーキャンセル緩和オプション。
ZneOptionsゼロノイズ外挿の緩和オプション。
TwirlingOptionsトワリングのオプション。
ExecutionOptionsV2V2 プリミティブの実行オプション。
SamplerExecutionOptionsV2サンプラープリミティブに対して拡張 ExecutionOptionsV2 します。
EnvironmentOptions実行環境に関するオプション。
SimulatorOptionsシミュレーターのオプション。
このページは役に立ちましたか?
バグや誤字の報告、またはコンテンツの要求はGitHubで行ってください。