Scientia sine finibus

Linear Algebra / Unit 9, The Mathematics of Quantum Mechanics / Topic 9.9

Units and Topics

Unit 9. The Mathematics of Quantum Mechanics

9.9 Tensor Products and Systems of Two Particles

Two particles together are described by one ket in a larger vector space, the tensor product of their two state spaces. This topic builds that space, shows how operators act on it, and introduces entangled states, which cannot be divided into a state of the first particle and a state of the second particle.

You need Topics 7.3, 9.1, 9.3, and 9.4 for this topic.

1. The Tensor Product of Two Kets

Let |u⟩ be a state of the first system and |v⟩ a state of the second system. The state of the two systems together is the tensor product |u⟩⊗|v⟩. Its components are all of the products of a component of |u⟩ with a component of |v⟩, in the order below.

u₁u₂ ⊗ v₁v₂ = u₁v₁u₁v₂u₂v₁u₂v₂ for example 12 ⊗ 34 = 3468

The rule is: write the second ket once for each component of the first ket, and multiply each copy by that component. Short forms of |u⟩⊗|v⟩ are |u⟩|v⟩ and |uv⟩.

RuleStatement
A number can be moved(a|u⟩)⊗|v⟩ = |u⟩⊗(a|v⟩) = a(|u⟩⊗|v⟩)
Sums in the first place(|u⟩ + |w⟩)⊗|v⟩ = |u⟩⊗|v⟩ + |w⟩⊗|v⟩
Sums in the second place|u⟩⊗(|v⟩ + |w⟩) = |u⟩⊗|v⟩ + |u⟩⊗|w⟩
The order matters|u⟩⊗|v⟩ and |v⟩⊗|u⟩ are different kets in general

2. The Product Space

The state space of the two systems together consists of all linear combinations of product kets. If |1⟩, …, |m⟩ is an orthonormal basis of the first space and |1⟩, …, |n⟩ is one of the second space, the mn kets |i⟩⊗|j⟩ are an orthonormal basis of the product space. The dimensions are multiplied, and not added.

For two spins, the product space is C⁴, with the basis

|↑↑⟩ = 1000 |↑↓⟩ = 0100 |↓↑⟩ = 0010 |↓↓⟩ = 0001

The first arrow belongs to the first spin. Three spins need 2 × 2 × 2 = 8 dimensions, and N spins need 2N. For 300 spins this number is larger than the number of atoms in the visible universe. This growth is the reason that a large quantum system is hard to calculate on an ordinary computer, and it is the resource that a quantum computer uses.

The inner product of two product kets is the product of the two inner products.

(⟨a|⊗⟨b|)(|c⟩⊗|d⟩) = ⟨a|c⟩⟨b|d⟩

3. Operators on the Product Space

Let A act on the first system and B on the second system. The operator A⊗B acts on a product ket factor by factor.

(A⊗B)(|u⟩⊗|v⟩) = A|u⟩ ⊗ B|v⟩

Its matrix is built like the tensor product of two kets: write the matrix B once for each entry of A, and multiply each copy by that entry. For two 2 by 2 matrices the result is a 4 by 4 matrix of four blocks.

σz⊗σx = 01001000000−100−10

The upper left block is (1)σx, the lower right block is (−1)σx, and the other two blocks are zero, because σz has the entries 1, 0, 0, −1.

OperatorMeaning
A⊗IA acts on the first system, and the second system is left alone
I⊗BB acts on the second system, and the first system is left alone
(A⊗B)(C⊗D) = AC⊗BDProducts are taken separately for each system
(A⊗B)† = A†⊗B†The conjugate transpose is taken separately for each system

From the third row, (A⊗I)(I⊗B) = A⊗B = (I⊗B)(A⊗I). An operator on the first system commutes with an operator on the second system. From Topic 8.6, an observable of one particle and an observable of the other particle can have sharp values together.

If |a⟩ is an eigenket of A with the eigenvalue a, and |b⟩ is an eigenket of B with the eigenvalue b, then |a⟩⊗|b⟩ is an eigenket of A⊗B with the eigenvalue ab, and an eigenket of A⊗I + I⊗B with the eigenvalue a + b. The second operator is the total energy of two particles that do not act on each other, when A and B are their Hamiltonians.

4. Entangled States

A ket of the product space that can be written as |u⟩⊗|v⟩ is called a product state. In a product state, each system has a state of its own. Most kets of the product space are not product states. They are called entangled states. The best known example for two spins is the singlet state.

|s⟩ = (|↑↓⟩ − |↓↑⟩)/√2the singlet state|s⟩ = 1/√2 01−10as a column in the product basis

A test

Write the four components of a ket of C⁴ as a 2 by 2 matrix C, with the first two components in the first row. For a product state, the entries of C are uivj, so C is the column |u⟩ times a row. Its two rows are multiples of each other, and its determinant is zero. A ket of two spins is a product state exactly when det C = 0.

KetMatrix Cdet CKind
(1, 1, 1, 1)/2(1/2) 11110Product state, |+⟩⊗|+⟩
Singlet (0, 1, −1, 0)/√2(1/√2) 01−101/2Entangled
(|↑↑⟩ + |↓↓⟩)/√2(1/√2) 10011/2Entangled

For larger systems, the test uses the singular values of Topic 7.3. A ket is a product state exactly when its matrix C has only one singular value that is not zero, which means that C has the rank 1.

5. Measurements on an Entangled Pair

Measure σz on the first spin of a pair in the singlet state. The observable is σz⊗I. Its eigenvalue 1 is repeated: the eigenspace is spanned by |↑↑⟩ and |↑↓⟩. From Topic 9.3, the probability of the result 1 is the sum of the squared amplitudes of these two kets.

probability of the result 1 = |⟨↑↑|s⟩|² + |⟨↑↓|s⟩|²the two basis kets with the first spin upprobability of the result 1 = 0 + 1/2 = 1/2

After this result, the state is the projection of |s⟩ onto the eigenspace, divided by its length. The projection keeps only the term with |↑↓⟩, so the state after the measurement is |↑↓⟩. A measurement of σz on the second spin now gives −1 with certainty.

Result for the first spinProbabilityState after the measurementResult for the second spin
11/2|↑↓⟩−1 with certainty
−11/2|↓↑⟩1 with certainty

Each spin alone gives a random result, with ⟨σz⊗I⟩ = 0 and ⟨I⊗σz⟩ = 0. The two results together are always opposite, so the expectation value of the product is ⟨σz⊗σz⟩ = −1. This holds no matter how far apart the two particles are.

The singlet state has the same property for each direction n: ⟨σn⊗σn⟩ = −1. No product state has opposite results for all directions. Experiments with pairs of entangled particles have confirmed these predictions of quantum mechanics many times.

Try it: the probabilities of the four results

The state of two spins is a|↑↑⟩ + b|↑↓⟩ + c|↓↑⟩ + d|↓↓⟩ with real numbers. The sliders set the four numbers, and the page divides the ket by its length. The area of each blue square is the probability of that pair of results in a measurement of σz on both spins. The rows belong to the first spin, and the columns belong to the second spin.

6. The Total Spin of Two Spins

An observable that is important for two spins is the sum of the three products of matching Pauli matrices.

σx⊗σx + σy⊗σy + σz⊗σz = 10000−12002−100001

The kets |↑↑⟩ and |↓↓⟩ are eigenkets with the eigenvalue 1. The middle block has the rows −1, 2 and 2, −1, with the eigenvalue 1 for (1, 1) and the eigenvalue −3 for (1, −1).

EigenvalueEigenketsName
1, repeated three times|↑↑⟩, (|↑↓⟩ + |↓↑⟩)/√2, and |↓↓⟩The triplet states, with the total spin 1
−3(|↑↓⟩ − |↓↑⟩)/√2The singlet state, with the total spin 0

The eigenvalue 1 is a repeated eigenvalue in the sense of Topic 8.5, with an eigenspace of dimension 3. The energy of two electrons often depends on this observable, so the singlet state and the triplet states have different energies. This difference is one of the sources of magnetism and of the chemical bond.

Common Mistakes

  • Adding the dimensions of the two spaces. The dimension of the product space is the product of the two dimensions.
  • Assuming that each state of two particles is a product state. Most states are entangled.
  • Writing the components of a tensor product in the wrong order. The second ket is repeated once for each component of the first ket.
  • Writing the matrix of A⊗I as the matrix A with rows of zeros added. It is a 4 by 4 matrix built from blocks.
  • Calling the kets |↑↓⟩ and |↓↑⟩ entangled. Each of them is a product state. Their difference is entangled.

Summary

FactStatement
Tensor product of ketsThe components of |u⟩⊗|v⟩ are the products uivj
DimensionThe dimensions are multiplied: two spins have 4 dimensions, and N spins have 2N
Inner product(⟨a|⊗⟨b|)(|c⟩⊗|d⟩) = ⟨a|c⟩⟨b|d⟩
Operators(A⊗B)(|u⟩⊗|v⟩) = A|u⟩⊗B|v⟩, and A⊗I commutes with I⊗B
Product stateA ket |u⟩⊗|v⟩. For two spins the test is det C = 0
Singlet state(|↑↓⟩ − |↓↑⟩)/√2, entangled, with ⟨σz⊗σz⟩ = −1

