A gate maps \(|0\rangle\) to some output and \(|1\rangle\) to some output. Whether it's a valid quantum gate comes down to one number: the inner product of those outputs.
The braket is the test. The norm blowup is just the symptom.
Apply any gate to \(|+\rangle = \frac{1}{\sqrt{2}}|0\rangle + \frac{1}{\sqrt{2}}|1\rangle\). The output is:
$$|\psi'\rangle = \tfrac{1}{\sqrt{2}}|\text{out}_0\rangle + \tfrac{1}{\sqrt{2}}|\text{out}_1\rangle$$
Compute the norm² by expanding \(\langle\psi'|\psi'\rangle\):
$$\langle\psi'|\psi'\rangle = \tfrac{1}{2}\langle\text{out}_0|\text{out}_0\rangle + \tfrac{1}{2}\langle\text{out}_0|\text{out}_1\rangle + \tfrac{1}{2}\langle\text{out}_1|\text{out}_0\rangle + \tfrac{1}{2}\langle\text{out}_1|\text{out}_1\rangle$$
Each output is individually normalized (\(\langle\text{out}|\text{out}\rangle = 1\)), so the first and last terms give \(\frac{1}{2} + \frac{1}{2} = 1\). What's left:
$$= 1 + \tfrac{1}{2}\big(\langle\text{out}_0|\text{out}_1\rangle + \langle\text{out}_1|\text{out}_0\rangle\big) = 1 + \text{Re}\big(\langle\text{out}_0|\text{out}_1\rangle\big)$$
(Since \(\langle\text{out}_1|\text{out}_0\rangle = \langle\text{out}_0|\text{out}_1\rangle^*\), their sum is twice the real part.)
$$\text{Norm}^2 = 1 + \text{Re}\big(\langle\text{out}_0|\text{out}_1\rangle\big)$$
The braket is the leak. It directly predicts how much the norm overshoots.
A quantum gate is valid if and only if it maps basis states to orthonormal outputs. "Orthonormal" packs both requirements into one word:
A matrix whose columns are orthonormal vectors is called a unitary matrix. That's why quantum gates = unitary matrices.
Next: The Dagger & U†U = I
| Gate | \(|0\rangle \to\) | \(|1\rangle \to\) | \(\langle\text{out}_0|\text{out}_1\rangle\) (cause) |
Norm² = 1 + braket (effect) |
Valid? |
|---|---|---|---|---|---|
| SET | \(|1\rangle\) | \(|1\rangle\) | 1 | 2.0 | NO |
| ZERO | \(|0\rangle\) | \(|0\rangle\) | 1 | 2.0 | NO |
| SNEAKY | \(|0\rangle\) | \(|+\rangle\) | 0.71 | 1.71 | NO |
| X | \(|1\rangle\) | \(|0\rangle\) | 0 | 1.0 | YES |
| Z | \(|0\rangle\) | \(-|1\rangle\) | 0 | 1.0 | YES |
| H | \(|+\rangle\) | \(|-\rangle\) | 0 | 1.0 | YES |
Choose a gate and see what happens to \(|+\rangle = \frac{1}{\sqrt{2}}|0\rangle + \frac{1}{\sqrt{2}}|1\rangle\)