BACK TO JUST ENOUGH MATH
03.05/LESSON
BEGINNER10 MIN READ

INNER PRODUCTS: MEASURING "HOW ALIKE" TWO STATES ARE

Generalizing the dot product to complex vectors, and defining orthogonality precisely.

We now have vectors, complex numbers, and matrices. The last major tool before we can fully explain probability (Lesson 9) is a way to answer the question: given two quantum states, how similar or different are they? This question turns out to be the mathematical backbone of the Born rule (Module 1, Lesson 6) in its general form, and of measurement itself (Module 8). The tool that answers it is called the inner product.


Starting with Something Familiar: The Classical Dot Product

If you've taken any linear algebra or done any 3D graphics programming, you may already know the dot product of two ordinary (real-number) vectors: multiply corresponding entries, then add the results.

Worked Example

The dot product is large when two vectors point in similar directions, zero when they're perpendicular, and negative when they point in largely opposite directions — it's a natural measure of "alignment."


Why the Plain Dot Product Isn't Quite Enough for Quantum States

Our qubit vectors can have complex number entries (Lesson 2). If we naively used the plain dot product formula on complex vectors, we could get strange results — for instance, a vector "dotted with itself" could come out negative or even complex, which would make no sense as a measure of "length squared" (recall from Lesson 1 that length should always be a real, non-negative number).

Quantum mechanics fixes this with a small but crucial modification: before multiplying, take the complex conjugate of the first vector's entries. This adjusted version is called the inner product.

Inner Product

For two 2-entry vectors with possibly-complex entries, φ = [φ₁, φ₂] and ψ = [ψ₁, ψ₂] (as columns), the inner product, written ⟨φ|ψ⟩, is defined as:

where the bar means complex conjugate. The reversed "bra" bracket on φ signals that its entries get conjugated; the "ket" ψ is left as-is. Lesson 8 gives this bra/ket notation its full, dedicated treatment.


Fully Worked Examples

Worked Example 1: Inner Product of |0⟩ with Itself

The inner product of any valid, normalized state with itself always equals 1 — this is precisely the normalization condition from Lesson 1, now expressed using the inner product instead of the length formula.

Worked Example 2: Inner Product of |0⟩ and |1⟩

The inner product is exactly zero. States whose inner product is zero are called orthogonal — the quantum equivalent of "completely different, sharing nothing in common." This matches perfect intuition: |0⟩ and |1⟩ sit at opposite poles of the Bloch sphere (Module 1, Lesson 4).

Worked Example 3: Inner Product of |0⟩ and |+⟩

Recall from Lesson 1 that |+⟩ in vector form is .

This value, , is neither 0 (completely different) nor 1 (identical) — it represents a "partial overlap." We'll show in Lesson 9 exactly how this connects to the 50% measurement probability (hint: 0.7071^2 = 0.5).

Worked Example 4: Inner Product Involving Complex Entries — |0⟩ and |i⟩

Recall |i⟩ in vector form is (we'll derive this fully in Lesson 9).

Worked Example 5: A Case Where Conjugation Actually Changes the Answer — |1⟩ and |i⟩

Notice the result is a complex number, 0.7071i — not zero, not one, but a complex value whose modulus (Lesson 2) is |0.7071i| = 0.7071. This is a preview of an important general fact: inner products between quantum states can be complex numbers, and it's typically their modulus (or modulus squared) that ends up mattering physically, exactly the way it will in the Born rule derivation in Lesson 9.


Orthogonality, Formally Defined

Orthogonal States

Two quantum states |φ⟩ and |ψ⟩ are called orthogonal if their inner product is exactly zero: ⟨φ|ψ⟩ = 0. Geometrically, orthogonal single-qubit states sit at exactly opposite points on the Bloch sphere (antipodal points) — like |0⟩ and |1⟩, or like |+⟩ and |−⟩. Orthogonal states are "perfectly distinguishable" by a suitably chosen measurement, a fact that becomes central to Module 8's treatment of measurement.

Worked Example 6: Confirming |+⟩ and |−⟩ Are Orthogonal

Recall and .

Confirmed orthogonal — exactly matching Module 1, Lesson 5's fact that |+⟩ and |−⟩ sit at opposite points on the equator.


Practice Questions

Test your understanding


KEY TAKEAWAYS

Remember these points

The inner product generalizes the classical dot product to complex vectors by conjugating the first vector's entries before multiplying and summing

The inner product of a state with itself equaling 1 is the formal statement of "normalized" -- matching the length-1 requirement from Lesson 1

Two states are orthogonal (completely distinguishable) exactly when their inner product equals zero -- geometrically, this means they sit at opposite points on the Bloch sphere

Inner products between quantum states can be complex numbers in general; it's usually their modulus (or modulus squared) that carries physical meaning, as we'll see fully in Lesson 9

The bra notation used here is a preview -- Lesson 8 gives Dirac notation its full, dedicated treatment