iqm.cpc.compiler.standard_stages.prepend_heralding

iqm.cpc.compiler.standard_stages.prepend_heralding#

iqm.cpc.compiler.standard_stages.prepend_heralding(timeboxes, builder, context, add_heralding=False)#

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.

  • context (dict[str, Any]) – Compiler context.

  • add_heralding (bool) – Whether to add the heralding measurement timebox to the schedules.

Returns:

The timeboxes with the prepended heralding measurement.

Return type:

list[TimeBox]