ψQuantum Computing 2026

CHAPTER 02

Complex amplitudes and quantum states

Learning goals. Manipulate complex numbers, normalize a state, calculate inner products, and distinguish coherent superpositions from classical mixtures.

2.1 Why amplitudes precede probabilities

Two indistinguishable paths can contribute to one detector outcome. Changing their relative phase can change the detection rate without changing either path’s separate intensity. Classical addition of path probabilities cannot describe that interference. Quantum theory adds amplitudes for coherent alternatives and takes a modulus squared to obtain a probability.

This does not mean a computer calculates every answer and lets us read whichever we want. An algorithm must arrange physical transformations so the desired measurement statistics reveal useful information.

A complex number is z=a+ibz=a+ib, where i2=1i^2=-1. Its conjugate is z*=aibz^*=a-ib, and

|z|2=z*z=(aib)(a+ib)=a2+iabiabi2b2=a2+b2.|z|^2=z^*z=(a-ib)(a+ib) =a^2+iab-iab-i^2b^2=a^2+b^2.

The mixed terms cancel. Squaring zz instead gives a2b2+2iaba^2-b^2+2iab, generally not a real probability.

Worked arithmetic.

(2i)(1+3i)=2+6ii3i2=5+5i,(2-i)(1+3i)=2+6i-i-3i^2=5+5i, |2i|2=(2+i)(2i)=42i+2ii2=5.|2-i|^2=(2+i)(2-i)=4-2i+2i-i^2=5.

Polar form is z=reiϕ=r(cosϕ+isinϕ)z=re^{i\phi}=r(\cos\phi+i\sin\phi). Multiplication multiplies moduli and adds phases. In particular, multiplying by eiϕe^{i\phi} rotates a complex-plane arrow without changing its length.

2.2 Vectors and kets

The computational basis is

|0=(10),|1=(01).|0\rangle=\begin{pmatrix}1\\0\end{pmatrix}, \qquad |1\rangle=\begin{pmatrix}0\\1\end{pmatrix}.

A pure qubit is represented by

|ψ=α|0+β|1=(αβ),|α|2+|β|2=1.|\psi\rangle=\alpha|0\rangle+\beta|1\rangle =\begin{pmatrix}\alpha\\\beta\end{pmatrix},\qquad |\alpha|^2+|\beta|^2=1.

A ket names a vector. Addition and scalar multiplication act componentwise. Normalization ensures that the two computational measurement probabilities sum to one.

For a nonzero vector |v=a|0+b|1|v\rangle=a|0\rangle+b|1\rangle,

|ψ=|v|a|2+|b|2.|\psi\rangle=\frac{|v\rangle}{\sqrt{|a|^2+|b|^2}}.

The zero vector cannot be normalized: it assigns probability zero to every outcome. Software should reject it, not silently substitute a state.

Worked example. Let |v=(1+i)|0+2|1|v\rangle=(1+i)|0\rangle+2|1\rangle. Expanding the norm gives

v|v=(1i)(1+i)0|0+2(1i)0|1+2(1+i)1|0+41|1=(1i)(1+i)+4=1+iii2+4=6.\begin{aligned} \langle v|v\rangle &=(1-i)(1+i)\langle0|0\rangle +2(1-i)\langle0|1\rangle\\ &\quad+2(1+i)\langle1|0\rangle+4\langle1|1\rangle\\ &=(1-i)(1+i)+4\\ &=1+i-i-i^2+4=6. \end{aligned}

We used 0|0=1|1=1\langle0|0\rangle=\langle1|1\rangle=1 and the cross overlaps zero. Hence the normalized vector is ((1+i)|0+2|1)/6((1+i)|0\rangle+2|1\rangle)/\sqrt6. Its Z probabilities are 1/3,2/31/3,2/3. The cross terms vanished because the basis vectors are orthogonal, not because imaginary coefficients can be ignored.

2.3 Bras and inner products

The bra of a ket is its conjugate transpose:

ψ|=(α*β*).\langle\psi|=\begin{pmatrix}\alpha^*&\beta^*\end{pmatrix}.

For |ϕ=γ|0+δ|1|\phi\rangle=\gamma|0\rangle+\delta|1\rangle,

ϕ|ψ=γ*α+δ*β.\langle\phi|\psi\rangle=\gamma^*\alpha+\delta^*\beta.

The inner product is linear in its right argument and conjugate-linear in its left. Thus cϕ|ψ=c*ϕ|ψ\langle c\phi|\psi\rangle=c^*\langle\phi|\psi\rangle, and ϕ|ψ=ψ|ϕ*\langle\phi|\psi\rangle=\langle\psi|\phi\rangle^*.

