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)

with_updated_layer(plaquettes_to_update, ...)

Returns a new CompiledBlock with the specified layer updated.

Attributes

num_layers

template

layers