beginner · Physics · Math Foundations: Linear Algebra
Vector Addition and Scaling
Quantum states live in complex vector spaces, so the two most elementary operations —
vector addition and scalar multiplication — form the backbone of everything that follows.
Vectors in Cn
A vector ∣ψ⟩ in Cn is an ordered list of n complex numbers:
∣ψ⟩=ψ1ψ2⋮ψn,ψk∈C.
For a two-level quantum system (such as a qubit or a spin-21 particle) the state
space is C2, and n=2.
Addition
Adding two vectors means adding their components position by position:
∣ψ⟩+∣ϕ⟩=ψ1+ϕ1ψ2+ϕ2⋮ψn+ϕn.
Each sum ψk+ϕk is an ordinary complex addition: real parts add with real parts,
imaginary parts add with imaginary parts.
Scalar Multiplication
A scalarα∈C stretches (and rotates) a vector:
α∣ψ⟩=αψ1αψ2⋮αψn.
Each product αψk uses the full complex multiplication rule:
(a+bi)(c+di)=(ac−bd)+(ad+bc)i.
Scaling by a phaseeiθ (which has modulus 1) rotates every component in the
complex plane without changing any magnitudes.
Why This Matters for Quantum Mechanics
A superposition of states is literally a scaled sum of vectors. If ∣0⟩ and ∣1⟩
are the two basis vectors of C2:
∣ψ⟩=α∣0⟩+β∣1⟩,α,β∈C,
then α and β are the amplitudes of the superposition. For a normalized state
(one with ∣α∣2+∣β∣2=1) the probability of measuring outcome k is ∣ψk∣2,
so understanding how addition and scaling transform these
amplitudes is essential for predicting measurement probabilities.
Worked Example
Let ∣v⟩=(1+2i3−i) and
∣w⟩=(2−i4i).
Compute i∣v⟩+∣w⟩ component by component.
First component:
i(1+2i)+(2−i)=(i+2i2)+(2−i)=(−2+i)+(2−i)=0.
Second component:
i(3−i)+4i=(3i−i2)+4i=(1+3i)+4i=1+7i.
So i∣v⟩+∣w⟩=(01+7i).
Notice that the first component cancelled exactly to zero — a hint of destructive interference,
the mechanism behind many quantum speed-ups.
Try it
This is a numerical exercise — your code should return a number, not a circuit. Using the
vectors from the worked example, verify that the first component of
i∣v⟩+∣w⟩ has modulus 0.
Run your code to see the quantum state.
Sign in on the full site to ask questions and join the discussion.