Complex numbers are of the form \(a + bi\), where \(a\) and \(b\) are real and \(i\) is the unit with \(i^2 = −1\). We’ll use magnitude and phase a lot in quantum: \(z = re^{i\theta}\).
$$r = \sqrt{2}, \theta = \pi/4$$
\((1·2 − 2·(−1)) + (1·(−1) + 2·2)i = 4 + 3i\)
\(a^2 + b^2\) (always real and non‑negative)