Skip to the content
Kets & Gates homeOpen the app

Math toolkit

Complex numbers

Magnitude, phase, and why a phase factor has size 1

about 10 min

Practise this in the app

In the app every question checks your answer and explains a wrong one.

A number with a size and a direction

A complex number z=a+biz = a + bi has a real part aa, an imaginary part bb, and i2=−1i^2 = -1. Draw it as the point (a,b)(a, b) in the plane. Its magnitude (or modulus) is the distance from the origin, ∣z∣=a2+b2|z| = \sqrt{a^2 + b^2}. Its phase (or argument) is the angle from the positive real axis, measured counter-clockwise. This page covers what the lessons need.

In quantum mechanics we almost always need ∣z∣2|z|^2, which you can compute without square roots: ∣z∣2=a2+b2=z z∗|z|^2 = a^2 + b^2 = z\,z^*, where z∗=a−biz^* = a - bi is the complex conjugate (the reflection across the real axis).

Check yourself

What is ∣z∣2|z|^2 for z=12+i2z = \tfrac{1}{2} + \tfrac{i}{2}?

∣z∣2=  ?|z|^2 = \;?

Hints
  1. Which two real numbers are aa and bb here?
  2. Add the squares of the real and imaginary parts: a2+b2a^2 + b^2.
Show the answer

Answer: ∣z∣2=12|z|^2 = \frac{1}{2}

(1/2)2+(1/2)2=1/4+1/4=1/2(1/2)^2 + (1/2)^2 = 1/4 + 1/4 = 1/2.

Common slips

  • 11: That squares the sum, (12+12)2(\tfrac12 + \tfrac12)^2. Square each part first, then add: a2+b2a^2 + b^2.

Check yourself

Compute z z∗z\,z^* for z=3−4iz = 3 - 4i.

Hints
  1. What is z∗z^*? Flip the sign of the imaginary part.
  2. Multiply out (3−4i)(3+4i)(3-4i)(3+4i): the two cross terms cancel.
  3. Use i2=−1i^2 = -1 on the last term.
Show the answer

Answer: 2525

(3−4i)(3+4i)=9+12i−12i−16i2=9+16=25(3-4i)(3+4i) = 9 + 12i - 12i - 16i^2 = 9 + 16 = 25, which is ∣z∣2|z|^2.

Common slips

  • −7-7: That treats i2i^2 as +1+1. With i2=−1i^2 = -1, the last term −16i2-16i^2 is +16+16.
  • −7−24i-7-24i: That is z2=z zz^2 = z\,z. The conjugate flips the sign of the imaginary part: z∗=3+4iz^* = 3 + 4i.

Polar form: reiφre^{i\varphi}

Euler’s formula eiφ=cos⁡φ+isin⁡φe^{i\varphi} = \cos\varphi + i\sin\varphi puts a point on the unit circle at angle φ\varphi. So any complex number can be written z=reiφz = r e^{i\varphi} with r=∣z∣r = |z|. Two facts carry most of the weight in these lessons:

  • ∣eiφ∣=1|e^{i\varphi}| = 1 for every real φ\varphi: multiplying by a pure phase never changes a magnitude.
  • Multiplying complex numbers multiplies magnitudes and adds phases: r1eiφ1⋅r2eiφ2=r1r2 ei(φ1+φ2){r_1 e^{i\varphi_1} \cdot r_2 e^{i\varphi_2} = r_1 r_2\, e^{i(\varphi_1 + \varphi_2)}}.

Check yourself

What is ∣eiπ/3⋅12∣2\abs{e^{i\pi/3}\cdot\tfrac{1}{\sqrt{2}}}^2?

  1. A12e2iπ/3\tfrac{1}{2}e^{2i\pi/3}
  2. Bcos⁡2(π/3)/2\cos^2(\pi/3)/2
  3. C14\tfrac{1}{4}
  4. D12\tfrac{1}{2}
