iqm.pulla.utils.convert_sweep_spot_with_heralding_mode_zero

iqm.pulla.utils.convert_sweep_spot_with_heralding_mode_zero#

iqm.pulla.utils.convert_sweep_spot_with_heralding_mode_zero(results, readout_mappings)#

Like convert_sweep_spot(), but for results that contain heralding measurements.

  • For each circuit we only keep the shots for which the heralding result is zero for all the qubits used in the circuit.

Parameters:
  • results (dict[str, ndarray]) – Mapping of acquisition labels to 1D arrays of readout results with the length num_shots * num_triggers_for_label_in_batch. The herald results are found under HERALDING_KEY.

  • readout_mappings (tuple[dict[str, tuple[str, ...]], ...]) – For each circuit in the batch, a mapping of measurement keys to corresponding tuples of acquisition labels.

Returns:

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

Return type:

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