Orthogonality means inner product zero. A suitable measurement can perfectly distinguish orthogonal states. A single copy of a nonorthogonal state cannot be distinguished perfectly from another nonorthogonal alternative with zero error.

For the X basis,

+|=12(0|+1|)(|0|1)=12(10+01)=0.\langle+|-\rangle =\frac12(\langle0|+\langle1|)(|0\rangle-|1\rangle) =\frac12(1-0+0-1)=0.

Both states have equal Z probabilities, but they are distinct orthogonal states. Z is simply the wrong measurement for distinguishing them.

2.4 Interference and phase

Two amplitudes 1/21/2 and 1/21/2 sum to one; two amplitudes 1/21/2 and 1/2-1/2 sum to zero. Their squared sums are one and zero. Such coherent addition must be implemented by a physical transformation; it is not permission to combine probabilities arbitrarily.

Multiplying an entire ket by a global phase changes no measurement probability:

|m|eiχψ|2=|eiχ|2|m|ψ|2=|m|ψ|2.|\langle m|e^{i\chi}\psi\rangle|^2 =|e^{i\chi}|^2|\langle m|\psi\rangle|^2 =|\langle m|\psi\rangle|^2.

A phase attached to only one component is relative and can become visible after a basis change. All states (|0+eiϕ|1)/2(|0\rangle+e^{i\phi}|1\rangle)/\sqrt2 have equal Z probabilities; only ϕ=0\phi=0 gives |+|+\rangle. They occupy different positions around the Bloch sphere’s equator.

Two equal magnitudes with different relative phases. The arrows coincide on the left; on the right they point in opposite directions. A basis change makes this phase difference observable.

2.5 A mixture is not a ket sum

Procedure A prepares |+|+\rangle every time. Procedure B uses a fair classical coin to prepare either |0|0\rangle or |1|1\rangle. Both yield balanced Z results. But A yields X result ++ with certainty, while B yields ++ and - equally often.

This is an operational distinction, not an interpretation dispute. Chapter 6 represents B by averaging density operators. Adding kets with classical probabilities would introduce coherence that the preparation did not create.

A state is also not identical to a complete description of the apparatus. The idealized qubit excludes leakage levels, fields controlling the system, and environmental degrees of freedom. We later incorporate their effect using channels. The simple model is useful because its assumptions can be stated and tested.

Laboratory L02 — State preparation. Edit both complex amplitudes. Inspect the raw norm, normalized vector, complex arrows, and probabilities. Compare coefficients (1,1)(1,1), (1,1)(1,-1), and (1,i)(1,i). Use different bases to distinguish them.

2.6 Exercises

2.1. Find the conjugate, modulus squared, and reciprocal of 3+4i3+4i.

Show solution / guidance

They are 34i3-4i, 25, and (34i)/25(3-4i)/25. Multiply numerator and denominator by the conjugate to obtain the reciprocal.

2.2. Normalize (2i)|0+(1+2i)|1(2-i)|0\rangle+(1+2i)|1\rangle and calculate Z probabilities.

Show solution / guidance

Each coefficient has modulus squared 5. Divide by 10\sqrt{10}; both probabilities are 1/21/2. Keep the complex phases when changing basis.

2.3. Show that β*|0+α*|1-\beta^*|0\rangle+\alpha^*|1\rangle is a normalized orthogonal partner of normalized α|0+β|1\alpha|0\rangle+\beta|1\rangle.

Show solution / guidance

Its norm squared is |β|2+|α|2=1|\beta|^2+|\alpha|^2=1. Its overlap with the original ket is βα+αβ=0-\beta\alpha+\alpha\beta=0.

2.4. Compare (i|0|1)/2(i|0\rangle-|1\rangle)/\sqrt2 with |+i|+i\rangle, and compare |+i|+i\rangle with |i|-i\rangle.

Show solution / guidance

The first is i|+ii|+i\rangle, so only global phase differs. The Y basis pair has overlap (1+(i)(i))/2=0(1+(-i)(-i))/2=0 and is distinguishable in Y.

2.5. Derive |(1+eiϕ)/2|2|(1+e^{i\phi})/2|^2.

Show solution / guidance

Multiply by the conjugate to obtain (2+eiϕ+eiϕ)/4=(1+cosϕ)/2(2+e^{i\phi}+e^{-i\phi})/4=(1+\cos\phi)/2. It ranges from zero at ϕ=π\phi=\pi to one at ϕ=0\phi=0, modulo 2π2\pi.

Further study. An operational, rigorous development of quantum states and measurements is given by Watrous [4].