exa.core.readout_helpers.get_measure_gate_name#
- get_measure_gate_name(options, gate_option_name='measure_gate_name', measure_added_by_mqe='terminal')#
Get the measure gate name from options or options dict.
If the experiment calibrates/benchmarks the default terminal/heralding/reset-at-end measurement, the gate name is read from
options["used_measure_operations"][measure_added_by_mqe]and if the measure operation is explicitly written into the circuit, it is read fromoptions[gate_option_name]. Backwards compatibility is achieved by defaulting to"measure".- Parameters:
options (dict[str, Any] | None | ExperimentOptions) – The options dict or object.
gate_option_name (str) – The gate option name, default
"measure_gate_name"(controls the measure gate used in CUSTOM readout programming mode).measure_added_by_mqe (str) – The default measure operation added by MQE, default
"terminal".
- Returns:
The measure gate (quantum operation) name.
- Return type: