tqec.compile.block.BlockLayout

class BlockLayout(blocks_layout: dict[Position2D, CompiledBlock])[source]
__init__(blocks_layout: dict[Position2D, CompiledBlock])[source]

Create a layout of CompiledBlock instances in the 2D grid.

We require that all the blocks in the layout have the same scalable shape.

Methods

__init__(blocks_layout)

Create a layout of CompiledBlock instances in the 2D grid.

instantiate_layer(layer_index)

Instantiates the specified layer into a cirq.Circuit.

scale_to(k)

Scales all the blocks in the layout to the given factor.

Attributes

layers

num_layers

template