Skip to content

Complex numbers

Real numbers are not enough for quantum computing: the amplitudes of a qubit are complex numbers. The good news is that the central idea fits in one picture: a complex number is a point in a plane, and multiplying by a number "of size 1" rotates that plane.

The number ii and the form a+bia + bi

No real number squared gives −1-1. So we invent one: ii, defined by

i2=−1.i^2 = -1.

A complex number is any z=a+biz = a + bi with aa and bb real. We call aa the real part (Re z\mathrm{Re}\,z) and bb the imaginary part (Im z\mathrm{Im}\,z). Example: in z=3−2iz = 3 - 2i, Re z=3\mathrm{Re}\,z = 3 and Im z=−2\mathrm{Im}\,z = -2 (the imaginary part is the number −2-2, without the ii).

Adding means adding like parts: (1+2i)+(3−i)=4+i(1+2i) + (3-i) = 4 + i. Multiplying means distributing, remembering that i2=−1i^2=-1:

(1+2i)(3−i)=3−i+6i−2i2=3+5i+2=5+5i.(1+2i)(3-i) = 3 - i + 6i - 2i^2 = 3 + 5i + 2 = 5 + 5i.

What is the real part of (2+i)(1+3i)(2+i)(1+3i)?

Mini-challenge

Solve this mini-lesson's mini-challenge to continue.