logical_cnot_zx_graph#

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

Create a ZX graph for the logical CNOT gate.

Parameters:

port_kind (Literal['Z', 'X', 'OPEN']) – The node kind to fill the four ports of the logical CNOT gate. 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 logical CNOT gate.

Return type:

ZXGraph