three_cnots_zx_graph#
- tqec.gallery.three_cnots_zx_graph(port_kind)[source]#
Create a ZX graph for three logical CNOT gates compressed in spacetime.
The three CNOT gates are applied in the following order:
q0: -@---@- | | q1: -X-@-|- | | q2: ---X-X-
- Parameters:
port_kind (Literal['X', 'Z', 'OPEN']) – The node kind to fill the six ports of the ZX 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 three logical CNOT gates compressed in spacetime.- Return type: