QMEstimatorOptions

class QMEstimatorOptions(default_precision: float = 0.015625, abelian_grouping: bool = True, input_type: Literal['INPUT_STREAM', 'OPNIC', 'IO1', 'IO2'] | InputType | 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: Literal['INPUT_STREAM', 'OPNIC', 'IO1', 'IO2'] | InputType | None = None

The input mechanism to load the parameter values to the OPX. Choices are: - INPUT_STREAM: Input stream mechanism. - IO1: IO1. - IO2: IO2. - OPNIC: Using OPNIC communication. - None: Preload at compile time the parameter values to the OPX. Default: None.

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

A dictionary of options to pass to the backend’s run() method. Default: None (no option passed to backend’s run method)

as_dict() dict[source][source]

Return options as a plain dictionary suitable for serialization.