Z Gate & Relative Phase

qc/gates qc/phase

The Z gate leaves |0⟩ unchanged but maps |1⟩ → −|1⟩:

This minus sign is a relative phase. It doesn’t change measurement probabilities in the standard basis (still 50/50) but is physically real — it affects how the state interferes in later computation. It’s what distinguishes |00⟩+|11⟩ from |00⟩−|11⟩.

The general phase gate

Z is one member of a whole family, the phase gate :

Z is the special case (a half-turn about the Z-axis on the Bloch Sphere). See S and T Gates for the two other special cases that matter most in practice.

Self-Check

  • Why does the Z gate not change measurement probabilities in the standard basis, if it’s clearly doing something?
  • What is a “relative phase,” and why does it matter even though it’s invisible to a Z-basis measurement?
  • What’s the difference between and , and how would you actually detect it?
  • What angle makes equal to the Z gate?