Phase Gates (S and T)
Track: Quantum Gates & Circuits · Difficulty: Beginner · Est: 15 min
Phase Gates (S and T)
Overview
So far, you’ve seen gates that visibly change probabilities in the computational basis (like X). You’ve also seen a gate (Z) that can leave computational-basis probabilities unchanged while still changing the state.
Phase gates continue that theme. They are essential because:
- phase is a real degree of freedom in quantum states,
- phase controls interference,
- and small phase rotations are building blocks for general single-qubit evolution.
In this lesson we focus on two standard phase gates:
- S (a phase rotation around ),
- T (a phase rotation around ).
Intuition
A general single-qubit state is
A phase gate is a gate that keeps the magnitude of amplitudes but changes the relative phase between basis components.
A particularly important class is “phase on ”:
- stays the same,
- picks up a complex factor of magnitude 1, like .
That means probabilities in the computational basis are unchanged (because ), but the state’s phase structure changes, which affects what happens under later basis changes and measurements.
Bloch-sphere picture:
- Z was a 180° rotation about the axis.
- S and T are smaller rotations about the same axis.
So you can think of S and T as “phase knobs” that rotate the state around the axis by controlled angles.
Formal Description
The S gate
S is defined by
So it adds a phase of (a quarter-turn) to the component.
Matrix form:
Interpretation of the matrix:
- The top-left “1” means the amplitude stays .
- The bottom-right “” means the amplitude becomes .
So for ,
The T gate
T is defined by
Matrix form:
Again, the meaning is direct:
- the amplitude stays ,
- the amplitude becomes .
So
Difference between S and T
Both are rotations about . The only difference is the rotation angle:
- S applies a phase to .
- T applies a phase to .
You can view S as “two T steps”:
(We’re stating this relationship as a useful fact; the main point is that S is a bigger phase rotation than T.)
Worked Example
Take
Apply S:
Computational-basis probabilities are still and . But the state has moved on the Bloch sphere:
- points along +.
- points along +.
So S rotates the equator direction by 90° about the axis.
Similarly, applying T to rotates by 45° about :
which lands halfway between + and + on the equator.
Turtle Tip
If a gate doesn’t change probabilities in the computational basis, don’t conclude it “does nothing.” Phase changes are often invisible in Z-measurement but become obvious after a basis change (like applying H) or measuring in a different basis.
Common Pitfalls
- Don’t mix up the imaginary unit with an “extra dimension.” It’s a compact way to represent phase.
- Don’t confuse S and T with Z. Z is a 180° -rotation, while S and T are smaller rotations.
Quick Check
- What does S do to the component of a state?
- Why can S or T matter even when and stay the same in the computational basis?
What’s Next
We’ve learned named gates that rotate around axes by special angles. Next we generalize: instead of a fixed 180°, 90°, or 45° turn, we define rotation gates , , and that rotate by an arbitrary angle .
