Skip to content
Quantum ComputingAN INTERACTIVE OPEN TEXTBOOK
charithj.com.au

Phase and rotation gates

Continuous changes of angle, and the phase conventions behind familiar gate names.

10 min readDr. Charith Jayasekara↓ Chapter PDF
By the end, you’ll be able to
  • Relate S and T to the phase gate P.
  • Calculate a Y rotation on the zero state.
P(ϕ)=(100eiϕ).P(\phi)=\begin{pmatrix}1&0\\0&e^{i\phi}\end{pmatrix}.

It leaves the magnitude of each amplitude unchanged. Therefore it does not change Z-basis probabilities immediately. S is P(π/2)P(\pi/2), T is P(π/4)P(\pi/4) and Z is P(π)P(\pi).

The interference experiment places P between two H gates so you can observe its effect.

Section titled “A rotation is related, but check its convention”
Rz(ϕ)=(e−iϕ/200eiϕ/2).R_z(\phi)=\begin{pmatrix}e^{-i\phi/2}&0\\0&e^{i\phi/2}\end{pmatrix}.

For a standalone one-qubit operation, P(ϕ)=eiϕ/2Rz(ϕ)P(\phi)=e^{i\phi/2}R_z(\phi), so they differ only by global phase. Controlled versions require more care: a phase on one controlled branch can become a relative phase in the larger system.

The Y rotation is

Ry(θ)=(cos⁡(θ/2)−sin⁡(θ/2)sin⁡(θ/2)cos⁡(θ/2)).R_y(\theta)=\begin{pmatrix}\cos(\theta/2)&-\sin(\theta/2)\\\sin(\theta/2)&\cos(\theta/2)\end{pmatrix}.

Applying it to zero gives amplitudes cos⁡(θ/2)\cos(\theta/2) and sin⁡(θ/2)\sin(\theta/2). At θ=2π/3\theta=2\pi/3, the probabilities are 1/41/4 and 3/43/4.

Set the qubit explorer’s polar angle to 120° and phase to 0°. Compare it with the Y-rotation example. Then apply S and T and explain why the displayed Z probabilities stay fixed while the arrow moves.

Reference: IBM Quantum — Single systems.

ONE IDEA FURTHER

Ready for the next step?

Your progress stays in this browser.