x-gate
X gate
Table of Contents
X gate
X gate (or Pauli-X gate, or quantum NOT gate) is a single-qubit gate that flips to and to , making it the quantum analog of a classical NOT gate. It is one of the three Pauli gates.
The gate flips the computational basis states and leaves the Hadamard basis states (, ) unchanged, since those are its eigenstates:
On the Bloch sphere, corresponds to a rotation of radians about the -axis. Applying the gate twice returns the qubit to its original state — this is the involution property, , shared by all Pauli gates. The gate appears in virtually every quantum algorithm as the quantum equivalent of setting or flipping a bit.
List of code implementations
x-gate.md · Last modified:
