iqm.cpc.compiler.standard_stages.prepend_heralding#
- iqm.cpc.compiler.standard_stages.prepend_heralding(timeboxes, builder, context, add_heralding=False, measure_operation='measure')#
Add the heralding measurement TimeBox to all circuits (locus: active components that can be measured).
- Parameters:
timeboxes (list[TimeBox]) – Timeboxes representing circuits.
builder (ScheduleBuilder) – The ScheduleBuilder.
add_heralding (bool) – Whether to add the heralding measurement timebox to the schedules.
measure_operation (str) – The measure operation to use, defaults to “measure”. NOTE: using “measure_fidelity” is not recommended, since the heralding measurement should be projective to be effective, and “measure_fidelity” is typically not calibrated to be projective.
- Returns:
The timeboxes with the prepended heralding measurement.
- Return type: