Sign in
← Atlas
Exact & formalGatesRotation 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.

rotation gatesingle qubitparametrized

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

RX(θ) generalizes the Pauli-X gate into a continuous one-parameter family, letting a circuit dial in any rotation angle instead of only the π flip.

Circuit & simulation
P(|0⟩) at θ=π/250%
P(|1⟩) at θ=π/250%
What this takes and returns
Takes1 qubitWhat joins here

Takes a 1-qubit register and states no assumption about what is on it. That is the whole condition: anything returning 1 qubits can feed it.

15 entries meet this end. Named below.

Returns1 qubitWhat joins here

Returns a 1-qubit register a next stage can take. This is the end that joins.

13 entries meet this end. Named below.

A unitary. The same register goes in and comes out, and this entry states no assumption about what is on it — which is what lets anything of the same width feed it. See all 29 →

How it works

Definition

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

RX(θ)=eiθ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 eiθX/2=cos(θ/2)Iisin(θ/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)0isin(θ/2)1,RX(θ)1=isin(θ/2)0+cos(θ/2)1R_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(θ)=HRZ(θ)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.
Implementation
Native
rx-rotation.qasm
OPENQASM 3.0;
include "stdgates.inc";
qubit q;
rx(pi/2) q;
Quantum vs classical

Classical baseline

Use a classical state-vector or matrix simulation at the same width, precision, and measurement objective.

Quantum claim

The quantum record demonstrates a state or operator behavior; it does not make classical simulation or communication costs disappear.

How to compare

Compare fidelity, samples, gate depth, noise, memory, and the cost of preparing and reading the state.

Declared gaps

Nobody has reviewed this record for gaps yet.

Literature & references
Quantum Computation and Quantum Information: 10th Anniversary Edition2010 · Michael A. Nielsen and Isaac L. Chuang

Standard reference for single- and multi-qubit gate matrices, Euler-angle decomposition, and universal gate sets.

doi.org/10.1017/cbo9780511976667
OpenQASM 3: A broader and deeper quantum assembly language2021 · Andrew W. Cross, Ali Javadi-Abhari, Thomas Alexander, Niel de Beaudrap, Lev S. Bishop, Steven Heidel, Colm A. Ryan, Prasahnt Sivarajah, John Smolin, Jay M. Gambetta, Blake R. Johnson

Defines the standard gate library (rx, ry, rz, p, u3-equivalent U, sx) used natively by the code snippets on this record.

arxiv.org/abs/2104.14722