Gates Are Unitary
A quantum gate is more than just a transformation — it must be reversible and norm-preserving. These two properties are captured in a single word: unitary.
What unitarity means
A matrix is unitary if , where is the conjugate transpose of . This condition has an immediate physical consequence: if is any normalized quantum state, then is also normalized:
In other words, the total probability of all outcomes is always exactly 1, no matter which gate you apply.
Verifying the X gate
The Pauli gate has the matrix
Its conjugate transpose is (real and symmetric), so
Starting from , applying gives . The amplitude squared of the single non-zero component is — full probability, nothing lost.
The same is true for the and gates, and indeed for every gate you will encounter in this course. Unitarity is what ensures that quantum computations are always physically valid.
Try it
The gate maps to , which still has amplitudes for both basis states. Compute the sum of the squared amplitudes and return it. The grader checks that the result equals 1, confirming that preserves the norm.
Sign in on the full site to ask questions and join the discussion.