Level 0 · Math Foundations
Multi-Qubit Systems and Tensor Products
About 4,625 words · roughly 21 minute read · sources checked December 2, 2026
One qubit is easy to picture. Real quantum computers use many, and the way their descriptions combine is the most important structural fact in the field. Two qubits are not described by two separate sets of amplitudes. They are described by one joint set, and the number of amplitudes doubles with every qubit you add. That doubling is the reason quantum computers are hard to simulate, and the existence of joint states that cannot be split apart is what we call entanglement.
The tool that combines systems is the tensor product. This lesson introduces it for vectors and for matrices, works through the two-qubit case in complete detail, and then scales it up. You need the first two lessons in this level: complex vectors, inner products, unitary matrices and the single-qubit state.
A word on honesty about the exponential. The statement that n qubits hold 2ⁿ amplitudes is correct. The popular claim that a quantum computer therefore tries every answer at once is not. You will see exactly why not in the section on measurement.
What you will learn
- How to form the tensor (Kronecker) product of two vectors and two matrices, by hand.
- How multi-qubit basis states are labelled and ordered.
- How to tell a product state from an entangled one with a one-line test.
- How CNOT and Hadamard create a Bell pair, computed step by step.
- How measuring part of a system updates the rest.
- Where the exponential memory cost of simulation comes from, with real numbers.
Helpful first: Linear Algebra for Quantum Computing, The Math of a Qubit.
From one qubit to many
A classical register of two bits is just two independent bits. You can describe it by listing each bit separately. A natural first guess is that two qubits work the same way: give each one its own pair of amplitudes. That guess fails, and the reason is the whole point of this lesson.
Two qubits can be in states where neither qubit has a state of its own. The only complete description is a single list of four amplitudes, one for each joint outcome 00, 01, 10 and 11. When the qubits happen to be unrelated, this list can be built from two single-qubit descriptions. When they are related by entanglement, it cannot.
The key idea
Systems are combined by the tensor product. The state space of n qubits has dimension 2ⁿ, not 2n. That exponential, not any single mysterious effect, is why quantum states are expensive to store and why quantum computers can in principle do things classical ones cannot.
The tensor product of vectors
Given a vector u = (u₀, u₁) for one qubit and v = (v₀, v₁) for another, their tensor product u ⊗ v is the four-entry vector formed by multiplying every entry of u with every entry of v, in a fixed order:
u ⊗ v = (u₀v₀, u₀v₁, u₁v₀, u₁v₁)ᵀ
Worked example
Compute |0⟩ ⊗ |1⟩ and |+⟩ ⊗ |0⟩
- |0⟩ ⊗ |1⟩ = (1, 0) ⊗ (0, 1) = (1·0, 1·1, 0·0, 0·1) = (0, 1, 0, 0). This is the basis state |01⟩.
- |+⟩ ⊗ |0⟩ = (1/√2)(1, 1) ⊗ (1, 0) = (1/√2)(1, 0, 1, 0), which is (|00⟩ + |10⟩)/√2.
- Both results have squared length 1, so they are valid two-qubit states.
Physicists write |0⟩ ⊗ |1⟩ in several shortened ways: |0⟩|1⟩, |0, 1⟩ and |01⟩ all mean the same thing. The shortened forms are convenient but remember that they hide a tensor product.
Rules that make it manageable
- Dimensions multiply: a d₁-dimensional vector tensored with a d₂-dimensional vector gives a d₁d₂-dimensional vector.
- It is linear in each factor: (αu + βw) ⊗ v = α(u ⊗ v) + β(w ⊗ v).
- Lengths multiply, so the tensor product of two normalised states is normalised: ‖u ⊗ v‖ = ‖u‖‖v‖.
- Inner products multiply: ⟨u ⊗ v | u' ⊗ v'⟩ = ⟨u|u'⟩⟨v|v'⟩.
- It is not commutative as an arrangement of numbers: u ⊗ v and v ⊗ u are different vectors, though they differ only by relabelling the qubits.
Labelling the basis
The four tensor products of basis states form the standard basis of the two-qubit space: |00⟩, |01⟩, |10⟩ and |11⟩. They are the four unit vectors in the order in which the binary numbers 0, 1, 2 and 3 count. With three qubits there are eight, labelled by the binary numbers 000 to 111, and so on.
| Label | Binary value | Column vector position |
|---|---|---|
| |00⟩ | 0 | 1st entry is 1, others 0 |
| |01⟩ | 1 | 2nd entry is 1 |
| |10⟩ | 2 | 3rd entry is 1 |
| |11⟩ | 3 | 4th entry is 1 |
Two-qubit basis in the usual ordering. The leftmost bit belongs to the first qubit.
Check the ordering convention in your software
Textbooks usually write the first qubit on the left. Some software, including Qiskit, labels bit strings with the first qubit on the right. A circuit that prepares |01⟩ in one convention prints as |10⟩ in the other. When results look mirrored, this is almost always the cause.
A general two-qubit state is a combination of the four basis states with four amplitudes: |ψ⟩ = c₀₀|00⟩ + c₀₁|01⟩ + c₁₀|10⟩ + c₁₁|11⟩, normalised so that |c₀₀|² + |c₀₁|² + |c₁₀|² + |c₁₁|² = 1. Measuring both qubits in the standard basis gives outcome xy with probability |cₓᵧ|².
Operations on several qubits
Matrices combine in the same way as vectors. The tensor product of a matrix A and a matrix B is the block matrix in which every entry of A is replaced by that entry times B.
A ⊗ B = [ a₀₀B a₀₁B ]
[ a₁₀B a₁₁B ]The defining property is that a tensor product of operations acts on a tensor product of states factor by factor: (A ⊗ B)(u ⊗ v) = (Au) ⊗ (Bv). This is the mathematical statement that a gate on qubit 1 and a different gate on qubit 2 acting at the same time do not interfere with one another.
Worked example
X on the first qubit only: X ⊗ I
- X ⊗ I = [[0·I, 1·I], [1·I, 0·I]] = the 4×4 matrix that swaps the first two entries with the last two.
- Applied to |00⟩ = (1, 0, 0, 0) it gives (0, 0, 1, 0) = |10⟩: the first bit flipped, the second untouched.
- To act on only one qubit of a larger system, tensor the gate with identity matrices on all the other qubits.
Worked example
Hadamard on both qubits: H ⊗ H applied to |00⟩
- Because (A ⊗ B)(u ⊗ v) = Au ⊗ Bv, we get H|0⟩ ⊗ H|0⟩ = |+⟩ ⊗ |+⟩.
- Expand: (1/√2)(|0⟩ + |1⟩) ⊗ (1/√2)(|0⟩ + |1⟩) = ½(|00⟩ + |01⟩ + |10⟩ + |11⟩).
- Every outcome has amplitude ½ and probability ¼. With n qubits the same step gives an equal superposition of all 2ⁿ strings, each with amplitude 1/√(2ⁿ). This is the starting move of Grover's and many other algorithms.
Not every operation on two qubits is a tensor product of single-qubit operations. Gates that make qubits interact, such as CNOT, are matrices on the joint space that cannot be factored. They are the operations that can create entanglement.
Product states and entangled states
A state that can be written as u ⊗ v is a product state. In a product state each qubit has its own definite state, and measuring one tells you nothing about the other. The surprising fact is that most two-qubit vectors cannot be written this way. A vector that cannot is called entangled.
A one-line test for two qubits
Place the amplitudes in a grid with rows labelled by the first qubit and columns by the second. If the state is u ⊗ v, then c₀₀ = u₀v₀, c₀₁ = u₀v₁, c₁₀ = u₁v₀ and c₁₁ = u₁v₁. Multiplying diagonally gives c₀₀c₁₁ = u₀v₀u₁v₁ = c₀₁c₁₀. So a two-qubit state is a product state only if
c₀₀ · c₁₁ = c₀₁ · c₁₀
Worked example
Test two states
- State 1: ½(|00⟩ + |01⟩ + |10⟩ + |11⟩). Here c₀₀c₁₁ = ¼ and c₀₁c₁₀ = ¼. They are equal, so it is a product state, namely |+⟩|+⟩.
- State 2: (|00⟩ + |11⟩)/√2. Here c₀₀c₁₁ = ½ while c₀₁c₁₀ = 0. They differ, so no factorisation exists. This is the Bell state |Φ⁺⟩ and it is entangled.
- Reasoning check: if |Φ⁺⟩ were u ⊗ v, we would need u₀v₁ = 0 so u₀ = 0 or v₁ = 0. Either choice also kills c₀₀ or c₁₁, which contradicts both being non-zero.
The test works only for two qubits and pure states. For more qubits, and for mixed states, detecting and quantifying entanglement takes more machinery, such as the Schmidt decomposition and entropy of entanglement, which the entanglement lessons develop.
What entanglement is, precisely
An entangled state is one that cannot be written as a tensor product of states of its parts. It is a statement about the structure of a vector in a tensor-product space, and nothing more mysterious is needed to define it. What makes it remarkable is what the correlations between the parts allow when measured in different bases.
CNOT and building a Bell pair
The controlled-NOT gate acts on two qubits. It flips the second qubit (the target) if and only if the first qubit (the control) is 1. In the standard basis ordering its matrix is
CNOT = [ 1 0 0 0 ]
[ 0 1 0 0 ]
[ 0 0 0 1 ]
[ 0 0 1 0 ]This matrix is a permutation, so it is unitary. It also cannot be written as A ⊗ B for any 2×2 matrices A and B, which is why it can create entanglement. Together with single-qubit gates it forms a universal set, meaning enough to build any other operation to arbitrary accuracy.
Worked example
Make a Bell pair: H on qubit 1, then CNOT
- Start in |00⟩.
- Apply H to the first qubit, which means applying H ⊗ I: the state becomes (|0⟩ + |1⟩)/√2 ⊗ |0⟩ = (|00⟩ + |10⟩)/√2.
- Apply CNOT. |00⟩ stays |00⟩ because the control is 0. |10⟩ becomes |11⟩ because the control is 1 and the target flips.
- Result: (|00⟩ + |11⟩)/√2. By the test above, this is entangled.
- This two-gate circuit is the standard way to prepare a maximally entangled pair, and it is the first step of teleportation and many protocols.
| Input | After H on qubit 1 | After CNOT (Bell state) |
|---|---|---|
| |00⟩ | (|00⟩ + |10⟩)/√2 | (|00⟩ + |11⟩)/√2 = |Φ⁺⟩ |
| |01⟩ | (|01⟩ + |11⟩)/√2 | (|01⟩ + |10⟩)/√2 = |Ψ⁺⟩ |
| |10⟩ | (|00⟩ − |10⟩)/√2 | (|00⟩ − |11⟩)/√2 = |Φ⁻⟩ |
| |11⟩ | (|01⟩ − |11⟩)/√2 | (|01⟩ − |10⟩)/√2 = |Ψ⁻⟩ |
The same two-gate circuit turns the four basis states into the four Bell states, which form an orthonormal basis of entangled states.
Measuring part of a system
Usually you measure only some of the qubits. The rule is natural. Look at which basis states are consistent with each result, add up their squared amplitudes for the probability, and then keep only those components, rescaled so the state is again normalised.
Worked example
Measure the first qubit of (|00⟩ + |01⟩ + |10⟩)/√3
- Group the terms by the first qubit: |0⟩(|0⟩ + |1⟩)/√3 + |1⟩|0⟩/√3.
- P(first = 0) = (1 + 1)/3 = 2/3. The leftover state is (|0⟩ + |1⟩)/√2, since the two surviving terms are equal and renormalising divides by √2.
- P(first = 1) = 1/3. The leftover state is |0⟩.
- Check: 2/3 + 1/3 = 1.
Worked example
Measure one half of a Bell pair
- (|00⟩ + |11⟩)/√2. Measuring the first qubit gives 0 or 1, each with probability ½.
- If you saw 0, the state collapses to |00⟩. If you saw 1, it collapses to |11⟩.
- In both cases the second qubit is now definitely equal to the first. Before the measurement, neither qubit had a definite value.
Why the exponential is not 'trying everything at once'
A state of n qubits holds 2ⁿ amplitudes, but measuring it returns just n classical bits, one string out of the 2ⁿ, chosen at random with the squared amplitudes as weights. A quantum algorithm is useful only if interference concentrates the probability on the right answers before measurement. Speed-ups come from clever amplitude arrangement, not from reading out an exponential list.
For a product state, measuring one factor does not change the other, which is what you would expect from independent systems. For an entangled state, the outcome probabilities of the two parts are correlated. Crucially, though, the individual outcomes remain random, so entanglement alone cannot be used to send a message faster than light.
Why the numbers explode
Adding one qubit doubles the number of amplitudes. A classical computer that wants to track the state exactly must store every one of them.
| Qubits n | Amplitudes 2ⁿ | Memory at 16 bytes per amplitude |
|---|---|---|
| 10 | 1,024 | 16 KB |
| 20 | 1,048,576 | about 16.8 MB |
| 30 | 1,073,741,824 | about 17.2 GB |
| 40 | about 1.1 × 10¹² | about 17.6 TB |
| 50 | about 1.1 × 10¹⁵ | about 18 PB |
Memory assumes one double-precision complex number (two 8-byte floats, 16 bytes) per amplitude. Real simulators use tricks, but the exponential trend remains.
This is the cost of brute-force simulation. It is not a proof that quantum computers are more powerful than classical ones, because many quantum states are far easier to describe than their raw length suggests. Stabiliser circuits, which include the Bell-pair circuit above, can be simulated efficiently on a classical computer. Tensor-network methods handle states with limited entanglement. The honest statement is that states with a lot of entanglement and circuits with enough non-Clifford gates seem to resist all known efficient classical methods, and that is where hopes for advantage live.
Notice also what grows. The number of parameters of a state grows exponentially, but the number of gates in a useful algorithm is polynomial. The art of quantum algorithm design is to steer an exponentially large state to a useful answer using a polynomial number of steps.
Operators on many qubits: Pauli strings and parity
Once you can tensor matrices, you can build operators that act on any number of qubits at once. A particularly useful family is made of Pauli strings: a tensor product with one Pauli matrix or identity on each qubit, such as X ⊗ I ⊗ Z or Z ⊗ Z. They are the building blocks of observables, error-correcting codes and the Hamiltonians studied in chemistry.
Two rules do almost all of the work. First, tensor products compose factor by factor: (A ⊗ B)(C ⊗ D) = AC ⊗ BD. Second, the dagger distributes the same way: (A ⊗ B)† = A† ⊗ B†. Because each Pauli matrix is Hermitian and unitary, every Pauli string is also both.
Worked example
What does Z ⊗ Z measure?
- Z ⊗ Z multiplies a basis state |ab⟩ by (−1)^a · (−1)^b = (−1)^(a+b).
- So |00⟩ and |11⟩ have eigenvalue +1, while |01⟩ and |10⟩ have eigenvalue −1.
- Z ⊗ Z therefore measures the parity of the two bits: whether they are equal or different, without revealing either bit. The Bell state (|00⟩ + |11⟩)/√2 is an eigenstate with eigenvalue +1, so measuring parity on it always gives +1.
Worked example
X ⊗ X on the Bell state
- X ⊗ X swaps |00⟩ with |11⟩ and |01⟩ with |10⟩.
- Applied to (|00⟩ + |11⟩)/√2 it gives (|11⟩ + |00⟩)/√2, the same state. So the Bell state is also an eigenstate of X ⊗ X with eigenvalue +1.
- A single state that is certain about both Z ⊗ Z and X ⊗ X is possible because the two operators commute, even though the individual factors Z and X on one qubit do not.
That last observation is the entry point to stabiliser codes. The Bell state is defined by the pair of commuting operators Z ⊗ Z and X ⊗ X. Two Pauli strings commute if they differ in an even number of positions where both are non-identity and different. The Z ⊗ Z and X ⊗ X strings differ in two positions, so they commute. Z ⊗ I and X ⊗ I differ in one, so they anticommute.
| String pair | Positions where they differ (both non-identity) | Commute? |
|---|---|---|
| Z ⊗ Z and X ⊗ X | 2 | Yes |
| Z ⊗ I and X ⊗ I | 1 | No (anticommute) |
| Z ⊗ Z and X ⊗ I | 1 | No (anticommute) |
| X ⊗ Z and Z ⊗ X | 2 | Yes |
A quick rule for Pauli strings. Count the qubits where the two strings carry different non-identity Paulis.
Three qubits: the GHZ and W states
With two qubits, the entangled states are all of one kind, equivalent to the Bell state under operations on each qubit separately. With three the picture changes: there are two genuinely different kinds of three-way entanglement, and the two most famous examples are the GHZ and W states.
|GHZ⟩ = (|000⟩ + |111⟩)/√2 |W⟩ = (|001⟩ + |010⟩ + |100⟩)/√3
GHZ is named for Greenberger, Horne and Zeilinger. It is the three-qubit relative of the Bell state, and it is all-or-nothing: the three qubits are either all 0 or all 1. Measuring any one of them immediately fixes the other two.
The W state is a superposition of exactly one excitation spread over three places. Measuring one qubit and finding 1 leaves the other two in |00⟩. Finding 0 leaves them in (|01⟩ + |10⟩)/√2, which is still entangled.
They behave differently when a qubit is lost
Suppose you lose one of the three qubits, which in the lab happens when a photon is absorbed or an atom is ejected. For GHZ, the remaining two qubits end up in a classical mixture of |00⟩ and |11⟩, with no entanglement left. For W, the remaining two qubits stay entangled; Dür, Vidal and Cirac showed that W retains the strongest possible two-qubit entanglement when any one qubit is traced out. GHZ is fragile to the loss of one part, and W is more robust, even though both entangle all three qubits.
Worked example
Verify that the GHZ state fails the product test
- Group the three qubits as the first qubit versus the other two. Write the amplitudes as a 2 × 4 grid with rows 0 and 1 and columns 00, 01, 10, 11.
- Row 0 is (1/√2, 0, 0, 0) and row 1 is (0, 0, 0, 1/√2). The two rows are not proportional, so the state cannot be written as a single qubit times a pair of qubits.
- The same test works for every split of the three qubits, so GHZ is entangled across all cuts.
These states are useful in different ways. GHZ states give the sharpest sensitivity for certain precision measurements and are standard benchmarks for hardware, since preparing one on n qubits requires coherent control of all of them. W states appear in some distributed protocols where robustness to loss matters.
Looking at part of an entangled state
Suppose two qubits are entangled and you look at only one. What state is that one in? The answer is not a state vector at all. It is a density matrix, obtained by a procedure called the partial trace, which averages over everything you are ignoring.
There is a practical shortcut for pure two-qubit states. Arrange the amplitudes in the 2 × 2 grid you used for the product test and treat it as a matrix C. The reduced density matrix of the first qubit is C C†, and of the second it is the transpose of C† C in the same convention. You do not need the general formula to use the idea.
Worked example
Reduced state of one half of a Bell pair
- For (|00⟩ + |11⟩)/√2 the grid is C = (1/√2)·[[1, 0], [0, 1]].
- C C† = (1/2)·[[1, 0], [0, 1]] = I/2.
- So each half of the pair is in the maximally mixed state, a point at the very centre of the Bloch sphere. The pair as a whole is in a pure state, but each part alone looks completely random.
Worked example
Reduced state of a product state
- For |+⟩ ⊗ |0⟩ the grid is C = (1/√2)·[[1, 0], [1, 0]].
- C C† = (1/2)·[[1, 1], [1, 1]], which equals |+⟩⟨+|, a pure state.
- A pure reduced state means no entanglement with the rest. The reduced state is pure exactly when the global state is a product.
This gives a quantitative measure of entanglement for pure two-qubit states. If the reduced state has Bloch vector length 1 the qubits are unentangled. If the length is 0 they are maximally entangled. Between these extremes the entropy of the reduced state gives a number in bits, called the entanglement entropy.
Worked example
Entanglement entropy of cos θ |00⟩ + sin θ |11⟩
- The reduced state of either qubit is diag(cos²θ, sin²θ). Its entropy is −cos²θ log₂ cos²θ − sin²θ log₂ sin²θ.
- For θ = 0 the entropy is 0 (a product state). For θ = π/4 it is 1 bit (a Bell state). For θ = π/6, cos²θ = 0.75 and the entropy is about 0.811 bits.
- Entropy of 1 bit means one full unit of entanglement, which is the resource consumed by one teleportation.
The connection to simulation cost
A state with little entanglement across a cut can be stored using far fewer numbers than 2ⁿ, which is why tensor-network methods succeed on weakly entangled systems. Strong entanglement across many cuts is what defeats them. The reduced-state entropy you just computed is the quantity those methods are tracking.
Counting parameters: product states versus general states
You can feel the size of entanglement by counting how many numbers are needed. A product state of n qubits is described by n independent single-qubit states. Each needs two real numbers (the two Bloch angles), so a product state needs only 2n real parameters.
A general state of n qubits has 2ⁿ complex amplitudes, which is 2ⁿ⁺¹ real numbers. Normalisation removes one and global phase removes another, leaving 2ⁿ⁺¹ − 2.
| Qubits n | Product states 2n | General states 2ⁿ⁺¹ − 2 |
|---|---|---|
| 2 | 4 | 6 |
| 3 | 6 | 14 |
| 10 | 20 | 2,046 |
| 20 | 40 | about 2.1 million |
| 50 | 100 | about 2.25 × 10¹⁵ |
Real parameters needed to specify a pure state. The gap between the columns is the room that entanglement occupies.
The first row matches what we found earlier: two product qubits need four numbers, but a general two-qubit state needs six. The extra two numbers, in a sense, are the entanglement. For 50 qubits the gap is a factor of about 2 × 10¹³, which is why almost all quantum states are entangled and why describing a typical one is impossible for a classical machine.
This also puts a caution on language. Most states in the full space are enormously entangled and cannot be prepared by short circuits. The states quantum algorithms actually visit lie in a thin sliver of the space, reached by a polynomial number of gates. Entanglement is necessary for algorithms that beat classical ones, as far as we know, but it is not sufficient. Stabiliser circuits generate lots of entanglement and remain classically easy.
Controlled gates and phase kickback
A controlled gate applies an operation to a target qubit only when a control qubit is |1⟩. CNOT is the controlled-X. Another is the controlled-Z (CZ), which flips the sign of the |11⟩ amplitude and does nothing to the other three basis states. CZ is symmetric: swapping the roles of control and target gives the same matrix, diag(1, 1, 1, −1).
In the standard picture, the control is untouched and the target is changed. Phase kickback is a surprising reversal that appears whenever the target is in an eigenstate of the gate. In that case the target is unchanged, and the eigenvalue is passed back to the control as a phase.
Worked example
Phase kickback with CNOT
- Take the control in |+⟩ and the target in |−⟩. Note that X|−⟩ = −|−⟩, so |−⟩ is an eigenstate of X with eigenvalue −1.
- CNOT acts as: control 0 does nothing; control 1 applies X to the target. The input is (|0⟩ + |1⟩)/√2 ⊗ |−⟩.
- The output is (|0⟩|−⟩ + |1⟩X|−⟩)/√2 = (|0⟩ − |1⟩)/√2 ⊗ |−⟩ = |−⟩ ⊗ |−⟩.
- The target is unchanged, but the control flipped from |+⟩ to |−⟩. The eigenvalue −1 was kicked back onto the control as a relative phase.
This looks like a curiosity, but it is the mechanism behind quantum phase estimation, and therefore behind Shor's algorithm. To read out an eigenvalue e^(2πiφ) of a unitary U, you place a control qubit in |+⟩ and the target in an eigenstate of U, apply controlled-U, and the phase e^(2πiφ) appears on the control. Interference then turns that phase into a measurable number.
Why the mental model matters
It is tempting to think of control as one-way information flow. In quantum mechanics, the gate acts on the joint state, and which qubit is called the control depends on the basis in which you look. Applying H to both qubits before and after a CNOT reverses their roles: H ⊗ H · CNOT · H ⊗ H equals a CNOT with control and target swapped.
Worked problems
Worked example
Problem 1: Compute (H ⊗ X)|01⟩
- (H ⊗ X)|0⟩|1⟩ = H|0⟩ ⊗ X|1⟩ = |+⟩ ⊗ |0⟩.
- As a vector this is (1/√2)(|00⟩ + |10⟩). The first qubit was put in a superposition, and the second flipped from 1 to 0.
Worked example
Problem 2: Is (|00⟩ + |01⟩ + |10⟩ − |11⟩)/2 entangled?
- The amplitudes are c₀₀ = ½, c₀₁ = ½, c₁₀ = ½ and c₁₁ = −½.
- c₀₀c₁₁ = −¼ while c₀₁c₁₀ = +¼. They are unequal, so the state is entangled.
- This is the state produced by applying CZ to |+⟩|+⟩, which makes sense: CZ flips the sign of |11⟩ and creates entanglement from a product state.
Worked example
Problem 3: Build all four Bell states from the circuit H then CNOT
- Use the earlier table: inputs |00⟩, |01⟩, |10⟩, |11⟩ give Φ⁺, Ψ⁺, Φ⁻, Ψ⁻ respectively.
- A good check: Φ⁺ has c₀₀ = c₁₁ and zero elsewhere, and Ψ⁻ = (|01⟩ − |10⟩)/√2 has opposite signs on its two terms.
Worked example
Problem 4: Measure the second qubit of (|00⟩ + |01⟩ + |10⟩)/√3
- Group by the second qubit: (|0⟩ + |1⟩)|0⟩/√3 + |0⟩|1⟩/√3.
- P(second = 0) = 2/3. The first qubit is left in |+⟩.
- P(second = 1) = 1/3. The first qubit is left in |0⟩.
- Compare with the earlier example where the first qubit was measured: the probabilities are the same (2/3, 1/3), but the leftover states are different.
Worked example
Problem 5: How many real numbers describe a general 5-qubit pure state?
- 2⁵⁺¹ − 2 = 64 − 2 = 62, compared with 2 × 5 = 10 for a product state.
Common mistakes
- Writing the joint state as a pair of single-qubit states when it is entangled. Always test with c₀₀c₁₁ = c₀₁c₁₀.
- Mixing up the ordering of qubits between a textbook and software.
- Applying a one-qubit gate to a two-qubit state without tensoring with the identity. The gate must be a 4×4 matrix to act on a 4-entry vector.
- Treating the tensor product as ordinary multiplication. It is not commutative and it is not the same as matrix multiplication.
- Believing that 2ⁿ amplitudes means 2ⁿ parallel computations whose answers you can read out.
- Assuming that all large circuits are hard to simulate. Some, such as stabiliser circuits, are easy.
Test yourself
Check yourself
Compute |1⟩ ⊗ |+⟩ as a four-entry vector.
(0, 1) ⊗ (1/√2)(1, 1) = (1/√2)(0, 0, 1, 1), which is (|10⟩ + |11⟩)/√2.
Is (|01⟩ + |10⟩)/√2 entangled?
Yes. c₀₁c₁₀ = ½ and c₀₀c₁₁ = 0, so the product test fails. This is the Bell state |Ψ⁺⟩.
What does Z ⊗ Z do to |01⟩?
It multiplies |01⟩ by (+1)(−1) = −1, because Z gives +1 on a 0 and −1 on a 1. The result is −|01⟩.
How many amplitudes does a 12-qubit state have?
2¹² = 4,096.
Apply CNOT (first qubit as control) to (|0⟩ + |1⟩)(|0⟩ + |1⟩)/2.
The input is a product state |+⟩|+⟩. CNOT sends |10⟩ to |11⟩ and |11⟩ to |10⟩, so the sum of all four terms is unchanged: the output is the same product state. A control in |+⟩ does not entangle if the target is also in |+⟩.
Why can't measuring one half of a Bell pair be used to send a message?
Each side sees uniformly random results regardless of what the other does. The correlation shows up only when the two lists of results are compared, which requires ordinary communication.
References and further reading
The explanations on this page are written for this site. I opened the IBM, Preskill and Watrous pages to confirm title, author and scope; I did not read their full texts here. The pointer to the tensor-product section of Nielsen and Chuang comes from the book's standard contents and was not opened.
- Basics of quantum information: Multiple systems (IBM Quantum Learning) Opened. Describes multiple systems as one compound system, how measuring some systems affects the rest, and entanglement.
- Physics 219 Quantum Computation: lecture notes (John Preskill, Caltech) Opened. Chapter 4 is Quantum Entanglement (marked incomplete on the page); Chapter 5 is Classical and Quantum Circuits.
- The Theory of Quantum Information (John Watrous, Cambridge University Press (2018)) Opened. Free manuscript for personal use; covers composite systems and entanglement rigorously.
- Quantum Computation and Quantum Information, 10th Anniversary Edition (Nielsen and Chuang, Cambridge University Press (2011)) Covers tensor products in Chapter 2 and the CNOT-based Bell circuit in Chapter 1; not opened in full here.
- Three qubits can be entangled in two inequivalent ways (W. Dür, G. Vidal and J. I. Cirac, arXiv:quant-ph/0005115) Opened (abstract). Source for the GHZ and W classes and the W-state robustness statement.
Key terms in the dictionary