/ quantum course Back to lab
PATHWAY PROGRESS0/27 passed

04 / Mathematical toolkit · LESSON 7 / 27 · 14 MIN

Complex vectors and inner products.

Compute normalization, inner products and orthogonality.

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

q0|0⟩HS

Initialize the register

Every qubit starts in zero.

BasisAmplitudeProbability
|0⟩1.000100.0%

TEST YOURSELF

Lesson quiz

Get all 2 questions right to pass. Retry as often as you like.

0/2 answered

1. What is |i/√2|²?
2. What is ⟨+|−⟩?

Sign in with email or a wallet to check your answers and keep your lesson progress in sync.

Your account

Sign in to pick up your progress on any device.

or

Wallet sign-in uses a free signature (EIP-4361) on whatever EVM network your wallet is on. No gas, no transaction.