Quantum Computing
Intermediate

CNOT Gate

Two-qubit gate that flips the target qubit only when the control qubit is |1⟩.

Formula

CNOT=(1000010000010010)CNOT = \begin{pmatrix} 1&0&0&0 \\ 0&1&0&0 \\ 0&0&0&1 \\ 0&0&1&0 \end{pmatrix}

Variables

CNOTControlled-NOT matrix

Example

CNOT|10⟩ = |11⟩; CNOT|00⟩ = |00⟩

Did You Know?

The Hadamard + CNOT combo is the standard recipe for creating entangled Bell states.

Share this formula