A single qubit lives in C2. But quantum computing and most of physics involve many
subsystems at once. The tensor product is the rule that combines the Hilbert spaces of individual
parts into the Hilbert space of the whole — and it is where entanglement first appears.
Combining two systems
If system A has Hilbert space HA and system B has HB, the composite system
AB has the tensor-product space
HAB=HA⊗HB.
Dimensions multiply: dim(HA⊗HB)=dimHA⋅dimHB.
Two qubits therefore live in C2⊗C2=C4, and n qubits in
C2n. This exponential growth in dimension is the resource quantum computers exploit.
The product basis
If {∣i⟩A} is a basis for HA and {∣j⟩B} for HB, then the
set of products {∣i⟩A⊗∣j⟩B} is a basis for the composite space. For two qubits
the four basis states are
∣0⟩⊗∣0⟩,∣0⟩⊗∣1⟩,∣1⟩⊗∣0⟩,∣1⟩⊗∣1⟩,
written compactly as ∣00⟩,∣01⟩,∣10⟩,∣11⟩. The leftmost label is qubit 0.
Tensor product of vectors (the Kronecker product)
On column vectors the tensor product is the Kronecker product: each entry of the first vector scales
the entire second vector. For two qubits,
(a0a1)⊗(b0b1)=a0b0a0b1a1b0a1b1.
The four entries are the amplitudes of ∣00⟩,∣01⟩,∣10⟩,∣11⟩ in that order.
Inner products factorize
The inner product on the composite space respects the factor structure:
(⟨a∣⊗⟨b∣)(∣c⟩⊗∣d⟩)=⟨a∣c⟩⟨b∣d⟩.
So orthonormality of the factor bases gives orthonormality of the product basis, and norms multiply for
product states.
Product states versus entangled states
A composite state is a product state if it factorizes as ∣ψ⟩A⊗∣ϕ⟩B.
Not every state does. The general two-qubit state
∣Ψ⟩=c00∣00⟩+c01∣01⟩+c10∣10⟩+c11∣11⟩
factorizes if and only if c00c11=c01c10. When this condition fails, the state is
entangled — it cannot be described as "qubit A is in some state and qubit B is in some state."
The Bell state 21(∣00⟩+∣11⟩) has c00c11=1/2=0=c01c10,
so it is entangled. Entanglement is impossible without the tensor-product structure.
Worked example
The state ∣0⟩⊗∣+⟩ leaves qubit 0 in ∣0⟩ and puts qubit 1 in
∣+⟩=21(∣0⟩+∣1⟩). Taking the Kronecker product,
(10)⊗21(11)=211100=21(∣00⟩+∣01⟩).
This is a product state, prepared by applying H to qubit 1 alone.
Try it
Prepare the product state ∣0⟩⊗∣+⟩=21(∣00⟩+∣01⟩) on two
qubits and return the circuit. The grader checks the full statevector.
Run your code to see the quantum state.
Sign in on the full site to ask questions and join the discussion.