Back to course

The Pauli-Z Gate (Phase Flip)

Quantum Computing Basics for Developers

The Z Gate

The Z gate doesn't change the probability of measuring 0 or 1. Instead, it flips the phase. It changes the sign of the $|1⟩$ component.

$Z|1⟩ = -|1⟩$. This is crucial for interference.