Math toolkit
Inner products and bases
⟨φ|ψ⟩, orthogonality, and |⟨φ|ψ⟩|² as a probability
In the app every question checks your answer and explains a wrong one.
Bras and inner products
The bra is the conjugate transpose of the ket : a row vector with every entry conjugated. The inner product is that row times the column :
Two states are orthogonal when . A basis for one qubit is any pair of orthonormal states, such as or , where . Measuring in a basis gives outcome with probability .
Worked example
Measuring |0⟩ in the ± basis
Write the bras: and .
Inner products with : and .
Your turn
So what is the probability of the outcome ?
Show the answer
Answer:
.
Both outcomes are equally likely. is "maximally uncertain" in the ± basis, just as is in the 0/1 basis.
Check yourself
Compute for and .
Hints
- What does the bra look like as a row?
- Conjugate the entries of first: the bra has in its second slot.
- Compute .
Show the answer
Answer:
. Every normalized state has . Forgetting the conjugate would give , which is wrong.
Common slips
- : That skips the conjugate: . The bra has every entry conjugated, so its second entry is .
Change of basis. Because is a basis, every state can be written as , and the coefficients are inner products: , . The worked example above found , so .
Check yourself
Write in the ± basis: . Enter and .
Hints
- Each coefficient is an inner product: and .
- Use the bras and on .
Show the answer
Answer:
and . Check: .
Go further
Free resources for when you want more than this refresher covers.
- Dot products and duality3Blue1Brown · Video
Why the dot product measures how far two vectors line up, and how a row vector acts as a function, as a bra does.
- Basics of quantum information: Inner products and projectionsJohn Watrous, IBM Quantum · Course
Inner products, orthonormal sets and projective measurements in general, a step beyond the one-qubit bases here.
- Bra–ket notationWikipedia · Article
A reference for Dirac notation, including outer products such as |a⟩⟨b| and how operators act on bras.
Lessons that use it
- Lesson 0: Orientation and diagnosticHow the lessons work, five key words, how states are written, and a quick check of the math the lessons assume
- Lesson 2: Phase and the ± basisA global phase changes nothing; a relative phase shows up in another basis
- Lesson 3: The Bloch sphereTwo angles for every qubit state, and why orthogonal means opposite
- Lesson 4: Single-qubit gatesGates as matrices and as turns of the Bloch sphere, and why every gate is unitary
- Lesson 5: Measuring in any basis, and the Stern–Gerlach experimentRewrite the state, then apply the Born rule; an analyzer is a measurement along its axis
- Lesson 7: Entanglement, Bell states and no-cloningStates that don’t split into one ket per qubit, the four Bell states, and why a CNOT can’t copy