CNOT is its own unitary inverse: applying it twice returns to the input. It is also a controlled-”” gate, with the first qubit as control and the second as target.
Start from and apply the Hadamard gate to the first qubit:
Apply CNOT. The basis state has control , so its target flips to :
The result is the Bell state , an entangled state across the two qubits. CNOT is the canonical two-qubit entangling gate: together with single-qubit gates, it is universal for quantum computation.