beginner · Physics · Math Foundations: Linear Algebra
The Inner Product
What is an inner product?
The inner product (also called the Hermitian inner product or dot product over the complex
numbers) is a way to assign a single complex number to any ordered pair of vectors. For two
column vectors u and v in Cn it is defined as
⟨u,v⟩=k=1∑nukvk,
where uk denotes the complex conjugate of uk. The first argument is conjugated;
the second is not. This asymmetry is deliberate — it is what makes the inner product
conjugate-linear in the first argument and linear in the second.
Why physicists use bra-ket notation
Dirac introduced a compact shorthand. A state vector v is written as a ket∣v⟩; its conjugate transpose is the bra⟨v∣. The inner product of u
with v then becomes the bra-ket
⟨u∣v⟩=u†v,
where † means conjugate transpose. This notation will appear in every quantum-mechanics
context from here on.
Key properties
Four properties follow directly from the definition:
Conjugate symmetry: ⟨u∣v⟩=⟨v∣u⟩.
Linearity in the right argument: ⟨u∣αv+βw⟩=α⟨u∣v⟩+β⟨u∣w⟩.
Positive definiteness: ⟨v∣v⟩≥0, with equality only when ∣v⟩=0.
The norm is real and non-negative: ∥v∥=⟨v∣v⟩∈R≥0.
Property 3 is worth pausing on. Because each term in the sum is vkvk=∣vk∣2≥0,
the total ⟨v∣v⟩ is a sum of real non-negative numbers. Without the conjugation
on the first argument this would fail for complex vectors.
A worked example
Let u=(1+i,2) and v=(3,1−i) in C2. Applying
the definition:
⟨u∣v⟩=(1+i)⋅3+2⋅(1−i).
Conjugating: 1+i=1−i and 2=2. Multiplying out:
(1−i)⋅3=3−3i,2⋅(1−i)=2−2i.
Adding the two terms gives ⟨u∣v⟩=5−5i.
The modulus of this result is
∣⟨u∣v⟩∣=52+(−5)2=50=52≈7.071.
The Cauchy-Schwarz inequality guarantees that ∣⟨u∣v⟩∣≤∥u∥∥v∥, a
bound that will reappear when we discuss measurement probabilities and state overlap.
Connection to quantum mechanics
In quantum mechanics a physical state is represented by a normalised ket ∣ψ⟩ with
⟨ψ∣ψ⟩=1. If the system is in state ∣ψ⟩ and we ask how much
it "overlaps" with another state ∣ϕ⟩, the answer is the inner product
⟨ϕ∣ψ⟩. The Born rule then says that the probability of finding the system
in state ∣ϕ⟩ is ∣⟨ϕ∣ψ⟩∣2. The modulus-squared of an inner
product is therefore the fundamental quantity connecting amplitudes to experimental outcomes.
Try it
This is a numerical exercise — your code should return a number, not a circuit. Using the vectors
u=(1+i,2) and v=(3,1−i), compute the modulus
∣⟨u∣v⟩∣.
Run your code to see the quantum state.
Sign in on the full site to ask questions and join the discussion.