← Atlas

Gates · Rotation gate

RX rotation gate

A parametrized single-qubit rotation about the Bloch-sphere X axis, one of the two generators (with RZ) used to synthesize arbitrary single-qubit unitaries.

Exact & formalUpdated

View frozen graph

A small worked example, computed in your browser. It is not a result from this record's papers.

RX(π/3) on |0⟩

One qubit starting at |0⟩, rotated by π/3 — a third of a half-turn, so the qubit ends up part way between |0⟩ and |1⟩ rather than at either.

q0Step 1 of 1 · RX(π/3)RX(π/3)

Step 1 of 1 · RX(π/3)

Probability of each outcome after this step

  • 075%
  • 125%
Amplitude and phase after this step
OutcomeProbabilityRelative phase
075.0%0
125.0%3π/2

Phases are measured against the largest amplitude. A global phase is not observable, so only the differences carry meaning.

  1. Rotates the qubit by π/3, leaving it 75% likely to read 0 and 25% to read 1 — cos²(π/6) and sin²(π/6). It also leaves a quarter turn of phase between the two halves — the panel prints it as 3π/2, the same angle reached from the other side — and that phase is the whole difference between RX and RY.

    Probability spreads from 1 outcome to 2.

Readout Measuring gives 0 about three times in four. RX and RY at the same angle give exactly these probabilities, so a bar chart cannot tell them apart — the phase panel can.

Open in Studio
  • Steps1
  • Wires1
  • Qubits1
  • Depth1 gate
  • Parameterθ (radians)
  • Papers2

Definition

The RXR_X gate rotates a single qubit about the XX axis of the Bloch sphere by an angle θ\theta:

RX(θ)=e−iθX/2=(cos⁡(θ/2)−isin⁡(θ/2)−isin⁡(θ/2)cos⁡(θ/2))R_X(\theta) = e^{-i\theta X/2} = \begin{pmatrix} \cos(\theta/2) & -i\sin(\theta/2) \\ -i\sin(\theta/2) & \cos(\theta/2) \end{pmatrix}

This follows from the operator-exponential identity e−iθX/2=cos⁡(θ/2) I−isin⁡(θ/2) Xe^{-i\theta X/2} = \cos(\theta/2)\,I - i\sin(\theta/2)\,X, which holds because X2=IX^2 = I, so the Taylor series splits into even and odd powers of XX that resum to cosine and sine respectively.

Action on basis states

RX(θ)∣0⟩=cos⁡(θ/2)∣0⟩−isin⁡(θ/2)∣1⟩,RX(θ)∣1⟩=−isin⁡(θ/2)∣0⟩+cos⁡(θ/2)∣1⟩R_X(\theta)|0\rangle = \cos(\theta/2)|0\rangle - i\sin(\theta/2)|1\rangle, \qquad R_X(\theta)|1\rangle = -i\sin(\theta/2)|0\rangle + \cos(\theta/2)|1\rangle

At θ=π/2\theta = \pi/2 this produces an equal superposition with a relative phase of −i-i rather than the ++ that HH produces — the two gates land on different points of the Bloch-sphere equator.

Key identities

  • RX(π)=−iXR_X(\pi) = -iX: a full π\pi rotation reproduces the Pauli-X flip up to the global phase −i-i, unobservable in isolation but relevant inside controlled operations.
  • RX(θ1)RX(θ2)=RX(θ1+θ2)R_X(\theta_1)R_X(\theta_2) = R_X(\theta_1 + \theta_2): rotations about the same axis compose additively, so RXR_X forms a one-parameter subgroup of SU(2)SU(2).
  • RX(θ)=H RZ(θ) HR_X(\theta) = H\,R_Z(\theta)\,H: since HXH=ZHXH = Z, conjugating RZR_Z by Hadamard swaps the rotation axis from ZZ to XX — the standard way a ZZ-rotation-native compiler synthesizes RXR_X.
  • Together with RZR_Z, RXR_X generates arbitrary single-qubit unitaries via Euler decomposition, e.g. RZ(α)RX(β)RZ(γ)R_Z(\alpha)R_X(\beta)R_Z(\gamma) up to a global phase.

References

Exact & formal
  • Unitary / matrix equivalence
  • Direct mathematics
  • Textbook / standard citation
Method
Expand exp(-iθX/2) as a Pauli-basis Taylor series and compare the closed form against the parametrized RX matrix; separately check RX(π) against X up to global phase.
Result
Pass · RX(θ) = cos(θ/2)·I - i·sin(θ/2)·X for all tested θ, and RX(π) = -iX.
OpenQASM 3 standard gate set ↗
Kind
curated reference
Reviewed by
Leona Quantum curation pass
License
CC BY 4.0-compatible reference metadata
rotation gatesingle qubitparametrized

Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.