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.
get_shifted_circuits
(k)Instantiate and shift the circuits for all the layers in self.
Attributes
layers
num_layers
template