move_rotation_zx_graph#

tqec.gallery.move_rotation_zx_graph(port_kind)[source]#

Create a ZX graph for moving and rotating the spatial boundaries of a logical qubit.

Parameters:

port_kind (Literal['Z', 'X', 'OPEN']) – The node kind to fill the two ports of the graph. It can be either “Z”, “X”, or “OPEN”. If “OPEN”, the ports are left open. Otherwise, the ports are filled with the given node kind.

Returns:

A ZXGraph instance representing the move-rotation operation.

Return type:

ZXGraph