three_cnots#

tqec.gallery.three_cnots(observable_basis=None)[source]#

Create a block 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:

observable_basis (Basis | None) – The observable basis that the block graph can support. If None, the block graph will have open ports. Otherwise, the ports will be filled with the given observable basis.

Returns:

A BlockGraph instance representing the three logical CNOT gates compressed in spacetime.

Return type:

BlockGraph