The S (Phase) Gate
Every quantum gate acts on amplitudes, not just probabilities. The S gate — sometimes called the phase gate — leaves unchanged and multiplies the amplitude by :
Its matrix is diagonal:
Because , the S gate introduces a relative phase of 90° (a quarter turn) between the two basis amplitudes.
Why relative phase matters
A global phase — a factor in front of the entire state — is physically unobservable. A relative phase between and is a different story: it changes the state genuinely and is observable when the state is later interfered with other gates.
To see this, start from the equal superposition
and apply . Because only touches the amplitude,
The probabilities are still 50/50 — the magnitudes and are both . But the relative phase has shifted from to , moving the Bloch vector from the axis to the axis. This state is the eigenstate, often written or .
Try it
Apply H and then S to the single qubit. After pressing Run, look at the amplitudes: the amplitude should be (real), and the amplitude should be (purely imaginary), confirming the 90° relative phase.
Notice that the Probabilities tab still shows a 50/50 split — the phase is hidden from measurements in the basis. It would only become visible if you applied another gate that causes interference, such as a second Hadamard.
Sign in on the full site to ask questions and join the discussion.