iqm.pulla.utils.map_sweep_results_to_logical_qubits

iqm.pulla.utils.map_sweep_results_to_logical_qubits#

iqm.pulla.utils.map_sweep_results_to_logical_qubits(sweep_results, readout_mappings, heralding_mode)#

Convert sweep results returned by Station Control to the circuit measurement results the client expects.

Parameters:
  • sweep_results (dict[str, list[ndarray]]) – mapping of acquisition labels to a list of soft sweep spots, each represented by a 1D array of readout results, with shots * num_triggers_for_label elements.

  • readout_mappings (tuple[dict[str, tuple[str, ...]], ...]) – for each circuit in the batch, a mapping of measurement keys to corresponding tuples of result parameter names.

  • heralding_mode (HeraldingMode) – Heralding mode, either ZEROS (when doing heralded readout) or NONE.

Returns:

converted, filtered measurement results, with the heralding measurement data removed

Return type:

list[dict[str, list[list[int]]]]