Flips a qubit: becomes , and becomes .
The X gate swaps and . It is the quantum version of a classical NOT gate. On the Bloch sphere, this is a 180° rotation around the X axis, which swaps the north and south poles. Unlike classical NOT, which flips a definite bit, the X gate acts on superpositions too. If your qubit is in the state , X swaps the amplitudes to give . All quantum information is preserved.
Pauli-X is one of three Pauli operators. The Pauli operators (X, Y, Z) are a set of three 2×2 matrices that form a basis for all single-qubit operations and correspond to spin measurements along the three spatial axes. X is unitary (it preserves probability), Hermitian (it equals its own conjugate transpose), and an involution (X² = I, meaning it is its own inverse). Its eigenvalues are +1 and −1. An eigenvalue is the factor by which an eigenstate is scaled when the operator acts on it. The corresponding eigenstates (states unchanged up to that scaling factor) are and |−⟩ = ( − . In the computational basis, X acts as a bit flip: X(. Combined with controlled operations, it becomes the building block for CNOT and Toffoli gates.
Every measurement outcome flips: 0 becomes 1, and 1 becomes 0.
Rotates the Bloch vector 180° around the X axis. The north pole and south pole swap. States on the X axis (, |−⟩) stay fixed because they are eigenstates of X.
It is tempting to think X is just classical NOT with a different name. That sounds right because the truth table matches. What actually happens is that X swaps amplitudes in superpositions, not just definite bits. When a qubit is in a superposition, X rearranges the amplitudes, and that rearrangement affects interference in ways that classical NOT cannot.
X is the simplest non-trivial quantum gate and the foundation of all controlled operations. Understanding how it acts on superpositions, not just basis states, is the first step toward understanding multi-qubit gates like CNOT.
What is X|+⟩?