iqm.cpc.utils.map_sweep_results_to_logical_qubits

iqm.cpc.utils.map_sweep_results_to_logical_qubits#

iqm.cpc.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[np.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 (ReadoutMappingBatch) – for each circuit in the batch, a mapping of measurement keys to corresponding tuples of result parameter names.

  • heralding_mode (HeraldingMode) – Whether we use heralded readout or not.

Returns:

Converted, filtered measurement results, with the heralding measurement data removed.

Return type:

CircuitMeasurementResultsBatch