QMEstimatorOptions

class QMEstimatorOptions(default_precision: float = 0.015625, abelian_grouping: bool = True, input_type: InputType | Literal['INPUT_STREAM', 'IO1', 'IO2'] | None = None, run_options: dict[str, Any] | None = None)[source][source]

Bases: object

Options for QMEstimatorV2.

default_precision: float = 0.015625

The default precision to use if none are specified in run(). Default: 0.015625 (1 / sqrt(4096)).

abelian_grouping: bool = True

Whether the observables should be grouped into sets of qubit-wise commuting observables. Default: True.

input_type: InputType | Literal['INPUT_STREAM', 'IO1', 'IO2'] | None = None

The input mechanism to load the parameter values and observables to the OPX. Choices are: - INPUT_STREAM: Input stream mechanism. - IO1: IO1. - IO2: IO2. - None: Preload at compile time the parameter values to the OPX. OPNIC is not supported by the estimator yet and raises NotImplementedError. Default: None.

run_options: dict[str, Any] | None = None

Per-job overrides of backend run options (shots, max_circuits, timeout, simulate, …). Merged over QMBackend.options when run() is called; they do not mutate the backend. max_circuits here is the QUA program chunk size for that job. Default: None (use the backend defaults).

as_dict() → dict[source][source]

Return options as a plain dictionary suitable for serialization.