Quantum Lab
Quantum Lab

An interactive quantum mechanics learning platform and cryostat wiring co-design tool. From plain-language intuition to formal mathematics.

contact@quantumcircuitsimulator.com

Product

  • Circuit Lab
  • Learn
  • Hardware Studio
  • Pricing

Legal

  • Privacy Policy
  • Terms of Service

© 2026 Quantum Lab. All rights reserved.

This site, including its original quantum simulations, cryostat reference systems, 3D models, and interface design, contains protected proprietary material.

Home/Quantum Physics/Lessons/Phase Gate (S Gate)
P

Phase Gate (S Gate)

PhaseSingle-qubit+π/2

Adds a quarter-turn of phase to the |1⟩ branch.

Intuition

The Phase gate (also called the S gate) is Z’s gentler cousin. Where Z adds a full 180° phase flip, Phase adds only a 90° turn — it multiplies |1⟩ by i instead of −1. This is a great gate for seeing that quantum amplitudes are truly complex numbers, not just real-valued weights. The factor of i is invisible in computational-basis measurements, but it changes how the state interferes with other states later.

Matrix representation
(10​0i​)
Action on states
∣0⟩→∣0⟩,∣1⟩→i∣1⟩
Bloch sphere
|+⟩
→
|+i⟩
Circuit
q0HP
State comparison
Before Phase
|+⟩
|0\u27E9
50%
|1\u27E9
50%
Bloch: (1.00, 0.00, 0.00)
→
After Phase
|+i⟩
|0\u27E9
50%
|1\u27E9
50%
Bloch: (0.00, 1.00, 0.00)
Precise explanation

The Phase gate is diagonal with entries (1, i). It is a special case of the RZ rotation: S = RZ(π/2) up to global phase, and S² = Z. The eigenvalues are 1 and i, with eigenstates |0⟩ and |1⟩. On the Bloch sphere, it is a 90° rotation around the Z axis. Together with H, the S gate generates the Clifford group for a single qubit.

Observable effect

Measurement odds stay the same in the computational basis.

Hidden effect

Quarter-turn phase accumulates — visible only after a mixing gate like H.

Bloch sphere

Rotates 90° around the Z axis. Quarter-turn of equatorial phase. The poles stay fixed while equatorial states rotate by 90°.

Worked example

Building up phase in steps

  1. 1Start with |+⟩ = H|0⟩ = (|0⟩ + |1⟩)/√2.
  2. 2Apply Phase: the state becomes (|0⟩ + i|1⟩)/√2.
  3. 3Apply Phase again: the state becomes (|0⟩ − |1⟩)/√2 = |−⟩. Two S gates = one Z gate.
  4. 4Apply H: |−⟩ maps to |1⟩, confirming the accumulated phase.
Common use cases
  • Clifford group circuits (S + H generate all single-qubit Clifford operations)
  • Phase estimation subroutines
  • Quantum Fourier Transform building blocks
  • T gate decomposition (T² = S)
Relation to other gates
  • S² = Z — two Phase gates equal one Z gate
  • S = RZ(π/2) up to global phase
  • S† (S-dagger) rotates by −π/2, multiplying |1⟩ by −i
  • T² = S — the T gate is the square root of S
Common misconception

Because the Phase gate does not change probabilities, it can look useless. But quantum algorithms use accumulated phase to create interference patterns that bias the final measurement.

Why this gate matters

The Phase gate demonstrates that quantum information is richer than probabilities. The factor of i is as physical as any bit flip — it just lives in a dimension (phase) that you need interference to access.

Test your understanding

How many S gates does it take to equal one Z gate?

Quick reference →↗ Nielsen and Chuang, Quantum Computation and Quantum Information
←
Previous
Swap
Next
RX Gate
→
← Back to all lessons