Rotates the qubit around the X axis of the Bloch sphere by a chosen angle .
RX rotates a qubit around the X axis of the Bloch sphere by any angle you choose. The discrete X gate always flips by exactly 180°. RX generalizes this to a continuous dial. At small angles, it gently tilts the qubit toward the equator. At , it becomes a full X flip. This continuous control is essential for variational quantum algorithms, where you optimize gate angles to find the best solution to a problem.
RXI − i X. It is a unitary operator (it preserves total probability) parameterized by a single angle . The eigenvalues are . At , RX −iX, which behaves identically to X in measurements (the −i factor is a global phase, a prefactor that multiplies the entire state and has no observable effect on a single qubit). At , the gate returns to −I rather than +I. This minus sign reflects the spinor nature of spin-1/2 systems: a full 360° rotation does not restore the original state. You need a 720° rotation for that.
Gradually mixes the and amplitudes. The measurement probabilities shift smoothly as increases.
Introduces complex phase factors (−i) into the amplitudes, visible in interference with other gates.
Rotates the Bloch vector by around the X axis. States on the X axis (, |−⟩) are fixed points. At , it becomes the X gate up to global phase.
It is tempting to think a 360° rotation returns a qubit to its original state. That sounds right from everyday experience with spinning objects. What actually happens is that spin-1/2 particles pick up a minus sign after a 360° rotation (RX(2 −I). A true return to the original state requires 720°.
Parameterized rotations like RX are the backbone of near-term quantum algorithms. VQE and QAOA circuits are built from layers of RX, RY, and RZ gates with angles that a classical optimizer tunes to solve a problem.
What happens when you apply RX(2π) — a full 360° rotation?