04 / Mathematical toolkit · LESSON 7 / 27 · 14 MIN
Complex vectors and inner products.
Compute normalization, inner products and orthogonality.
⟨ψ|ψ⟩ = Σ |aᵢ|² = 1 ⟨0|1⟩ = 0
Conjugate first, then multiply
The bra ⟨ψ| is the conjugate transpose of |ψ⟩, and the conjugate of a = x + iy is x − iy. The inner product ⟨φ|ψ⟩ adds up the conjugated amplitudes of φ times the amplitudes of ψ. For pure states its squared magnitude is the overlap probability.
Orthogonal means distinguishable
|0⟩ and |1⟩ have zero inner product, and so do |+⟩ and |−⟩. Measuring in the matching basis tells orthogonal states apart perfectly, but non-orthogonal states can never be told apart perfectly with a single shot.
Normalizing a complex vector
[1, i]/√2 is normalized, since each component has squared magnitude 1/2; its relative phase is π/2. The vector [1,1] without the 1/√2 factor is not a valid normalized state.
LIVE EXPERIMENT / 1 OF 3
Initialize the register
Every qubit starts in zero.
TEST YOURSELF
Lesson quiz
Get all 2 questions right to pass. Retry as often as you like.
0/2 answered
Sign in with email or a wallet to check your answers and keep your lesson progress in sync.