QMSamplerOptions

class QMSamplerOptions(default_shots: int = 1024, input_type: InputType | None = None, run_options: dict[str, Any] | None = None, meas_level: Literal['classified', 'kerneled', 'avg_kerneled'] = 'classified')[source][source]

Bases: object

Options for QMSamplerV2

default_shots: int = 1024

The default shots to use if none are specified in run(). Default: 1024.

input_type: 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 (Warning: This should be used only for small number of parameters) 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)

meas_level: Literal['classified', 'kerneled', 'avg_kerneled'] = 'classified'

Measurement level. Only "classified" (0/1 counts) is supported end-to-end today. "kerneled" and "avg_kerneled" are not production-ready.