CHAPTER 05
Registers, circuits, and entanglement
Learning goals. Expand tensor products, apply controlled gates, inspect circuit evolution, and distinguish product states from entangled states.
5.1 Tensor products build joint state spaces
For two qubits,
The joint amplitudes multiply for a product preparation. Our vector order is , with on the left. An arbitrary two-qubit pure state is
with . Not every such state factors.
For matrices, replaces each entry of A by the block . Consequently acts on the left qubit and on the right. The dimension doubles per qubit; a general -qubit pure state has complex amplitudes. This is the memory cost of a particular classical representation, not an accessible list of classical data inside a quantum register.
5.2 Controlled operations
A controlled-U with the left qubit controlling is
For CNOT,
A control in superposition does not perform a classical random choice. Linearity applies the correct transformation to each branch while retaining coherence.
Worked Bell preparation. Begin in :
The circuit has two nonzero final amplitudes. Z measurements always agree, with 00 and 11 each occurring half the time.
5.3 How to recognize entanglement
If the state factors, its coefficients obey , hence . Conversely a nonzero coefficient matrix with determinant zero has rank one and factors as an outer product. Therefore a normalized two-qubit pure state is a product state exactly when .
For , , so it is entangled. A useful pure-state measure is concurrence
which ranges from zero for products to one for maximally entangled pairs. This formula does not apply unchanged to a mixed two-qubit state.
The family
is a product at and maximally entangled at . Its Z statistics do not depend on , but correlations in other bases do.
5.4 Measuring part of a register
For , measuring the first qubit gives 0 with probability . The conditioned state is
We sum probabilities over unresolved, orthogonal alternatives. We do not add before squaring because the second-qubit states remain distinguishable.
Worked example. Consider
The norm squared is . Measuring the first qubit yields and . Conditioned on 0, the state is ; conditioned on 1 it is . The conditional probability of right-qubit result 1 in the first branch is , so the joint probability is .
5.5 Circuit semantics
A wire represents a subsystem, not a trajectory. A box is a specified gate; a vertical line connects controls and targets; measurement produces a classical record. Disjoint gates commute, but operations on a common subsystem may not.
The laboratory lets you append gates, remove or reorder operations, step through state-vector evolution, and sample a final computational measurement. A mid-circuit measurement creates a trajectory conditioned on a sampled record. Repeating such a circuit must resample the measurement on each shot. Sampling a single collapsed trajectory repeatedly would give the wrong unconditional distribution.
Classical feed-forward means a recorded bit chooses a later operation. In teleportation, this is essential. Coherently controlling a gate with a qubit and classically controlling it with a measurement result are related but distinct implementations.
Laboratory L06 — Circuit workbench. Build circuits with up to eight qubits. Apply single-qubit, controlled, swap, and measurement operations. Step through the actual amplitudes; change shots and seed; export the circuit. Prepare a Bell state, undo it, then insert a measurement before the undo operation.
5.6 Entanglement does not guarantee computational difficulty
Some highly entangled states have compact descriptions. Bell pairs, GHZ states, and many stabilizer states can be simulated efficiently using specialized classical representations. Entanglement is important, but “entangled” is not synonymous with “beyond classical simulation.” Chapter 16 compares representations and the structures that make each effective.
The same caution applies to qubit counts. A thousand independent qubits may be easier to simulate than a much smaller generic entangled circuit. A useful resource statement must identify state structure, allowed gates, and the required output.
5.7 Exercises
5.1. Expand .
Show solution / guidance
The amplitudes in our order are . The squared moduli are all ; the determinant of the coefficient matrix is zero.
5.2. Is entangled?
Show solution / guidance
, so concurrence is one. Equal measurement probabilities alone do not distinguish it from a product state.
5.3. Calculate CNOT applied to .
Show solution / guidance
CNOT permutes the four equal amplitudes, leaving the state unchanged. A two-qubit entangling gate need not entangle every input.
5.4. Starting with , apply CNOT and then H on the first qubit.
Show solution / guidance
CNOT gives ; H then gives . The Bell-preparation circuit is reversed.
5.5. Explain why a left-qubit measurement probability is , not .
Show solution / guidance
The projector is . The surviving vector is , whose norm has cross terms proportional to on the right subsystem.