Mathematical foundations

Vectors, norms, and inner products

Represent a quantum state as coordinates and compute its overlap with a basis.

18 minFoundations

Intuition

A vector represents a combination of basis directions. A quantum state vector uses complex coordinates in an orthonormal basis. The computational basis of a qubit has two directions, labeled |0⟩ and |1⟩.

The inner product compares two directions. A bra is formed from a ket by transposing and conjugating. When the bra is a computational basis vector, the inner product selects the corresponding amplitude.

Learning objectives

  • Read bra-ket notation
  • Normalize a complex vector
  • Compute an inner product with conjugation

Interactive exploration

Use the controls to change the state and see its calculated readout. You can return to this experiment as you work through the derivation.

State geometry

Drag or use arrow keys
+x+y|0⟩|1⟩|ψ⟩

Qubit controls

|ψ⟩
60°
35°
90°
|ψ⟩ = (0.866)|0⟩ + (0.410 + 0.287i)|1⟩
P(0)75%
P(1)25%

Mathematical foundation

For coordinates u and v, conjugate the coordinates of the first vector. This convention makes the inner product of a vector with itself real and nonnegative.

⟨u∣v⟩=∑juj∗vj,∥v∥=⟨v∣v⟩\langle u|v\rangle=\sum_j u_j^*v_j,\qquad \|v\|=\sqrt{\langle v|v\rangle}

Divide a nonzero vector by its norm. In the resulting vector, squared amplitudes sum to one.

∣ψ⟩=∣v⟩∥v∥|\psi\rangle=\frac{|v\rangle}{\|v\|}

Worked example

For coordinates (1, i), each term contributes one to the squared norm. After dividing by √2 the coordinates have equal magnitude and a relative phase of π/2.

∣ψ⟩=∣0⟩+i∣1⟩2,⟨1∣ψ⟩=i2|\psi\rangle=\frac{|0\rangle+i|1\rangle}{\sqrt{2}},\quad \langle1|\psi\rangle=\frac{i}{\sqrt{2}}

Guided experiment

Set θ and φ to 90°. Compare the displayed coordinates with the worked example. Drag the sphere and verify that the coordinate values stay fixed.

Go to the controls
Compare with the expected result

Camera motion changes your perspective. Changing a state parameter changes the actual amplitudes.

Understanding check

1. Which bra corresponds to a ket with coordinates (1, i)/√2?
2. What is the norm of a vector with coordinates (0, 2i)?

Next steps

Want to keep your results? Start your learning journey

Open Bloch Sphere