Intuition
A complex number has two coordinates. Multiplication by a unit complex number rotates it in the plane. This is the arithmetic behind phase shifts in quantum circuits.
Two arrows can reinforce or cancel when added. Two probability weights always add nonnegatively, while two complex amplitudes can add to zero. This distinction is central to interference.
Learning objectives
- Convert between rectangular and polar form
- Compute squared magnitudes
- Predict cancellation from relative phase
Interactive exploration
Use the controls to change the state and see its calculated readout. You can return to this experiment as you work through the derivation.
Amplitude at |0⟩
Complex planeFirst 0.500Second 0.250 + 0.433iSum 0.750 + 0.433i
Prepare & recombine
Hadamard adds the input amplitudes for |0⟩ and subtracts them for |1⟩.
Mathematical foundation
The imaginary unit i squares to −1. Complex conjugation changes the sign of the imaginary part, so multiplying by the conjugate gives the squared length.
Euler’s formula relates an angle to the unit circle. Multiplying by this unit complex number adds the angle to the phase and preserves length.
Worked example
Take two real contributions of equal magnitude 1/2. Rotate the second through π radians so it points the other way. Their sum vanishes. At π/2 the contributions are perpendicular and the squared length is 1/2.
Guided experiment
Set the preparation angle to 90°. Sweep the phase from 0° through 90° to 180°. Follow the complex arrows and the output probability.
Go to the controlsCompare with the expected result
At 180° equal contributions cancel at output zero. At 90° each output probability is one half.
Understanding check
Next steps
Want to keep your results? Start your learning journey
Open Interference Studio