Linear Algebra / Unit 9, The Mathematics of Quantum Mechanics / Topic 9.3
Unit 9. The Mathematics of Quantum Mechanics
This topic states the rules that connect linear algebra to the results of experiments. A state is a ket of length 1. A measurable quantity is a Hermitian operator. The eigenvalues of the operator are the possible results of a measurement, and the brackets of its eigenkets with the state give the probabilities.
You need Topics 8.3, 8.5, 9.1, and 9.2 for this topic.
The state of a quantum system is a ket |ψ⟩ of length 1, so ⟨ψ|ψ⟩ = 1. The kets |ψ⟩ and eiθ|ψ⟩ describe the same state, because a phase factor in front of the whole ket does not change any probability in the rules below.
A phase factor in front of one part of a ket does change the state. The kets |+⟩ = (|0⟩ + |1⟩)/√2 and |−⟩ = (|0⟩ − |1⟩)/√2 differ only by the sign of the second term, and they are orthogonal.
A quantity that can be measured, such as energy, momentum, or spin, is called an observable. Each observable is represented by a Hermitian operator A. From Topics 8.3 and 8.5, a Hermitian operator has real eigenvalues and an orthonormal basis of eigenkets.
A|ai⟩ = ai|ai⟩ ⟨ai|aj⟩ = δij Σi |ai⟩⟨ai| = IThe measurement rule. A measurement of the observable A on the state |ψ⟩ has three properties.
1. The result is one of the eigenvalues of A.
2. The probability of the result ai is |⟨ai|ψ⟩|².
3. Directly after a measurement with the result ai, the state is the eigenket |ai⟩.
The bracket ⟨ai|ψ⟩ is called the amplitude of the result ai. It is the component of the state along the eigenket. The probability is the squared absolute value of the amplitude. The second property is called the Born rule.
The probabilities add up to 1 because of the completeness relation.
Σi |⟨ai|ψ⟩|² = Σi ⟨ψ|ai⟩⟨ai|ψ⟩each squared absolute value is a number times its conjugateΣi |⟨ai|ψ⟩|² = ⟨ψ|ψ⟩the completeness relationΣi |⟨ai|ψ⟩|² = 1the ket has the length 1The third property means that a second measurement of A, made directly after the first, gives the same result with the probability 1.
Let |ψ⟩ = (3/5)|0⟩ + (4i/5)|1⟩. Its length is 1, because 9/25 + 16/25 = 1.
The observable σz has the eigenket |0⟩ for the eigenvalue 1 and the eigenket |1⟩ for the eigenvalue −1. The amplitudes are 3/5 and 4i/5.
3/5² = 9/25 = 0.36the probability of the result 14/5² = 16/25 = 0.64the probability of the result −1, because 4i/5 has the absolute value 4/5The observable σx has the eigenkets |+⟩ and |−⟩ for the eigenvalues 1 and −1.
⟨+|ψ⟩ = (3 + 4i)/5√2the amplitude|⟨+|ψ⟩|² = (9 + 16)/50 = 1/2the probabilityA measurement of σx on the same state gives each of its two results with the probability 1/2.
When an eigenvalue a has several orthonormal eigenkets, its probability is the sum of the squared amplitudes of those eigenkets. With the projection P onto the eigenspace, this sum is ⟨ψ|P|ψ⟩. After the measurement, the state is the projection P|ψ⟩ divided by its length.
Prepare the same state many times, and measure A each time. The average of the results approaches the sum of the eigenvalues times their probabilities. This number is called the expectation value of A and is written ⟨A⟩.
⟨A⟩ = Σi ai |⟨ai|ψ⟩|² = ⟨ψ|A|ψ⟩The second form follows from the spectral decomposition A = Σi ai|ai⟩⟨ai| of Topic 9.2. It needs no eigenvalues and no eigenkets, only one bra, one matrix, and one ket.
For the state of the example:
⟨σz⟩ = (1)(0.36) + (−1)(0.64) = −0.28the results times their probabilities⟨σx⟩ = (1)(0.5) + (−1)(0.5) = 0the results times their probabilitiesThe direct calculation gives the same number for σz. The ket σz|ψ⟩ is (3/5, −4i/5), and the bra ⟨ψ| is (3/5, −4i/5).
⟨ψ|σz|ψ⟩ = (3/5)(3/5) + (−4i/5)(−4i/5)the entries of the bra times the entries of the ket⟨ψ|σz|ψ⟩ = 9/25 − 16/25 = −0.28An expectation value is an average. It does not have to be a possible result. A single measurement of σz gives 1 or −1 and never −0.28.
From Topic 8.5, the expectation value is a weighted average of the eigenvalues, so it lies between the smallest and the largest eigenvalue. For the energy this means that the average energy of any state is at least the smallest eigenvalue of the energy operator. The eigenket of the smallest eigenvalue is called the ground state, and it is the only state whose average energy is that low, apart from a phase factor, when the smallest eigenvalue is not repeated.
The results of a measurement scatter around the expectation value. The spread ΔA measures the size of the scatter. It is the standard deviation of the results.
(ΔA)² = ⟨A²⟩ − ⟨A⟩²Here ⟨A²⟩ = ⟨ψ|A²|ψ⟩ is the expectation value of the square of the operator. In general it is not equal to the square of ⟨A⟩.
The spread is zero exactly when |ψ⟩ is an eigenket of A. Then one result has the probability 1, and physicists say that A has a sharp value in this state.
For the state of the example, σz² = I, so ⟨σz²⟩ = 1.
Δσz = √1 − (−0.28)² = √0.9216 = 0.96Topic 8.3 found the eigenvalues 4 and 1 of the matrix H below. Let H be the energy operator of a system, in some unit of energy, and let the state be |0⟩ = (1, 0).
H = 21 − i1 + i3 |4⟩ = 1/√6 1 − i2 |1⟩ = 1/√3 −1 + i1The eigenkets are labeled with their eigenvalues. The amplitude of the energy 4 is ⟨4|0⟩ = (1 + i)/√6, which is the conjugate of the first entry of |4⟩. Its squared absolute value is 2/6 = 1/3. The amplitude of the energy 1 is (−1 − i)/√3, with the squared absolute value 2/3.
| Quantity | Calculation | Value |
|---|---|---|
| Probability of the energy 4 | |⟨4|0⟩|² | 1/3 |
| Probability of the energy 1 | |⟨1|0⟩|² | 2/3 |
| Expectation value | (4)(1/3) + (1)(2/3) | 2 |
| ⟨H²⟩ | (16)(1/3) + (1)(2/3) | 6 |
| Spread | √6 − 2² | √2 |
The expectation value 2 is also ⟨0|H|0⟩, the entry of H in row 1 and column 1. A measurement that gives the energy 4 leaves the system in the state |4⟩, and each later measurement of the energy gives 4 again, as long as nothing else acts on the system.
Two observables. From Topic 8.6, two observables that commute have a shared basis of eigenkets. A state in that basis gives a certain result for both of them. Two observables that do not commute, such as σz and σx, have no shared basis. A measurement of the second one changes the state, and the result of the first one is no longer certain. Topic 9.4 shows this for the spin of an electron.
Try it: many measurements of one state
The state is |ψ⟩ = cos(α/2)|0⟩ + sin(α/2)|1⟩, and the observable is σz. The slider sets α. Each press of a button measures a new copy of the state. The bars show the fractions of the results 1 and −1, and the purple lines show the two probabilities. On the lower line, the green mark is the average of the results, and the purple mark is the expectation value.
| Idea | Statement |
|---|---|
| State | A ket |ψ⟩ of length 1, up to a phase factor |
| Observable | A Hermitian operator A |
| Possible results | The eigenvalues of A |
| Probability of the result a | |⟨a|ψ⟩|², or ⟨ψ|P|ψ⟩ with the projection onto the eigenspace |
| State after the measurement | The eigenket of the result |
| Expectation value | ⟨A⟩ = ⟨ψ|A|ψ⟩ |
| Spread | (ΔA)² = ⟨A²⟩ − ⟨A⟩², which is zero exactly for an eigenket |
Problems 1 to 5 use the state |ψ⟩ = (1, 1 + i)/√3. Work each problem on paper first. Then open the answer to check your work.
⟨ψ|ψ⟩ = (1 + |1 + i|²)/3 = (1 + 2)/3 = 1the ket has the length 1probability of the result 1 = 1/3probability of the result −1 = 2/3
⟨σz⟩ = (1)(1/3) + (−1)(2/3) = −1/3.
The eigenket is |+⟩ = (1, 1)/√2.
⟨+|ψ⟩ = (1 + 1 + i)/√6 = (2 + i)/√6the amplitudeprobability = (|2 + i|²)/6 = 5/6
⟨σx⟩ = (1)(5/6) + (−1)(1/6) = 2/3from the probabilitiesσx|ψ⟩ = (1/√3)(1 + i, 1)for the direct calculation⟨ψ|σx|ψ⟩ = ((1)(1 + i) + (1 − i)(1))/3 = 2/3the same number
⟨σx²⟩ = 1because σx² = IΔσx = √1 − 4/9 = √5/3 ≈ 0.745
⟨A⟩ = 0.5 + 0.6 + 0.6 = 1.7⟨A²⟩ = (1)(0.5) + (4)(0.3) + (9)(0.2) = 3.5ΔA = √3.5 − 2.89 = √0.61 ≈ 0.78with ⟨A⟩² = 2.89
The code below finds the probabilities of the results of σx for the state of Part 3. The instruction np.linalg.eigh gives the eigenvalues w and the eigenkets in the columns of V. The product V.conj().T @ psi calculates the amplitudes ⟨a|ψ⟩ of all results at once.
Python
The eigenvalues are −1 and 1, and each has the probability 0.5. Now change the observable to σz, the matrix with the rows 1, 0 and 0, −1. The probabilities should be 0.64 for the result −1 and 0.36 for the result 1.
Python
The expectation value ⟨ψ|A|ψ⟩ is typed as np.vdot(psi, A @ psi). The result of this instruction is a complex number with the imaginary part 0, and .real takes its real part. The code below also calculates the sum of the eigenvalues times the probabilities.
Python
Both results are −0.28, apart from a rounding error. Now calculate the expectation value of the energy of Part 6. Change A to the matrix H with the rows 2, 1 − i and 1 + i, 3, and change the state to |0⟩ = (1, 0). The result should be 2.
Python
The spread needs the expectation value of A² as well. The matrix A² is typed as A @ A.
Python
The spread is 0.96, as in Part 5. Now change the state to |0⟩ = (1, 0), which is an eigenket of σz. The spread should be 0.
Python
Python can imitate measurements with random numbers. The first line below makes a source of random numbers. The number 1 in it fixes the sequence, so each run gives the same results. The instruction rng.choice draws 1000 results from the eigenvalues w, with the probabilities of Step 1. The instruction np.mean calculates their average.
Python
The first line of the output shows the first ten results. Each one is 1 or −1. The average is close to the expectation value −0.28, but it is not equal to it. Now change the number of measurements from 1000 to 100000. The average should be closer to −0.28.
Python
Suppose that a measurement of σx on the state of Part 3 gives the result 1. The state after the measurement is the projection of |ψ⟩ onto the eigenket |+⟩, divided by its length. The code below builds the new state and then finds the probabilities of the results of σx for it. The instruction np.linalg.norm calculates the length of a ket.
Python
The new state is |+⟩ times a phase factor. The result −1 now has the probability 0, and the result 1 has the probability 1. A second measurement of σx gives the result 1 again.
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. A system is in the state (3/5)|0⟩ + (4/5)|1⟩. The observable σz has the eigenket |1⟩ for the eigenvalue −1. Find the probability of the result −1.
The amplitude of the result −1 is ⟨1|ψ⟩ = 4/5. The probability is its squared absolute value, 16/25 = 0.64.
2. A measurement of an observable gives the result 2 with the probability 0.75 and the result 6 with the probability 0.25. Find the expectation value.
The expectation value is the sum of the results times their probabilities.⟨A⟩ = (2)(0.75) + (6)(0.25)⟨A⟩ = 1.5 + 1.5 = 3
3. What are the possible results of a measurement of an observable A?
The measurement rule says that the result is one of the eigenvalues of the Hermitian operator A. The eigenvalues of a Hermitian operator are real numbers.
4. A measurement of A gives the result a, which is not a repeated eigenvalue. What is the state directly after the measurement?
After a measurement with the result a, the state is the eigenket |a⟩. A second measurement of A directly afterward gives a again with the probability 1.
5. In a certain state, ⟨A⟩ = 3 and ⟨A²⟩ = 13. Find the spread ΔA.
(ΔA)² = ⟨A²⟩ − ⟨A⟩²(ΔA)² = 13 − 9 = 4ΔA = 2