Hints
  1. What is the magnitude of eiπ/3e^{i\pi/3}?
  2. Magnitudes multiply, so ∣eiπ/3⋅12∣=∣eiπ/3∣⋅12|e^{i\pi/3}\cdot\tfrac{1}{\sqrt2}| = |e^{i\pi/3}|\cdot\tfrac{1}{\sqrt2}. Square that.
Show the answer

Answer: D. 12\tfrac{1}{2}

∣eiπ/3∣=1|e^{i\pi/3}| = 1, so ∣eiπ/3/2∣2=1/2|e^{i\pi/3}/\sqrt2|^2 = 1/2. A phase factor never changes a probability on its own.

Why not the others

  • A. That squares the number itself, z2z^2, which still carries a phase. Probabilities use ∣z∣2=zz∗|z|^2 = z z^*, which is always real and non-negative.
  • B. That keeps only the real part of the phase factor. The whole factor eiπ/3e^{i\pi/3} has magnitude exactly 1.
  • C. That shrinks the number by the phase factor, as if eiπ/3e^{i\pi/3} counted as its real part cos⁡(π/3)=12\cos(\pi/3) = \tfrac12. But ∣eiπ/3∣=1|e^{i\pi/3}| = 1, so only (1/2)2=12(1/\sqrt2)^2 = \tfrac12 is left.

Check yourself

Write eiπ/4⋅eiπ/4e^{i\pi/4}\cdot e^{i\pi/4} as a single complex number (e.g. i, -1, 1/sqrt(2)).

Hints
  1. Multiplying adds phases. What is π/4+π/4\pi/4 + \pi/4?
  2. Which point on the unit circle sits at angle π/2\pi/2?
Show the answer

Answer: ii

eiπ/4eiπ/4=eiπ/2=ie^{i\pi/4}e^{i\pi/4} = e^{i\pi/2} = i.

Common slips

  • 2 i2\,i: That adds the two numbers’ sizes. Multiplying multiplies magnitudes, 1×1=11 \times 1 = 1, and adds the phases: eiπ/2e^{i\pi/2}.

Practice

Check yourself

What is ∣z∣2|z|^2 when z=12eiπ/4z = \tfrac{1}{\sqrt{2}}e^{i\pi/4}?

Hints
  1. What is ∣eiθ∣|e^{i\theta}| for any real θ\theta?
  2. So ∣z∣|z| is just the positive number in front of the phase factor. Square it.
Show the answer

Answer: 12\frac{1}{2}

The phase has magnitude 1; (1/2)2=1/2(1/\sqrt{2})^2 = 1/2.

Check yourself

Compute (1+i)2(1 + i)^2.

Hints
  1. Expand (1+i)(1+i)(1+i)(1+i) term by term.
  2. Use i2=−1i^2 = -1 on the last term.
Show the answer

Answer: 2 i2\,i

1+2i+i2=2i1 + 2i + i^2 = 2i.

Common slips

  • 00: That is 12+i21^2 + i^2, which drops the cross terms. (1+i)(1+i)=1+i+i+i2(1+i)(1+i) = 1 + i + i + i^2.
  • 22: That is ∣1+i∣2=(1+i)(1−i)|1+i|^2 = (1+i)(1-i), which uses the conjugate. Here 1+i1+i multiplies itself: 1+2i+i21 + 2i + i^2.

Check yourself

Which number has the same magnitude as 12\tfrac{1}{\sqrt2} but a phase of π\pi?

  1. A12ei\tfrac{1}{\sqrt2}e^{i}
  2. B−12-\tfrac{1}{\sqrt2}
  3. Ci2\tfrac{i}{\sqrt2}
Show the answer

Answer: B. −12-\tfrac{1}{\sqrt2}

eiπ=−1e^{i\pi} = -1, so a phase of π\pi just flips the sign.

Why not the others

  • A. That phase is 1 radian, not π\pi radians.
  • C. i=eiπ/2i = e^{i\pi/2}: that is a phase of π/2\pi/2, a quarter turn.

Go further

Free resources for when you want more than this refresher covers.

Lessons that use it

Practise this in the appAll refreshers