Skip to main content
IBM Quantum Platform

SamplerOptions

class SamplerOptions(_VERSION=2, max_execution_time=Unset, environment=<factory>, simulator=<factory>, default_shots=Unset, dynamical_decoupling=<factory>, execution=<factory>, twirling=<factory>, experimental=Unset)

GitHub

ベース: OptionsV2

V2 サンプラーのオプション。


属性

パラメーター

default_shots

タイプ: UnsetType | int

デフォルト値: Unset

PUBまたはrunメソッドで何も指定されていない場合に使用するデフォルトのショット数。

デフォルト:4096。

dynamical_decoupling

タイプ: DynamicalDecouplingOptions | Dict

デフォルト値: FieldInfo(annotation=NoneType, required=False, default_factory=DynamicalDecouplingOptions)

ダイナミック・デカップリングのサブオプション。 参照 DynamicalDecouplingOptions をご覧ください。

environment

タイプ: EnvironmentOptions | Dict

デフォルト値: FieldInfo(annotation=NoneType, required=False, default_factory=EnvironmentOptions)

execution

タイプ: SamplerExecutionOptionsV2 | Dict

デフォルト値: FieldInfo(annotation=NoneType, required=False, default_factory=SamplerExecutionOptionsV2)

実行時間のオプション。

利用可能なすべてのオプションについては、こちらをご覧ください SamplerExecutionOptionsV2

experimental

タイプ: UnsetType | dict

デフォルト値: Unset

実験オプション。

max_execution_time

タイプ: UnsetType | int

デフォルト値: Unset

simulator

タイプ: SimulatorOptions | Dict

デフォルト値: FieldInfo(annotation=NoneType, required=False, default_factory=SimulatorOptions)

twirling

タイプ: TwirlingOptions | Dict

デフォルト値: FieldInfo(annotation=NoneType, required=False, default_factory=TwirlingOptions)

パウリの回転オプション。

利用可能なすべてのオプションについては、こちらをご覧ください TwirlingOptions


方法

update

update(**kwargs)

GitHub

オプションを更新する。

パラメーター

kwargs (Any)

戻りの型

なし

このページは役に立ちましたか?
バグや誤字の報告、またはコンテンツの要求はGitHubで行ってください。