If you built anything in Ch. 3's two-qubit circuit widgets, you've already seen this sentence: "a tensor/Kronecker product, see Ch. 5." Here's the payoff. Every single-qubit gate you dragged onto one wire while leaving the other wire alone got silently expanded into a 4×4 matrix behind the scenes. This chapter is exactly how that expansion works, by hand.
Why two qubits need a new operation
A single qubit's state lives in a 2-entry vector. Naively, you might guess two qubits together need a 2+2 = 4-entry vector. They don't — they need 2×2 = 4. Combining independent systems multiplies dimensions, not adds them, and the operation that does this combining is the tensor product, written ⊗.
The Kronecker product of two vectors
For two 2-entry vectors a = (a₁,a₂) and b = (b₁,b₂), a⊗b stacks every possible pairwise product into a single 4-entry vector:
This is where |00⟩, |01⟩, |10⟩, |11⟩ actually come from
Click the preset buttons above. |0⟩⊗|1⟩ gives (0,1,0,0) — index 1, which is exactly the |01⟩ row you watched light up in Ch. 3's probability charts. None of those four basis states were ever a separate definition; each one is just |0⟩ or |1⟩ tensored with |0⟩ or |1⟩, computed exactly the way Fig. 5.1 just computed it.
The Kronecker product of two matrices
Matrices tensor the same way, just with more entries. For 2×2 matrices A and B, A⊗B is a 4×4 matrix built by replacing every entry of A with that entry times the entire matrix B:
Why CNOT can't be built this way
Try to find an A and B in Fig. 5.2 whose tensor product gives CNOT. You can't — and that's not a failure of the widget, it's the actual mathematical fact that makes CNOT special. CNOT is a genuinely 2-qubit operation that cannot be factored into "something happening to q1" ⊗ "something happening to q0." Composer's gate inspector mentioned this back in Ch. 3: CNOT's "control depends on the other qubit's value" behavior is precisely the kind of correlation a tensor product structurally cannot represent — which is exactly why CNOT (and not any single-qubit gate combination) is the gate that creates entanglement.
- TextbookNielsen & Chuang, §2.1.7The formal tensor product definition this chapter builds intuition for.
- ToolNumPy docs — kronReference for the function used in Fig. 5.3's code cell.
- ArticleWikipedia — Kronecker productGood reference for the general n×n case beyond the 2×2 examples here.