|q⟩ Bad Qubits

beginner · Physics · Math Foundations: Complex Numbers

Complex Conjugate

For any complex number z=a+biz = a + bi, the complex conjugate is

z=abi.z^* = a - bi.

Geometrically, conjugation reflects the point across the real axis in the complex plane: the real part aa is unchanged and the imaginary part changes sign.

Why conjugates matter for quantum mechanics

The central reason to care about zz^* in quantum mechanics is the modulus formula. Multiply zz by its own conjugate:

zz=(a+bi)(abi)=a2+b2.z \, z^* = (a + bi)(a - bi) = a^2 + b^2.

The cross-terms abiabi and abi-abi cancel, leaving a real non-negative number. Taking the square root gives the modulus:

z=zz=a2+b2.|z| = \sqrt{z \, z^*} = \sqrt{a^2 + b^2}.

In the Born rule, a quantum state assigns a complex amplitude α\alpha to each outcome; the probability of that outcome is α2=αα|\alpha|^2 = \alpha \, \alpha^*. Every probability you will ever compute in quantum mechanics goes through this product.

Key properties

1. Double conjugation is the identity. (z)=z(z^*)^* = z. Conjugating twice recovers the original number.

2. Conjugation distributes over addition and multiplication. (z1+z2)=z1+z2(z_1 + z_2)^* = z_1^* + z_2^* and (z1z2)=z1z2(z_1 z_2)^* = z_1^* \, z_2^*. These identities are used constantly when simplifying inner products of quantum states.

3. Real numbers are their own conjugates. If b=0b = 0 then z=a=zz^* = a = z. In particular, z2=zz|z|^2 = z \, z^* is always real and non-negative, as a probability must be.

A worked example

Let z=35iz = 3 - 5i. Then z=3+5iz^* = 3 + 5i and

zz=(35i)(3+5i)=925i2=9+25=34,z \, z^* = (3 - 5i)(3 + 5i) = 9 - 25i^2 = 9 + 25 = 34,

so z=345.831|z| = \sqrt{34} \approx 5.831.

Note the step 25i2=25-25i^2 = 25 because i2=1i^2 = -1. Watch for sign errors here — they are by far the most common mistake when computing moduli.

Try it

This is a numerical exercise — your code should return a number. Use the conjugate identity z2=re2+im2|z|^2 = re^2 + im^2 to find the modulus of z=512iz = 5 - 12i (a 5–12–13 right triangle).

Run your code to see the quantum state.

Sign in on the full site to ask questions and join the discussion.