Quantum Lab
Quantum Lab

An interactive quantum mechanics learning platform and cryostat wiring co-design tool. From plain-language intuition to formal mathematics.

contact@quantumcircuitsimulator.com

Product

  • Circuit Lab
  • Learn
  • Hardware Studio
  • Pricing

Legal

  • Privacy Policy
  • Terms of Service

© 2026 Quantum Lab. All rights reserved.

This site, including its original quantum simulations, cryostat reference systems, 3D models, and interface design, contains protected proprietary material.

Home/Quantum Physics/Lessons/RX Gate (X-Rotation)
Rx

RX Gate (X-Rotation)

RotationSingle-qubitX-rot

Rotates around the X axis by angle θ.

Intuition

RX is a continuous rotation around the X axis of the Bloch sphere. Unlike the discrete X gate (which is always a full 180° flip), RX lets you choose any angle. At small angles, it gently tilts the qubit toward the equator. At π radians, it becomes the full X gate. This continuous control is essential for variational quantum algorithms where you optimize gate parameters to find the best solution.

Matrix representation
(cos2θ​−isin2θ​​−isin2θ​cos2θ​​)
Action on states
Rx​(θ)∣ψ⟩=e−iθX/2∣ψ⟩
Bloch sphere
|0⟩
→
RX(π/2)|0⟩
Circuit
q0Rx
State comparison
Before RX Gate
|0⟩
|0\u27E9
100%
|1\u27E9
0%
Bloch: (0.00, 0.00, 1.00)
→
After RX Gate
RX(π/2)|0⟩
|0\u27E9
50%
|1\u27E9
50%
Bloch: (0.00, -1.00, 0.00)
Precise explanation

RX(θ) = exp(−iθX/2) = cos(θ/2)I − i·sin(θ/2)X. It is a unitary parameterized by a single angle θ. The eigenvalues are exp(±iθ/2). At θ = π, RX(π) = −iX, which is X up to global phase. At θ = 2π, it returns to −I (not I, reflecting the spinor nature of SU(2)). RX is one of three standard rotation gates used in arbitrary state preparation.

Observable effect

Gradually mixes |0⟩ and |1⟩ amplitudes.

Hidden effect

At θ = π this becomes the X gate.

Bloch sphere

Rotates by θ around the X axis. States on the X axis (|+⟩, |−⟩) are unchanged. At θ = π, it becomes the X gate (up to global phase).

Worked example

Partial rotation toward superposition

  1. 1Start with |0⟩ at the north pole.
  2. 2Apply RX(π/2): the state becomes (|0⟩ − i|1⟩)/√2.
  3. 3Measurement gives 50/50 outcomes, but the phase is −i, not +1.
  4. 4Apply RX(π/2) again: the state becomes −i|1⟩ = |1⟩ (up to global phase).
  5. 5Two half-rotations equal one full X flip, confirming RX(π) ~ X.
Common use cases
  • Variational quantum eigensolver (VQE) parameterized circuits
  • Quantum approximate optimization algorithm (QAOA)
  • Arbitrary state preparation via ZYZ or XYX decomposition
  • Continuous analog of the X gate for fine-grained control
Relation to other gates
  • RX(π) = −iX (X gate up to global phase)
  • RX(2π) = −I (full rotation picks up a sign — spinor behavior)
  • Any single-qubit gate = RZ(α)RY(β)RZ(γ) up to global phase
  • RX, RY, RZ together can reach any point on the Bloch sphere
Common misconception

A 360° rotation does not return the qubit to its original state — it picks up a minus sign. You need a 720° rotation for a true identity. This is the spinor property of spin-1/2 systems.

Why this gate matters

Parameterized rotations are the backbone of near-term quantum algorithms. VQE and QAOA circuits are built from layers of RX, RY, and RZ gates with optimizable angles.

Test your understanding

What happens when you apply RX(2π) — a full 360° rotation?

Quick reference →↗ Nielsen and Chuang, Quantum Computation and Quantum Information
←
Previous
Phase
Next
RY Gate
→
← Back to all lessons