Practice

Work each problem on paper first. Then open the answer to check your work.

1. Calculate the tensor product of (1, i) and (2, 1).

The second ket is written once for each component of the first ket: (1)(2, 1) and (i)(2, 1).

The result is (2, 1, 2i, i).

2. Find the inner product of |↑⟩⊗|+⟩ with |+⟩⊗|↑⟩.

The inner product is ⟨↑|+⟩⟨+|↑⟩ = (1/√2)(1/√2) = 1/2.

3. Write the matrices of σx⊗I and I⊗σx.

σx⊗I has the blocks 0, I, I, 0: 0010000110000100.

I⊗σx has the blocks σx, 0, 0, σx: 0100100000010010.

4. Is the ket (1, 2, 2, 4)/5 a product state?

The matrix C has the rows 1, 2 and 2, 4, divided by 5.

det C = (4 − 4)/25 = 0

It is a product state: (1, 2)/√5 ⊗ (1, 2)/√5.

5. A pair of spins is in the state (|↑↑⟩ + |↓↓⟩)/√2. Find the probability that σz gives 1 for the first spin, and the result for the second spin after that.

probability = |⟨↑↑|ψ⟩|² + |⟨↑↓|ψ⟩|²probability = 1/2 + 0 = 1/2

The state after the measurement is |↑↑⟩, so the second spin gives 1 with certainty. In this state the two results are always equal.

6. Find the eigenvalues of σz⊗I + I⊗σz.

The four basis kets are eigenkets, and the eigenvalues add: 1 + 1, 1 − 1, −1 + 1, and −1 − 1.

The eigenvalues are 2, 0, 0, and −2.

Python Practice

Step 1. The tensor product of two kets

The instruction np.kron calculates the tensor product. Its name comes from the mathematician Kronecker.

Python

The result is (3, 4, 6, 8), as in Part 1. Now calculate the tensor product of (1, i) and (2, 1) of Practice Problem 1. The result should be (2, 1, 2i, i).

Python

Step 2. The tensor product of two matrices

The same instruction builds the matrix of A⊗B. The code below builds σz⊗σx and then tests the rule of Part 3: applying A⊗B to |u⟩⊗|v⟩ gives the same ket as the tensor product of A|u⟩ and B|v⟩.

Python

The matrix is the one of Part 3, and the test gives True. Now build the matrix of σx⊗I, in which σx acts on the first spin only. The identity matrix of size 2 is typed as np.eye(2).

Python

Step 3. A test for entanglement

The instruction reshape(2, 2) writes the four components of a ket as the 2 by 2 matrix C of Part 4. The code below calculates the determinant of C for the singlet state, and the singular values of C.

Python

The determinant is 0.5, and both singular values are 0.7071. The state is entangled. Now test the ket (1, 1, 1, 1)/2. The determinant should be 0, and only one singular value should be different from 0.

Python

Step 4. A measurement on the singlet state

The code below builds the projection onto the states in which the first spin is up, which is |↑⟩⟨↑|⊗I. It calculates the probability of this result for the singlet state and the state after the measurement. The last line calculates the expectation value of σz⊗σz.

Python

The probability is 0.5, the state after the measurement is |↑↓⟩, and the expectation value is −1, apart from rounding errors. Now calculate the expectation value of σx⊗σx for the singlet state. It should also be −1.

Python

Step 5. The total spin

The code below builds the observable of Part 6 and prints its matrix and its eigenvalues.

Python

The eigenvalues are −3 for the singlet state and 1, three times, for the triplet states.

Quiz

This quiz has 5 questions on this topic. A question asks you either to choose one answer or to type numbers. The page grades your answers and explains each one. A number can be typed as a whole number, a decimal, a fraction such as 1/3, or a calculation such as sqrt(18)/2 or arccos(1/2). The page shows the value of a calculation next to the box. Angles in a calculation are in degrees. The Calculator button under each question opens a calculator. Your answers are saved in your browser, so they are still on the page when you come back to it.

Choose how your answers are checked

1. Calculate the tensor product of the kets (2, 1) and (1, 3).

2. The state space of one spin has the dimension 2. Find the dimension of the state space of 5 spins.

3. Which of these states of two spins is entangled?

4. Which ket is (A⊗B)(|u⟩⊗|v⟩)?

5. Find the eigenvalue of σx⊗σx + σy⊗σy + σz⊗σz for the singlet state (|↑↓⟩ − |↓↑⟩)/√2.

Next: Topic 9.10, The Uncertainty Relation