Math toolkit
Tensor products
Combining qubits: |a⟩⊗|b⟩ as a 4-entry vector
In the app every question checks your answer and explains a wrong one.
Two qubits, four amplitudes
The state of two qubits lives in a 4-dimensional space with basis , in that order. The first label is the top qubit: means the top qubit is in and the bottom one in (kets are column vectors: refresher). If the top qubit is in and the bottom one in , the pair is in the tensor product:
Each entry is “top amplitude times bottom amplitude” for that pair of labels. It’s just the distributive law: expanded, writing as . The questions below use .
Check yourself
Write (top qubit , bottom ).
Hint
- Only basis states whose bottom label is 0 survive.
Show the answer
Answer:
.
Check yourself
Write .
Hint
- Multiply each top amplitude by each bottom amplitude: .
Show the answer
Answer:
.
The factor test. A product state has . So if , the state cannot be a product: it is entangled. (The converse also holds: when the difference is 0, the state factors.)
Check yourself
Is a product state?
- ANo: it is a superposition of all four basis states, so it must be entangled.
- BNo: , so it is entangled.
- CYes: every amplitude has size , like .
Hints
- Read off in that order.
- Compute .
Show the answer
Answer: B. No: , so it is entangled.
, so the state is entangled.
Why not the others
- A. Right verdict, wrong reason. is also a superposition of all four basis states, yet it is a product. The test is , which here is .
- C. Equal sizes are not enough; the signs matter. has all four amplitudes . Here but , so no choice of factors works.
Go further
Free resources for when you want more than this refresher covers.
- Kronecker productWikipedia · Article
The tensor product written out for matrices of any size, with rules such as (A⊗B)(C⊗D) = AC⊗BD.
- Multi-qubit systemsRyan O’Donnell, Carnegie Mellon · Video
A university lecture on states of several qubits and how tensor products build them, at a faster pace than here.
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 6: Many bits: tensor products, CNOT and reversible logicCombine qubits with ⊗, flip bits with CNOT and Toffoli, and see why every gate must be reversible
- 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
- Lesson 8: TeleportationMove an unknown qubit with one Bell pair and two classical bits