iqm.cpc.compiler.layering_stages.set_layer_transformations

iqm.cpc.compiler.layering_stages.set_layer_transformations#

iqm.cpc.compiler.layering_stages.set_layer_transformations(circuits, flux_layer_transformations=None, non_flux_layer_transformations=None)#

Set layer transformations for the layered circuits.

Note

Modifies circuits in-place.

Parameters:
  • circuits (list[list[CircuitLayer]]) – The layered circuits.

  • 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.

Returns:

The layered circuits with the applied transformations.

Return type:

list[list[CircuitLayer]]