Multiplication = rotate and scale
In Track 1, you saw quantum interference cancel wrong answers and amplify right ones. You knew the rule — amplitudes add and subtract. You didn't yet have the mechanism. This is it: multiplying complex numbers rotates their angle and scales their length. That's what interference actually is, written in mathematics.
Track 1 showed you what interference does. This lesson shows you what interference is.
In lessons L10 and L11, you watched right answers get louder while wrong answers cancelled out. The rule was clear enough to feel: when two amplitudes are in phase, they add; when they are opposite in phase, they cancel. You pushed sliders and watched probabilities shift. The visual was real.
But there was a hidden assumption in every one of those demos — that something could put amplitudes into phase with each other in the first place. What is the actual operation that rotates an amplitude's phase? What does it mean, mathematically, for two amplitudes to become "opposite in phase"?
Quantum gates work by multiplying qubit amplitudes by complex numbers. A phase gate multiplies by $e^{i\phi}$ — adding angle $\phi$ to the amplitude's direction without changing its magnitude. The Hadamard gate multiplies by $1/\sqrt{2}$ to scale, and uses $+1$ and $-1$ to create constructive and destructive interference. All of this is complex multiplication. Once you understand what multiplication does geometrically, every quantum gate you encounter becomes transparent.
The answer is precise and beautiful: multiplying two complex numbers rotates the angle of one by the other's angle, and scales the magnitude by the other's magnitude. That's it. That's the engine underneath every quantum speedup ever discovered.
Think of a clock hand. Multiplying rotates it further and stretches it.
Imagine a clock hand pinned at the origin of the complex plane. It has two properties: its length (how far it reaches from the center) and its angle (which direction it points, measured from the positive real axis).
You have two clock hands: $z_1$ at angle $\theta_1$ and length $r_1$, and $z_2$ at angle $\theta_2$ and length $r_2$. Multiplying $z_1 \times z_2$ gives a new hand whose angle is $\theta_1 + \theta_2$ (the angles add) and whose length is $r_1 \times r_2$ (the lengths multiply). The first hand gets rotated by the second hand's angle, then scaled by the second hand's length. That's all multiplication does, geometrically.
A few special cases make this intuition concrete before the algebra:
Adding 0° to any angle leaves the angle unchanged. Multiplying any length by 1 leaves the length unchanged. This is the identity operation — exactly what the $I$ (identity) quantum gate does.
Adding 90° to any angle rotates the clock hand a quarter turn counterclockwise. Length is unchanged. This is the $Y$-gate phase contribution — and it's why $i \times i = -1$: two 90° turns make a 180° turn, which maps $+1$ to $-1$.
Adding 180° reverses the clock hand. The amplitude points exactly opposite. If two amplitudes now point in exactly opposite directions and have equal length, they cancel to zero — destructive interference. This is the Phase Kickback in Grover's algorithm: a $\pi$-phase flip on the marked state sends its contribution negative, setting up the subsequent cancellation.
Two lines of algebra. Three consequences that run through all of quantum computing.
The polar form of a complex number
In M07 you learned that every point on the unit circle can be written as $e^{i\theta}$. A general complex number $z$ with magnitude $r$ and angle $\theta$ is just that unit-circle point scaled outward by $r$:
$$z = r\,e^{i\theta} \qquad \text{where } r = |z| \geq 0 \text{ and } \theta \in [0, 2\pi)$$
This is called the polar form. Every complex number has one. The Cartesian form $a + bi$ and the polar form $re^{i\theta}$ encode the same point — they're two different coordinate systems for the complex plane.
Multiplying two complex numbers in polar form
Take two complex numbers $z_1 = r_1 e^{i\theta_1}$ and $z_2 = r_2 e^{i\theta_2}$. Multiply them:
$$z_1 \cdot z_2 = \bigl(r_1 e^{i\theta_1}\bigr)\cdot\bigl(r_2 e^{i\theta_2}\bigr)$$
Real numbers commute freely, so we can regroup:
$$= r_1 \cdot r_2 \cdot e^{i\theta_1} \cdot e^{i\theta_2}$$
For any exponents $a$ and $b$: $e^a \cdot e^b = e^{a+b}$. This is a fundamental property of the exponential function, true for complex exponents too:
$$= r_1 r_2 \cdot e^{i\theta_1 + i\theta_2} = r_1 r_2\, e^{i(\theta_1 + \theta_2)}$$
$$\boxed{z_1 \cdot z_2 = r_1 r_2\, e^{i(\theta_1+\theta_2)}}$$
Magnitude of product: $r_1 \times r_2$. Angle of product: $\theta_1 + \theta_2$. Neither operation affects the other.
Three consequences worth naming
If $|z_2| = r_2 = 1$ (i.e. $z_2 = e^{i\theta_2}$ lies on the unit circle), then $|z_1 \cdot z_2| = r_1 \cdot 1 = r_1$. The magnitude of $z_1$ is completely preserved. Only the angle changes: $\theta_1 \to \theta_1 + \theta_2$. Phase gates in quantum circuits are exactly this — they multiply an amplitude by $e^{i\phi}$, rotating its phase without touching its probability $|z|^2$. Normalization is preserved automatically.
$\theta_2 = \pi$, $r_2 = 1$, so $z_1 \cdot e^{i\pi}$ has angle $\theta_1 + \pi$. Adding $\pi$ radians is a 180° rotation — the vector points exactly the opposite direction. In Cartesian form: $(a + bi) \times (-1) = -a - bi$. Every component flips sign. This is destructive interference: two amplitudes with a $\pi$ phase difference have equal and opposite contributions — they cancel.
If $r_2 < 1$, the product's magnitude $r_1 r_2 < r_1$: the amplitude shrinks. If $r_2 > 1$, it grows. Quantum gates use $r_2 = 1$ (unitary gates) to preserve total probability. But the relative magnitudes between different state amplitudes can and do change — this is how constructive interference concentrates probability into the correct answer.
The interference connection made explicit
A quantum algorithm works by running a state through a sequence of gates, each of which multiplies amplitudes by complex numbers. After all gates have run, you measure. The probability of each outcome is $|\text{amplitude}|^2$.
For a computation to be useful, the amplitude for the correct answer must be large in magnitude when you measure, and the amplitudes for wrong answers must be small. The only way to achieve this without measuring intermediate states is through interference: arranging the phases of amplitudes so that wrong-answer paths add to near-zero, and correct-answer paths add constructively.
$$\underbrace{z_1 + z_2}_{\text{two paths to same outcome}} = r_1 e^{i\theta_1} + r_2 e^{i\theta_2}$$
When $\theta_1 = \theta_2$ (same phase), the magnitudes add: $|z_1 + z_2| = r_1 + r_2$ — constructive. When $\theta_1 = \theta_2 + \pi$ (opposite phase) and $r_1 = r_2$, we get $|z_1 + z_2| = 0$ — complete destructive interference. Every value in between gives partial interference. The angle difference — the relative phase — is the single quantity that determines the interference pattern.
Set two phasors. Watch their product — and feel when interference turns constructive or destructive.
Control two complex numbers $z_1$ and $z_2$ using sliders for their magnitudes ($r$) and angles ($\theta$). The canvas shows all three vectors simultaneously: $z_1$ in blue, $z_2$ in rose, and their product $z_1 z_2$ in cyan. The interference status updates in real time — green for constructive, red for destructive.
Goal 2 — Destructive interference: Set $r_1 = r_2 = 1.0$, $\theta_1 = 0°$. Drag $\theta_2$ to 180°. The result angle hits 180° — the product points exactly opposite to the starting direction. That's the $\pi$-phase flip that enables cancellation in Grover's algorithm.
Mini challenge: Starting from any $z_1$, can you choose $z_2$ so that the product $z_1 z_2$ lands exactly on the positive real axis (angle 0°)?
Micro practice — three conceptual checks
Think first: if $z_1$ points at 45° and $z_2$ points at 30°, where does $z_1 z_2$ point? The angles add: 45° + 30° = 75°. Verify this with the sliders. Now extend the idea: multiplying by $e^{i\phi}$ adds angle $\phi$ to whatever $z_1$'s current angle is. A sequence of quantum gates is just a sequence of angle additions — the final phase of an amplitude is the sum of all the phase contributions from each gate it passed through.
$e^{i\pi} = -1$ (you proved this in M07). Its magnitude is 1, its angle is $\pi$ (180°). Multiplying any $z$ by $-1$ adds 180° to its angle and leaves its magnitude unchanged. The vector flips to point exactly the opposite direction. If the amplitude before the flip was $+0.6$, after it is $-0.6$. In the Grover oracle, this is called the phase kickback: the marked state's amplitude gets a $\pi$ flip, making it interfere destructively with subsequent amplification steps.
Two amplitudes both contribute to the probability of the same measurement outcome by adding. If $z_1 = re^{i\alpha}$ and $z_2 = re^{i(\alpha+\pi)}$, then $z_2 = -z_1$. Their sum is $z_1 + z_2 = z_1 - z_1 = 0$. The combined amplitude is zero — the outcome has probability $|0|^2 = 0$. This is destructive interference, and it's simply the arithmetic of complex addition when two equal-magnitude amplitudes point in opposite directions. The "interference" is not a mysterious wave phenomenon — it's signed arithmetic on probability amplitudes.
Two rules. Every quantum gate ever built follows them.
-
Complex multiplication: magnitudes multiply, angles add
$r_1 e^{i\theta_1} \cdot r_2 e^{i\theta_2} = r_1 r_2\, e^{i(\theta_1+\theta_2)}$. These two operations are completely independent — the angle addition never affects the magnitude, and the magnitude multiplication never affects the angle. This is the geometric meaning of multiplication on the complex plane.
-
Unit-magnitude multipliers are pure rotations — and are unitary
Every quantum gate must preserve total probability: $\sum_j |\alpha_j|^2 = 1$. A single-qubit phase gate multiplies by $e^{i\phi}$ (magnitude 1), rotating the amplitude's angle without changing $|\alpha|^2$. This is why phase gates are unitary — they implement a rotation, not a scaling.
-
Constructive interference = same angle. Destructive = opposite angle.
When two amplitudes contributing to the same outcome have the same angle (phase difference 0), their magnitudes add: $|z_1 + z_2| = r_1 + r_2$. When they differ by $\pi$, and $r_1 = r_2$, they cancel: $|z_1 + z_2| = 0$. Quantum speedups exist precisely because algorithms can be engineered so that the correct answer always falls in the first category, wrong answers in the second.
-
This is the math you saw in L10 and L11 — now made exact
In Track 1, interference was a visual — amplitudes pointing left and right. Now it's an equation: $z_1 + z_2 = r_1 e^{i\theta_1} + r_2 e^{i\theta_2}$. The outcome depends entirely on the relative phase $\theta_1 - \theta_2$. Quantum algorithms engineer this phase difference — gate by gate, multiplication by multiplication — so that the computation converges on the correct answer.
You now understand complex multiplication as rotation and scaling.
The next step: what does it mean for a matrix to act on a qubit state?
Unitary matrices are rotations in higher-dimensional complex space.
- Nielsen, M. A. & Chuang, I. L. — Quantum Computation and Quantum Information, Cambridge, 2000. §4.2: Single-qubit operations; §4.3: Controlled operations — phase gates as $e^{i\phi}$ multiplications.
- Preskill, J. — Lecture Notes for Physics 229, Caltech, 1998. Chapter 2: Unitary operators as rotations of complex state vectors. Available online
- Needham, T. — Visual Complex Analysis, Oxford, 1997. Chapter 1 §3: Multiplication as rotation and dilation — the geometric proof.
- Grover, L. K. — "A fast quantum mechanical algorithm for database search," Proc. 28th ACM STOC, 1996. Phase kickback and constructive/destructive interference as the core mechanism.