iqm.pulla.utils.convert_sweep_spot_to_arrays_with_heralding_mode_zero#
- iqm.pulla.utils.convert_sweep_spot_to_arrays_with_heralding_mode_zero(results, readout_mappings)#
Like
convert_sweep_spot_to_arrays(), 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 underHERALDING_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.
- Yields:
- Converted measurement results for each circuit in the batch, filtered based on the result of
the heralding measurement, , with the heralding measurement data removed.
- Return type: