logical_cnot_block_graph#

tqec.gallery.logical_cnot_block_graph(support_observable_basis)[source]#

Create a block graph for the logical CNOT gate.

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 four ports of the block graph are filled with X basis cubes. If “X”, the four ports are filled with Z basis cubes. If “BOTH”, the four ports are left open.

Returns:

A BlockGraph instance representing the logical CNOT gate.

Return type:

BlockGraph