Lesson 12 · 55 min · core
Postulate 4: Composite Systems
The fourth postulate says that the state space of a composite system is the tensor product of the state spaces of its parts. This lesson turns that sentence into working rules: local operations and their matrices, the marginal rule , factorisation for product states, no-signalling under local unitaries, and the qubit-ordering conventions (big-endian here, little-endian in Qiskit) with a full 3-qubit bit-reversal table.
Prerequisites: Tensor (Kronecker) Products, Postulate 3: Projective Measurement & the Born Rule
Objectives and key results
Build joint states and local operators with , e.g. write on qubit 0 of two qubits as the matrix .
Compute joint and marginal probabilities with .
Prove that product states have factorising distributions and recognise when a distribution does not factorise.
Convert between the platform's big-endian index and Qiskit's little-endian index by bit reversal.
- definition · Postulate 4 (composite systems)
- formula · Local operation on subsystem A
- theorem · Marginal rule
- theorem · Product states factorise
- identity · Qiskit index by bit reversal
The joint state space and local operations#
A quantum computer is not one qubit but many, and the interesting physics happens between them. Postulates 1–3 describe a single system; the fourth postulate tells us how to describe several at once. Its answer — the tensor product, not the Cartesian product — is the origin of both the exponential size of the state space and of entanglement. The Kronecker machinery was built in the tensor-products lesson; here we attach physical meaning to it: which operators act on one part only, what probabilities an observer who looks at only one part sees, and how the platform numbers the basis states.
Definition
Postulate 4: composite systems
The state space of a composite physical system is the tensor product of the state spaces of its components. If system is prepared in and, independently, system in , the joint state is . For systems, . With orthonormal bases of and of , the vectors form an orthonormal basis of and every joint state is with .
Dimension count and why the product is not a pair
- Step 1:Inner products of product vectors factorise (tensor-products lesson), so the vectors are orthonormal.
- Step 2:An orthonormal basis indexed by all pairs ; by induction, qubits need complex amplitudes.
- Step 3:A description by a pair of vectors would need only amplitudes. For qubits a list of single-qubit vectors has amplitudes versus in the joint space: vs. for ten qubits.
- Step 4:Product vectors form a small subset; the rest (such as the Bell state, proven non-product in the tensor-products lesson) are entangled.
Result
Local unitaries: is unitary and does not change 's statistics
If is unitary on , then is unitary on , it acts on product states as , and for every joint state and every projector on the probability is unchanged by (no-signalling).
Proof (4 steps)
- Step 1:Definition of the tensor product of operators on product vectors.
- Step 2:Adjoint rule and the mixed-product property.
- Step 3:Mixed-product property twice; .
- Step 4:Born rule for 's outcome after the local operation: whatever Alice does to her qubit, Bob's outcome probabilities do not change, so no information is sent.
∎
The matrix of a local gate. With qubit 0 as the left factor, a Hadamard on qubit 0 of a two-qubit register is . Its Kronecker block form is : it mixes index with () and index with () — pairs that differ only in qubit 0 — and leaves the value of qubit 1 untouched. A Hadamard on qubit 1 would instead be , mixing and .
Unitary verified: (max deviation 2.2e-16)
Quick check
Which matrix applies to qubit 1 (the right factor, least significant bit) of a two-qubit register?
Joint and marginal probabilities#
Measuring both qubits of in the computational basis is a projective measurement with projectors , so the joint distribution is by the Born rule. Often only one subsystem is measured — for example the ancilla of a phase-estimation circuit, or the readout qubit of a classifier. What does an observer who looks only at see?
Marginal rule
Measuring only subsystem of in the basis is the projective measurement with , and its outcome probabilities are the marginals of the joint distribution: . The post-measurement state is .
Proof (6 steps)
- Step 1:Adjoint rule, mixed-product property with , and completeness : these are the projectors of a legitimate projective measurement (the observable ).
- Step 2:Resolution of the identity on , then bilinearity of .
- Step 3:Mixed-product property applied to column times row vectors.
- Step 4:Sandwich between and and use .
- Step 5:is the amplitude of ; the Born rule of the joint measurement gives .
- Step 6:; dividing by gives the collapsed state, in which is left in the normalised "conditional state" .
∎
Product states have factorising distributions
If , then for all : with and . The outcomes on and are statistically independent.
Proof (5 steps)
- Step 1:Inner products of product vectors factorise.
- Step 2:Born rule for the joint measurement and multiplicativity .
- Step 3:Marginal rule, Parseval's identity , and normalisation of .
- Step 4:Same computation with the roles of and exchanged.
- Step 5:Combine the second, third and fourth lines.
∎
Worked example: on qubit 0 and on qubit 1
- Step 1:First column of at .
- Step 2:First column of .
- Step 3:The two gates act on different qubits, so the circuit is the local operator acting on the product state .
- Step 4:Bilinearity of ; indices in this order.
- Step 5:Born rule: squared moduli of the four real amplitudes; the sum is .
- Step 6:Marginal rule: sum over the other qubit's bit (rows vs. for qubit 0, columns vs. for qubit 1).
- Step 7:Factorisation, as the proposition guarantees for a product state; the other two entries check the same way.
Result
Circuit · 2 qubits
on qubit 0 and on qubit 1: amplitudes and joint distribution over .
- |00⟩0.375
- |01⟩0.375
- |10⟩0.125
- |11⟩0.125
Quick check
For the joint distribution , what is the probability that qubit 0 reads ?
Qubit-ordering conventions: big-endian vs. Qiskit#
The postulate fixes the space but not how we number its basis vectors. Two conventions are in common use, and mixing them up is the single most frequent bug in quantum software. The platform — simulator, circuit diagrams, labs and this curriculum — puts qubit 0 in the leftmost tensor factor, which makes it the most significant bit of the basis index. Qiskit puts qubit 0 in the rightmost factor (least significant bit).
Conversion by bit reversal
- Step 1:The two index maps for the same assignment of bits to qubits.
- Step 2:Substitute in the Qiskit sum (a relabelling of the summation index).
- Step 3:Read off the coefficient of in each sum.
- Step 4:Bit of equals bit of : reversing the -bit binary word. Reversal is an involution, so the same map converts in both directions.
- Step 5:Converting a statevector permutes amplitudes; for two qubits only indices () and () swap.
- Step 6:The worked example in Qiskit's ordering: the same physics, the middle two probabilities swapped.
Result
Full 3-qubit table. For : and . Rows whose bit string is a palindrome () have ; the other four are swapped in pairs and .
| our index | Qiskit index | Qiskit prints | |
|---|---|---|---|
| 000 | 0 | 0 | 000 |
| 001 | 1 | 4 | 100 |
| 010 | 2 | 2 | 010 |
| 011 | 3 | 6 | 110 |
| 100 | 4 | 1 | 001 |
| 101 | 5 | 5 | 101 |
| 110 | 6 | 3 | 011 |
| 111 | 7 | 7 | 111 |
For example, (only qubit 0 excited) is index here but index in Qiskit, which prints it as the string 001.
Quick check
In a 3-qubit register, qubits 0 and 1 are and qubit 2 is . What is the Qiskit (little-endian) basis index?
Quick check
A lab asks for but your circuit produces . What went wrong?
Check it numerically. The cell builds the worked example with np.kron in the platform's ordering, prints the joint distribution, both marginals, and the Qiskit-ordered distribution obtained by bit reversal.
import numpy as np
t = np.pi / 3
ry = np.array([[np.cos(t / 2), -np.sin(t / 2)], [np.sin(t / 2), np.cos(t / 2)]])
H = np.array([[1, 1], [1, -1]]) / np.sqrt(2)
psi = np.kron(ry @ [1, 0], H @ [1, 0])
p = np.abs(psi) ** 2
print(np.round(p, 4))
P = p.reshape(2, 2)
print(np.round(P.sum(axis=1), 4), np.round(P.sum(axis=0), 4))
rev = [int(format(k, '02b')[::-1], 2) for k in range(4)]
print(np.round(p[rev], 4))Expected output
[0.375 0.375 0.125 0.125] [0.75 0.25] [0.5 0.5] [0.375 0.125 0.375 0.125]
References
- M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, 10th anniversary ed., Cambridge University Press (2010), §2.2.8 (composite systems) and §2.1.7 (tensor products).
- Qiskit documentation, "Bit-ordering in the Qiskit SDK".docs.quantum.ibm.com
- J. Preskill, Lecture Notes for Physics 219: Quantum Computation, Chapter 2 (foundations I: states and ensembles), California Institute of Technology.theory.caltech.edu
Hands-on labs
Build a product-state joint distribution
1 step · auto-gradedOpen labPrepare a product state whose joint distribution is , , using the factorisation and the big-endian ordering (qubit 0 is the leftmost bit).