Controlled-NOT gate Created 2026-09-24 Updated 2026-11-05
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 controlled-NOT gate maps to .
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]
Controlled unitary gate Created 2026-09-24 Updated 2026-11-05
A controlled unitary gate applies a unitary operator to a target system when a control qubit is , and leaves the target unchanged when the control is :
For a coherent control, linearity gives
The control has not been measured; the output may be entangled. The controlled-unitary entangling criterion states exactly when some product input becomes entangled.
The global phase of a controlled quantum gate matters: if , then acts as a phase gate on the control. A phase invisible on the isolated target is a relative phase between control branches. [ref]
Graph state Created 2026-09-28 Updated 2026-11-05
A graph state assigns one qubit to each vertex of an undirected graph. Begin with all qubits in and apply a Controlled-Z gate for every edge.
For an undirected graph , the graph state is
The Controlled-Z gates commute, so their ordering does not change the result. On a computational-basis state , each occupied edge contributes ; the amplitudes retain equal magnitude but acquire graph-dependent phases. An isolated vertex remains in the product state , while edges can create entanglement. [ref]
Hadamard basis Created 2026-09-24 Updated 2026-11-05
The Hadamard basis is an orthonormal basis of one qubit consisting of the two eigenstates of the Pauli X gate.
The qubit Hadamard basis consists of and .
The two states have the same computational-basis measurement probabilities, but opposite relative signs. A Hadamard gate maps them to and , so applying it before a computational-basis measurement distinguishes the states. Relative phase is therefore physically accessible even when one chosen measurement has identical outcome probabilities. [ref]
SWAP gate Created 2026-09-24 Updated 2026-11-05
The SWAP gate exchanges the states of two qubits, including any correlations they have with other systems. Its action on the computational basis fixes the operation on every quantum superposition by linearity.
The SWAP gate maps to .
In particular, . This transfers rather than copies the two inputs, so it does not violate the no-cloning theorem. The Three-CNOT decomposition of the SWAP gate implements the same operation using alternating control directions. [ref]
Toffoli gate Created 2026-09-24 Updated 2026-11-05
The Toffoli gate is a reversible three-qubit quantum gate with two controls and one target. It flips the target only when both controls are .
The Toffoli gate maps to .
For a target initially in , the output target records the classical AND while both input labels remain available. Applying the Toffoli gate again erases that computed target reversibly. The same rule acts linearly on quantum superpositions, so it can be used inside a coherent quantum circuit. [ref]