Skip to main content
IBM Quantum Platform
このページは古いバージョンのQiskit Runtime clientです。 最新バージョンへ

EstimatorOptions

class EstimatorOptions(_VERSION=2, max_execution_time=Unset, environment=<factory>, simulator=<factory>, default_precision=Unset, default_shots=Unset, resilience_level=Unset, seed_estimator=Unset, dynamical_decoupling=<factory>, resilience=<factory>, execution=<factory>, twirling=<factory>, experimental=Unset)

GitHub

Bases: OptionsV2

Options for V2 Estimator.


Attributes

Parameters

default_precision

タイプ: UnsetType | float

デフォルト値: Unset

The default precision to use for any PUB or run() call that does not specify one. Each Estimator PUB can specify its own precision. If the run() method is given a precision, then that value is used for all PUBs in the run() call that do not specify their own.

Default: 0.015625 (1 / sqrt(4096)).

default_shots

タイプ: UnsetType | int | None

デフォルト値: Unset

The total number of shots to use per circuit per configuration.

Note

If set, this value overrides default_precision.

A configuration is a combination of a specific parameter value binding set and a physical measurement basis. A physical measurement basis groups together some collection of qubit-wise commuting observables for some specific circuit/parameter value set to create a single measurement with basis rotations that is inserted into hardware executions.

If twirling is enabled, the value of this option will be divided over circuit randomizations, with a smaller number of shots per randomization. See the twirling options.

Default: None.

dynamical_decoupling

タイプ: DynamicalDecouplingOptions | Dict

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

Suboptions for dynamical decoupling. See DynamicalDecouplingOptions for all available options.

environment

タイプ: EnvironmentOptions | Dict

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

execution

タイプ: ExecutionOptionsV2 | Dict

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

Execution time options. See ExecutionOptionsV2 for all available options.

experimental

タイプ: UnsetType | dict

デフォルト値: Unset

Experimental options. These options are subject to change without notification, and stability is not guaranteed.

max_execution_time

タイプ: UnsetType | int

デフォルト値: Unset

resilience

タイプ: ResilienceOptionsV2 | Dict

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

Advanced resilience options to fine-tune the resilience strategy. See ResilienceOptionsV2 for all available options.

resilience_level

タイプ: UnsetType | int

デフォルト値: Unset

How much resilience to build against errors. Higher levels generate more accurate results, at the expense of longer processing times.

  • 0: No mitigation.
  • 1: Minimal mitigation costs. Mitigate error associated with readout errors.
  • 2: Medium mitigation costs. Typically reduces bias in estimators but is not guaranteed to be zero bias.

Refer to the Configure error mitigation for Qiskit Runtime guide for more information about the error mitigation methods used at each level.

Default: 1.

seed_estimator

タイプ: UnsetType | int

デフォルト値: Unset

Seed used to control sampling.

Default: None.

simulator

タイプ: SimulatorOptions | Dict

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

twirling

タイプ: TwirlingOptions | Dict

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

Pauli twirling options. See TwirlingOptions for all available options.


Methods

update

update(**kwargs)

GitHub

Update the options.

Parameters

kwargs (Any)

Return type

None

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