iqm.cpc.compiler.layering_stages.layer_schedules#
- iqm.cpc.compiler.layering_stages.layer_schedules(schedules, builder, components, flux_layer_transformations=None, non_flux_layer_transformations=None)#
Extract flux and non-flux layers from the full schedule and apply the prescribed transformations to them.
Note
Assumes the Schedules are already layered, will not be enforcing layering.
- Parameters:
schedules (list[Schedule]) – The Schedules representing the circuits.
builder (ScheduleBuilder) – The schedule builder
components (ComponentGrouping) – The full set of active locus components for the circuit batch.
flux_layer_transformations (list[str] | None) – List of transformations applied to flux layers. These should correspond to a transformation “gate” registered in the schedule builder.
non_flux_layer_transformations (list[str] | None) – List of transformations applied to non-flux layers. These should correspond to a transformation “gate” registered in the schedule builder.
schedules – The Schedules with the prescribed transformations applied to their respective layers.
- Return type: