DeepPractise
DeepPractise

Rotation Gates (Rx, Ry, Rz)

Track: Quantum Gates & Circuits · Difficulty: Beginner · Est: 15 min

Rotation Gates (Rx, Ry, Rz)

Overview

So far, our gates have been “named rotations”:

  • X, Y, Z are 180° rotations about the xx, yy, and zz axes.
  • S and T are smaller rotations about the zz axis.

But a single qubit can rotate by any angle. To describe arbitrary single-qubit evolution, we need gates with a continuous parameter.

That’s what the rotation gates provide:

  • Rx(θ)R_x(\theta): rotate around xx by angle θ\theta.
  • Ry(θ)R_y(\theta): rotate around yy by angle θ\theta.
  • Rz(θ)R_z(\theta): rotate around zz by angle θ\theta.

These are more general than Pauli gates because you can choose the angle.

Intuition

Bloch-sphere picture:

  • The state of a single qubit (ignoring global phase) is a point on the Bloch sphere.
  • Unitary evolution moves that point by a rotation.

Rotation gates simply name those rotations with a parameter:

  • θ\theta is the amount you rotate.

So instead of being limited to “flip 180°” or “turn 90°,” you can rotate by 7°, 0.3 radians, or any angle you need.

This is the bridge between:

  • continuous physics (smooth rotations), and
  • discrete gate toolboxes (a small set of standard gates).

Formal Description

To define Rx(θ)R_x(\theta), Ry(θ)R_y(\theta), and Rz(θ)R_z(\theta), we use the Pauli matrices as the generators of rotations:

X=(0110),Y=(0ii0),Z=(1001).X = \begin{pmatrix} 0 & 1\\ 1 & 0 \end{pmatrix},\qquad Y = \begin{pmatrix} 0 & -i\\ i & 0 \end{pmatrix},\qquad Z = \begin{pmatrix} 1 & 0\\ 0 & -1 \end{pmatrix}.

The rotation gates are defined by

Rx(θ)=eiθX/2,Ry(θ)=eiθY/2,Rz(θ)=eiθZ/2.R_x(\theta) = e^{-i\theta X/2},\qquad R_y(\theta) = e^{-i\theta Y/2},\qquad R_z(\theta) = e^{-i\theta Z/2}.

Let’s explain every symbol:

  • θ\theta is a real number (an angle).
  • ii is the imaginary unit.
  • eAe^{A} means the matrix exponential (a standard way to define continuous transformations).
  • The factor of 1/21/2 is a convention that makes the Bloch-sphere rotation angle match θ\theta.

You do not need to compute matrix exponentials by hand right now. The key meaning is:

  • Rx(θ)R_x(\theta) rotates the Bloch vector around the xx axis by angle θ\theta.
  • Ry(θ)R_y(\theta) rotates around the yy axis.
  • Rz(θ)R_z(\theta) rotates around the zz axis.

Concrete matrix forms (shown gently)

These definitions produce explicit 2×2 unitary matrices. For Rz(θ)R_z(\theta), the result is especially easy to interpret:

Rz(θ)=(eiθ/200eiθ/2).R_z(\theta) = \begin{pmatrix} e^{-i\theta/2} & 0\\ 0 & e^{i\theta/2} \end{pmatrix}.

This is a “phase difference” operation:

  • the 0|0\rangle component gets phase eiθ/2e^{-i\theta/2},
  • the 1|1\rangle component gets phase eiθ/2e^{i\theta/2}.

Only the relative phase matters physically (global phase can be ignored), so you can think of Rz(θ)R_z(\theta) as rotating the state around the zz axis.

For Rx(θ)R_x(\theta) and Ry(θ)R_y(\theta), the matrices mix amplitudes as well as phase. A useful intuition is:

  • at θ=π\theta = \pi, Rx(π)R_x(\pi) behaves like X up to a global phase,
  • at θ=π\theta = \pi, Ry(π)R_y(\pi) behaves like Y up to a global phase,
  • at θ=π\theta = \pi, Rz(π)R_z(\pi) behaves like Z up to a global phase.

So the Pauli gates are special cases of rotation gates.

Worked Example

Start with 0|0\rangle (north pole).

Apply Ry(θ)R_y(\theta). Geometrically, a rotation about the yy axis moves the state down toward the equator.

At θ=π/2\theta = \pi/2, you rotate 90° from +zz to +xx. So (up to global phase conventions) you land at

Ry(π/2)0=+.R_y(\pi/2)|0\rangle = |+\rangle.

Interpretation:

  • The parameter θ\theta literally controls “how far you rotate.”
  • Small θ\theta makes a small move on the sphere; θ=π\theta=\pi flips to the opposite side.

Turtle Tip

Turtle Tip

If you remember only one thing: Rx(θ)R_x(\theta), Ry(θ)R_y(\theta), and Rz(θ)R_z(\theta) are the “continuous versions” of X, Y, and Z. Pauli gates are like fixed 180° turns; rotation gates let you choose the angle.

Common Pitfalls

Common Pitfalls
  • Don’t panic when you see eiθX/2e^{-i\theta X/2}. You’re not expected to expand it; it’s a compact definition of “rotate continuously.”
  • Don’t confuse the Bloch-sphere rotation angle with a phase factor on the whole state. The Bloch sphere ignores global phase.

Quick Check

Quick Check
  1. What does the parameter θ\theta represent in Rz(θ)R_z(\theta)?
  2. Why are Rx(θ)R_x(\theta) and friends more general than the Pauli gates?

What’s Next

Rotation gates suggest a big idea:

  • if you can rotate around axes by chosen angles, you can reach essentially any point on the Bloch sphere.

Next we explain what “universal for single qubits” means and why rotations are enough to describe any single-qubit unitary (conceptually, without a proof).