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.

Type:

tqec.templates.base.RectangularTemplate

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:

list[tqec.plaquette.plaquette.Plaquettes]

__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

num_layers

template

layers