cirq.CNOT

The controlled NOT gate.

Used in the notebooks

Used in the tutorials

This is the exponent=1 instance of cirq.CXPowGate.

Alternative name: cirq.CNOT.

The unitary matrix of this gate is (empty elements are \(0\)):

\[ \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 \\ 0 & 0 & 1 & 0 \end{bmatrix} \]