tqec.compile.block.CompiledBlock#
- class CompiledBlock(template: RectangularTemplate, layers: list[Plaquettes])[source]#
Represents a specific implementation of a cube in a BlockGraph.
- template#
the template that defines the cube implementation.
- layers#
a list of Plaquettes that represent different functional layers of the cube. When aligning two CompiledBlock instances, the layers are aligned in order. Typically, there are three layers in most cube implementations: Initialization, Repetitions, and Measurement.
- Type:
- __init__(template: RectangularTemplate, layers: list[Plaquettes]) None #
Methods
__init__
(template, layers)update_layers
(substitution)Update the plaquettes in a specific layer of the block.
Attributes