cnot#

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

Create a block graph for the logical CNOT gate.

Parameters:

observable_basis (Basis | None) – The observable basis that the block graph can support. If None, the four ports of the block graph will be left open. Otherwise, the ports will be filled with the cubes that have the initializations and measurements in the given observable basis.

Returns:

A BlockGraph instance representing the logical CNOT gate.

Return type:

BlockGraph