beginner · Physics · Math Foundations: Complex Numbers
Euler’s Formula
One of the most powerful identities in all of mathematics connects the complex exponential to
trigonometry. For any real angle θ (in radians),
eiθ=cosθ+isinθ.
This is Euler's formula. It means that the complex exponential eiθ is a point on the
unit circle in the complex plane, at angle θ from the positive real axis. The real part is
cosθ and the imaginary part is sinθ, so its modulus is always 1:
∣eiθ∣2=cos2θ+sin2θ=1.
The last equality follows from the Pythagorean identity, confirming that eiθ stays exactly
on the unit circle for every θ.
Why it matters for quantum mechanics
A quantum state amplitude is a complex number, and rotating that amplitude by an angle θ
multiplies it by eiθ. Because ∣eiθ∣=1, this rotation — called a phase —
leaves the measurement probability ∣z∣2 unchanged. Euler's formula makes this fact transparent:
phases are pure rotations on the unit circle. This is why quantum gates like the T gate (rotation
by π/4) and S gate (rotation by π/2) are expressed in terms of eiθ.
Deriving the formula
A concise route uses Taylor series. Expanding ex, cosx, and sinx around x=0:
ex=1+x+2!x2+3!x3+4!x4+⋯
Substitute x=iθ and use i2=−1, i3=−i, i4=1, cycling every four powers: