Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Single-qubit rotations

Continuous unitary rotations generated by Pauli observables.

Edition released Coverage: Overview · Technical
On this page

Definition and significance

A Pauli rotation R_P(theta)=exp(-i theta P/2), for P equal to X, Y or Z, describes a continuous family of single-qubit gates. The parameter theta is a Bloch-sphere angle in radians. The half-angle in the exponent is essential. Continuous rotations provide the parameters in variational circuits and the targets that discrete fault-tolerant gate sets approximate.

Mechanism and mathematical treatment

Because P^2=I, the exponential separates into even and odd powers: R_P(theta)=cos(theta/2)I-i sin(theta/2)P. For Y this gives the real matrix [[cos(theta/2),-sin(theta/2)],[sin(theta/2),cos(theta/2)]]. For Z it gives diag(exp(-i theta/2),exp(i theta/2)). The phase gate diag(1,exp(i theta)) equals exp(i theta/2)R_Z(theta), so the two differ by a global phase when applied without control.

Rotations about the same axis add their angles, but rotations about different axes generally do not commute. R_X(pi)=-iX, while R_X(2pi)=-I. A full Bloch-sphere turn therefore changes the spinor's sign. This sign is globally unobservable for one isolated operation but cannot be dropped blindly inside a controlled construction.

Fully worked reference example

Apply R_Y(pi/3) to |0>. The output is (sqrt(3)/2)|0>+(1/2)|1>, giving P(0)=3/4 and P(1)=1/4. Apply R_Z(pi/2). The state is exp(-i pi/4)(sqrt(3)/2)|0>+exp(i pi/4)(1/2)|1>. Removing the common phase leaves (sqrt(3)/2)|0>+(i/2)|1>. Its computational probabilities are unchanged, but its X expectation falls from sqrt(3)/2 to zero and its Y expectation becomes sqrt(3)/2.

Now compare R_X(pi)R_Z(pi) with R_Z(pi)R_X(pi). The products differ by -1 because X and Z anticommute. Uncontrolled applications therefore yield the same physical pure state, although their controlled versions can differ measurably.

Limitations and common misconceptions

An angle parameter in software may use radians, half turns or a normalized exponent. Never copy a number between these conventions without conversion. Pulse area, drive phase and effective rotation angle need a calibrated physical model; a symbolic rotation is not proof that hardware implements it exactly.

Scientific relationships

Pauli matrices generate axis rotations through exponentiation.

Composition without assuming commuting axes

Take an initial |0> and apply R_X(alpha), then R_Y(beta), so the total unitary is R_Y(beta)R_X(alpha). Write c_a=cos(alpha/2), s_a=sin(alpha/2), c_b=cos(beta/2), and s_b=sin(beta/2). Matrix multiplication gives a final |0> amplitude c_b c_a+i s_b s_a and a final |1> amplitude s_b c_a-i c_b s_a. Both generally have nonzero real and imaginary parts. Their squared magnitudes sum to one because the cross terms within each amplitude are imaginary and the remaining terms factor into (c_a^2+s_a^2)(c_b^2+s_b^2).

Choose alpha=pi/2 and beta=pi/3. The state is (sqrt(3)+i)|0>/(2 sqrt(2))+(1-i sqrt(3))|1>/(2 sqrt(2)). Its computational outcomes are equally likely. The Bloch coordinates are x=0, y=-1, z=0: after R_X(pi/2), the initial north-pole vector is already on the negative y axis, so a y rotation leaves it there. The apparent change in amplitudes is therefore a common phase. This is a useful case where a nontrivial second matrix does not move the physical state.

Reverse the gate order. R_X(pi/2)R_Y(pi/3)|0> has Bloch coordinates (sqrt(3)/2,-1/2,0). It also gives equal computational probabilities, but its X and Y expectations differ. A Z-basis histogram alone therefore cannot diagnose the order error. Measuring after H reveals P(0)=(1+sqrt(3)/2)/2 for the reversed order and 1/2 for the original order.

Effective axis and angle of a product

The Pauli multiplication identity (a dot sigma)(b dot sigma)=(a dot b)I+i(a cross b) dot sigma yields a compact composition rule. Write U=cI-i v dot sigma with c real and c^2+|v|^2=1. For U=R_Y(beta)R_X(alpha), the coefficients are c=c_b c_a and v=(c_b s_a,s_b c_a,-s_b s_a). The minus sign in the z component comes from YX=-iZ. Omitting this sign reverses part of the effective rotation.

At alpha=beta=pi/2, c=1/2 and v=(1/2,1/2,-1/2). Thus the effective angle can be chosen as theta=2 arccos(1/2)=2pi/3, with axis n=(1,1,-1)/sqrt(3). Acting on the initial north-pole Bloch vector gives the same vector as the two sequential right-handed rotations. The spinor unitary is determined by c and v together; choosing theta plus 2pi changes the overall sign unless the representation compensates.

When |v|=0, the axis is undefined because the unitary is either I or -I. An implementation should handle this boundary explicitly rather than dividing by zero. Near that boundary, the axis can be numerically unstable even when the unitary itself is stable. Reporting a rapidly changing fitted axis without its very small angle would exaggerate the physical discrepancy.

Small-angle ordering error with a quantified observable

Let both angles equal a small epsilon. Expanding each rotation gives R_Y(epsilon)R_X(epsilon)=I-i epsilon(X+Y)/2-epsilon^2 I/4+i epsilon^2 Z/4+O(epsilon^3). Reversing the order flips the sign of the Z term. The difference of the two unitaries is i epsilon^2 Z/2+O(epsilon^3). A circuit-level discrepancy can therefore enter at second order even when each rotation is individually specified to first order.

For the particular input |0>, both orders give the same Z expectation cos^2(epsilon), while their X and Y coordinates exchange which component carries an extra cos(epsilon). This illustrates a second limitation of checking one observable: its symmetry may suppress the leading visible error. A more informative diagnostic compares the full unitary on several independent input states or computes an operator norm for a small reference instance.

Repeated same-axis rotations can be merged exactly: k applications of R_X(epsilon) equal R_X(k epsilon), with no small-angle approximation. Repeated alternating-axis rotations cannot be merged by simply adding axis labels. The effective-axis calculation provides the correct two-step unitary, and its eigenphases can then be multiplied for an exactly repeated block. A classical two-by-two matrix multiplication is the appropriate reference for such a small sequence. Hardware pulse composition may add constraints, but those are separate from the exact algebra presented here.

Sources

  • A. Barenco et al. · · Research paper · Publication status unspecified · arXiv · DOI 10.1103/PhysRevA.52.3457
    Verification scope

    Selected source text checked ·

    Source anchors gate-decomposition conventions. New worked instances are independent mathematical constructions, not reported experiments.