move_rotation_block_graph#
- tqec.gallery.move_rotation_block_graph(support_observable_basis)[source]#
Create a block graph for moving and rotating the spatial boundaries of a logical qubit.
- Parameters:
support_observable_basis (Literal['Z', 'X', 'BOTH']) – The observable basis that the block graph can support. It can be either “Z”, “X”, or “BOTH”. Note that a cube at the port can only support the observable basis opposite to the cube. If “Z”, the two ports of the block graph are filled with X basis cubes. If “X”, the two ports are filled with Z basis cubes. If “BOTH”, the two ports are left open.
- Returns:
A
BlockGraph
instance representing the move-rotation operation.- Return type: