CircuitLayer#
Module: iqm.cpc.compiler.layering_stages
- class iqm.cpc.compiler.layering_stages.CircuitLayer(layer_type, locus_components, instructions=<factory>, transformations=<factory>)#
Bases:
objectRepresents CircuitOperations in a Circuit that can be executed consequently (or in parallel).
Used to group together CircuitOperations that share a specific property.
Attributes
Type of the layer, e.g. 'flux' or 'non-flux', shared between its member CircuitOperations.
Union of the loci of the CircuitOperations in this layer.
´.CircuitOperation``.
Transformation names to be applied for this layer when resolving it.
Methods
Apply
self.transformationsto this layer and resolve it into a TimeBox.- Parameters:
- layer_type: str#
Type of the layer, e.g. ‘flux’ or ‘non-flux’, shared between its member CircuitOperations.
- instructions: list[CircuitOperation]#
´.CircuitOperation``. These should correspond to a transformation “gate” registered in
ScheduleBuilder.- Type:
Instruction (CircuitOperations) in this layer, ordered as in
- Type:
class
- resolve(builder)#
Apply
self.transformationsto this layer and resolve it into a TimeBox.- Parameters:
builder (ScheduleBuilder) – The schedule builder.
- Returns:
The layer’s contents resolved into a TimeBox.
- Return type:
.
Inheritance
