The controlled-NOT gate is a two-qubit unitary operator that flips a target qubit when its control is in . In the ordered labels below, denotes the control, the target, and is addition modulo two.
The basis rule extends linearly to quantum superpositions. For example, it sends to , a Bell state. The control is not first measured: its quantum coherence can become entanglement between the two qubits. Applying the controlled-NOT gate twice returns the original state. [ref]
New to topics? Read the docs here!