Whenever I asked the question of why the measurement of an observable always yields one of its eigenvalues, I often ran into answers such as: "That's just how nature works", or: "That's how the math works out". In this article, I hope to give a better answer.
Let's start with a simple state \(\left| \psi \right\rangle = a \left| 0 \right\rangle + b \left| 1 \right\rangle \). If you want to measure this state, you choose an orthonormal basis to measure in. Then, you pick one of the vectors of this basis to measure against. By measuring, you force the qubit to align to the chosen basis. The outcome of the measurement is that the qubit is either equal to the chosen vector, or orthogonal to it. This is called projection measurement. You can calculate the probability that the qubit will collapse to the chosen vector by using a projection operator. For example, if we choose the computational basis \( \{ \left| 0 \right\rangle, \left| 1 \right\rangle \} \) to measure in, and we pick the \( \left| 0 \right\rangle \) vector to measure against, then the result is:
\[
\begin{aligned}
\left\langle \psi \right| \left( \left| 0 \right\rangle \left\langle 0 \right| \right) \left| \psi \right\rangle
= \begin{bmatrix}
\overline{a} & \overline{b}
\end{bmatrix}
\begin{bmatrix}
1 & 0\\
0 & 0
\end{bmatrix}
\begin{bmatrix}
a\\
b
\end{bmatrix}
= \overline{a}a
= \left\| a \right\|^2
\end{aligned}
\]
where \( \left| 0 \right\rangle \left\langle 0 \right| \) is the projection operator. Of course, we didn't really need the projection operator to know that the probability of getting \( \left| 0 \right\rangle \) is \( \left\| a \right\|^2 \), since it's immediately obvious from \( a \left| 0 \right\rangle + b \left| 1 \right\rangle \), but if we would have chosen a different measurement basis / vector, then this method is quite handy. Also, the structure of using a projection operator is identical to using an observable operator, which we will get to next.
Observable operators
A projection measurement tells us whether a qubit is in a certain state, or orthogonal to it. What if we would like to assign certain values to the possible outcomes? For example, if our qubit turns out to be \( \left| 0 \right\rangle \), we want the value \(5\) and if it's \( \left| 1 \right\rangle \), we want the value \(8\). We can now construct an observable operator, or simply observable, by summing the respective projection operators, multiplied by the values that we chose:
\[
\begin{aligned}
O
= 5 \left( \left| 0 \right\rangle \left\langle 0 \right| \right) + 8 \left( \left| 1 \right\rangle \left\langle 1 \right| \right)
= 5 \begin{bmatrix}
1 & 0\\
0 & 0
\end{bmatrix}
+
8 \begin{bmatrix}
0 & 0\\
0 & 1
\end{bmatrix}
= \begin{bmatrix}
5 & 0\\
0 & 8
\end{bmatrix}
\end{aligned}
\]
The eigenvectors of \(O\) are \(\left| 0 \right\rangle\) with eigenvalue \(5\), and \(\left| 1 \right\rangle\) with eigenvalue \(8\), which is in perfect accordance with the Spectral theorem, which states that any normal matrix can be written as the sum of the outer products of its eigenvectors \( v_i \) multiplied by their eigenvalues \( \lambda_{i} \):
\[
\begin{aligned}
O = \sum_{i} \lambda_{i} \left| v_i \right\rangle \left\langle v_i \right|
\end{aligned}
\]
So, what can we do with this observable? The most common use of an Observable is to calculate the expectation value. This value represents the average of all values that we would get if we would repeat the measurement
many times. For example, if we let \(a\) be \(\sqrt{\frac{2}{3}} \) and \(b\) be \(\sqrt{\frac{1}{3}} \), then our state becomes \(\left| \psi \right\rangle = \sqrt{\frac{2}{3}} \left| 0 \right\rangle + \sqrt{\frac{1}{3}} \left| 1 \right\rangle \). The expectation value can then be calculated as follows:
\[
\begin{aligned}
\left\langle \psi \right| O \left| \psi \right\rangle
= \begin{bmatrix}
\overline{\sqrt{\frac{2}{3}}} & \overline{\sqrt{\frac{1}{3}}}
\end{bmatrix}
\begin{bmatrix}
5 & 0\\
0 & 8
\end{bmatrix}
\begin{bmatrix}
\sqrt{\frac{2}{3}}\\
\sqrt{\frac{1}{3}}
\end{bmatrix}
= \frac{2}{3} \cdot 5 + \frac{1}{3} \cdot 8
= 6
\end{aligned}
\]
This outcome is quite intuitive: if we would repeatedly measure such a state in the computational basis, then we would get \( \left| 0 \right\rangle \) (which we assigned value \(5\)) two thirds of the time and \( \left| 1 \right\rangle \) (which we assigned value \(8\)) one third of the time. The average value would then indeed be \(6\).
The question of "why does measuring an observable yield one of its eigenvalues?" now becomes very simple to answer: we have defined the observable to yield an eigenvalue whenever we get a certain measurement result. The basis we measure in, is contained in the observable itself. After all, we constructed it from outer products of the eigenvectors of this basis. Then, we multiplied each outer product by the eigenvalue we wanted to get when the measurement would yield that specific eigenvector. An observable is therefore a mathematical abstraction that associates numerical values with the eigenvectors of a certain measurement basis.
So, if observables are only an abstraction for convenience, do we really need them? We certainly don't seem to need them for calculating the expectation value. We could just as easily have derived the expectation value from the individual probabilities corresponding to 5 and 8. There are, however, a few very handy use cases.
Hamiltonians
In quantum physics, a Hamiltonian is an observable that describes the total energy of a quantum system (whether it is a single particle or many). Its eigenvalues represent the measurable energy levels of the system, and its eigenvectors represent the corresponding states of definite energy. In our earlier example, we created an observable for the computational basis and assigned essentially arbitrary values (5 and 8) to the eigenvectors. A Hamiltonian, however, does not use arbitrary values; its eigenvalues are the actual physical energies you would record in a lab when measuring the system's energy. For example, an electron in an atom can occupy different excitation states. You cannot directly see which excitation state the electron is in, but you can measure its energy. Each excitation state corresponds to a specific measurable energy level, meaning the system's Hamiltonian has those excitation states as its eigenvectors and the measurable energy values as its eigenvalues.
In the context of a Hamiltonian, measuring the observable yields one its eigenvalues because we have defined those eigenvalues to be exactly the values we would actually measure! Also, if the Hamiltonian would describe a sufficiently large system, then its expectation value will represent the actual outcome of any single energy measurement, since measurement variations of individual particles will cancel each other out. This is similar to an election where each voter has a \(\frac{1}{3}\) chance of voting A and a \(\frac{2}{3}\) chance of voting B. If you let a single voter vote 1000 times, then on average, \(\frac{1}{3}\) of the time, they will vote A and \(\frac{2}{3}\) of the time, they will vote B. This is similar to the expectation value. And if you let 1000 voters vote 1 time, you can be very confident that approximately \(\frac{1}{3}\) of them will vote A and \(\frac{2}{3}\) will vote B, even if it is only a single vote. This works even if different voters have different probabilities: the expectation value of the total system will represent the outcome of every single total vote tally.
Do note, however, that this breaks down when individual measurements are correlated to one another. In particle physics, this can happen, for example, during a phase transition, where lots of particles go from solid to liquid together. If you can exclude such exceptions, then Hamiltonians are very useful for measuring the total energy of a system.
Pauli observables
The Bloch sphere is a sphere with radius 1, centered at the origin of a three-dimensional space where the axes represent three commonly used orthogonal bases for a single qubit. The \(x\)-axis represents the \( \{ \left| + \right\rangle, \left| - \right\rangle \} \) basis, the \(y\)-axis represents the \( \{ \left| i \right\rangle, \left| -i \right\rangle \} \) basis and the \(z\)-axis represents the \( \{ \left| 0 \right\rangle, \left| 1 \right\rangle \} \) basis. The points at which the sphere intersects these axes, represent the vectors of these bases:
\[
\begin{aligned}
(1, 0, 0)~~&\rightarrow~~\left| + \right\rangle \\
(-1, 0, 0)~~&\rightarrow~~\left| - \right\rangle \\
(0, 1, 0)~~&\rightarrow~~\left| i \right\rangle \\
(0, -1, 0)~~&\rightarrow~~\left| -i \right\rangle \\
(0, 0, 1)~~&\rightarrow~~\left| 0 \right\rangle \\
(0, 0, -1)~~&\rightarrow~~\left| 1 \right\rangle \\
\end{aligned}
\]
We can now construct observables for these bases that have the intersection points with their respective axes (-1 and 1) as eigenvalues and the orthogonal vectors of the bases as eigenvectors. The result is the three Pauli matrices:
\[
\begin{alignat*}{4}
\sigma_X
&= -1 \left( \left| - \right\rangle \left\langle - \right| \right) + 1 \left( \left| + \right\rangle \left\langle + \right| \right) &
&= -1 \begin{bmatrix}
\frac{1}{2} & -\frac{1}{2}\\
-\frac{1}{2} & \frac{1}{2}
\end{bmatrix} &
&+
1 \begin{bmatrix}
\frac{1}{2} & \frac{1}{2}\\
\frac{1}{2} & \frac{1}{2}
\end{bmatrix} &
&= \begin{bmatrix}
0 & 1\\
1 & 0
\end{bmatrix}\\
\sigma_Y
&= -1 \left( \left| -i \right\rangle \left\langle -i \right| \right) + 1 \left( \left| i \right\rangle \left\langle i \right| \right) &
&= -1 \begin{bmatrix}
\frac{1}{2} & \frac{1}{2}i\\
-\frac{1}{2}i & \frac{1}{2}
\end{bmatrix} &
&+
1 \begin{bmatrix}
\frac{1}{2} & -\frac{1}{2}i\\
\frac{1}{2}i & \frac{1}{2}
\end{bmatrix} &
&= \begin{bmatrix}
0 & -i\\
i & 0
\end{bmatrix}\\
\sigma_Z
&= -1 \left( \left| 1 \right\rangle \left\langle 1 \right| \right) + 1 \left( \left| 0 \right\rangle \left\langle 0 \right| \right) &
&= -1 \begin{bmatrix}
0 & 0\\
0 & 1
\end{bmatrix} &
&+
1 \begin{bmatrix}
1 & 0\\
0 & 0
\end{bmatrix} &
&= \begin{bmatrix}
1 & 0\\
0 & -1
\end{bmatrix}
\end{alignat*}
\]
The expectation value of each observable now represents the value along the axis of that observable that corresponds to where the qubit is on the Bloch sphere! For example, if we take \(\left| \psi \right\rangle\) and calculate the expectation values, we get:
\[
\begin{alignat*}{3}
\left\langle \psi \right| \sigma_X \left| \psi \right\rangle
&= \begin{bmatrix}
\overline{\sqrt{\frac{2}{3}}} & \overline{\sqrt{\frac{1}{3}}}
\end{bmatrix}
\begin{bmatrix}
0 & 1\\
1 & 0
\end{bmatrix}
\begin{bmatrix}
\sqrt{\frac{2}{3}}\\
\sqrt{\frac{1}{3}}
\end{bmatrix} &
&= \frac{2}{3} \sqrt{2} \\
\left\langle \psi \right| \sigma_Y \left| \psi \right\rangle
&= \begin{bmatrix}
\overline{\sqrt{\frac{2}{3}}} & \overline{\sqrt{\frac{1}{3}}}
\end{bmatrix}
\begin{bmatrix}
0 & -i\\
i & 0
\end{bmatrix}
\begin{bmatrix}
\sqrt{\frac{2}{3}}\\
\sqrt{\frac{1}{3}}
\end{bmatrix} &
&= 0 \\
\left\langle \psi \right| \sigma_Z \left| \psi \right\rangle
&= \begin{bmatrix}
\overline{\sqrt{\frac{2}{3}}} & \overline{\sqrt{\frac{1}{3}}}
\end{bmatrix}
\begin{bmatrix}
1 & 0\\
0 & -1
\end{bmatrix}
\begin{bmatrix}
\sqrt{\frac{2}{3}}\\
\sqrt{\frac{1}{3}}
\end{bmatrix} &
&= \frac{1}{3}
\end{alignat*}
\]
The coordinates of \(\left| \psi \right\rangle\) on the Bloch sphere are therefore \(\left( \frac{2}{3} \sqrt{2} , 0 , \frac{1}{3} \right) \). Summing the squares of these values gives \(1\), confirming that this is indeed a point on the unit sphere.
Always keep in mind though, that the Pauli matrices can be used as observables to determine the location of a qubit on the Bloch sphere, but they can also be used as rotation operators to rotate a qubit along one of the axes. In that case, we simply take the product of a Pauli matrix and the state vector of the qubit. The Pauli matrices are the same in both cases, but their usage is very different.
Commuting observables
If we measure a qubit in a certain basis, then it will collapse to one of the orthogonal vectors of that basis. If we then measure it again in the same basis, it will always give us the same result again, because of this collapse. For example, if our qubit is in superposition in the \( \{ \left| 0 \right\rangle, \left| 1 \right\rangle \} \) basis and we measure it in this basis, we could get \( \left| 0 \right\rangle \). If we then measure it again, we are guaranteed to get \( \left| 0 \right\rangle \) again, since our first measurement has forced the qubit into the \( \left| 0 \right\rangle \) state.
If we, however, measure the same qubit twice, but in different bases, then the outcome of the measurements will depend on the order. If our qubit starts in the \( \left| 0 \right\rangle \) state and we measure in the \( \{ \left| 0 \right\rangle, \left| 1 \right\rangle \} \) basis, then we will definitely get \( \left| 0 \right\rangle \). If we then measure in the \( \{ \left| + \right\rangle, \left| - \right\rangle \} \) basis, we could get \( \left| + \right\rangle \) or \( \left| - \right\rangle \) with equal probability.
If however, we do the first measurement in the \( \{ \left| + \right\rangle, \left| - \right\rangle \} \) basis, we could get \( \left| + \right\rangle \) or \( \left| - \right\rangle \) with equal probability, but if we then do the second measurement in the \( \{ \left| 0 \right\rangle, \left| 1 \right\rangle \} \) basis, we could get \( \left| 0 \right\rangle \) or \( \left| 1 \right\rangle \) with equal probability! This is because the first measurement will collapse the qubit to either \( \left| + \right\rangle \) or \( \left| - \right\rangle \) and both of those have equal probabilities of being \( \left| 0 \right\rangle \) or \( \left| 1 \right\rangle \) in the \( \{ \left| 0 \right\rangle, \left| 1 \right\rangle \} \) basis.
Now suppose we have different observables and we want to apply all of them to the same state. That is, we want to do a measurement and get an eigenvalue for each of our observables. According to the above, we cannot just do this. The measurement of one observable might change the state of the qubit and will therefore affect the measurement of the next observable. The only situation in which we can do this, is if all of our observables have the same basis! Then, the first measurement will collapse the qubit, but this won't affect the measurements of the other observables, since they would have collapsed it to the same basis vectors anyway! The order in which we apply the observables therefore does not matter.
Mathematically, observables that share the same basis, commute. That is, multiplying \(O_A\) with \(O_B\) yields the same result as doing the multiplication the other way around. This is because the basis of an observable is, as we saw before, determined by its eigenvectors. An eigenvector of a matrix is a vector that is only scaled, not otherwise transformed, when multiplied by that matrix. The value with which the eigenvector \(v\) is scaled by matrix \(A\), is its eigenvalue \(\lambda\):
\[
\begin{aligned}
Av = \lambda v
\end{aligned}
\]
Now we can show that, if two matrices \(A\) and \(B\) commute, then they share the same eigenvectors (note: we assume that \(A\) and \(B\) are so-called normal matrices, which all observables are):
\[
\begin{aligned}
Av_a &= \lambda_{a}v_a &\\
B(Av_a) &= B(\lambda_{a}v_a) &\\
BAv_a &= \lambda_{a}Bv_a & &\text{(scalar multiplication is commutative)}\\
ABv_a &= \lambda_{a}Bv_a & &\text{(BA = AB, since they commute)}\\
A(Bv_a) &= \lambda_{a}(Bv_a)
\end{aligned}
\]
Now we see that \(Bv_a\) is an eigenvector of \(A\), which means \(B\) only scales \(v_a\), otherwise it would no longer be an eigenvector of \(A\). The fact that \(B\) only scales \(v_a\) means that \(v_a\) is also an eigenvector of \(B\).
The other way around (if they share the same eigenvectors, then they commute), is trivial: if they share eigenvectors, they only scale those eigenvectors and scalar multiplication is commutative.
So, if we have commuting observables, we can safely use each of them to perform subsequent measurements on the same qubit. In fact, we can even combine commuting observables into one observable, so that we only have to make a single measurement!
Addition of commuting observables
If we want to know the outcome of each of the observables that we want to measure, then we can add them together to form a combined observable. Let's take our earlier example of assigning \(5\) and \(8\) to the computational basis vectors and combine it with another observable that assigns \(3\) and \(6\):
\[
\begin{aligned}
\begin{bmatrix}
5 & 0\\
0 & 8
\end{bmatrix}
+
\begin{bmatrix}
3 & 0\\
0 & 6
\end{bmatrix}
=
\begin{bmatrix}
8 & 0\\
0 & 14
\end{bmatrix}
\end{aligned}
\]
If our measurement result now yields \(8\), then we know that this corresponds to \(5\) and \(3\) in the respective observables.
But what if we want to combine an observable that yields \(5\) or \(8\) with one that yields \(5\) or \(2\)? Now, the resulting matrix has only a single eigenvalue equal to \(10\)! This is what we call a degenerate eigenvalue, making our combined observable useless. We can solve it by multiplying the second observable with a constant factor, say, \(100\), in order to construct a combined observable that allows us to derive the individual results:
\[
\begin{aligned}
\begin{bmatrix}
5 & 0\\
0 & 8
\end{bmatrix}
+
100
\begin{bmatrix}
5 & 0\\
0 & 2
\end{bmatrix}
=
\begin{bmatrix}
505 & 0\\
0 & 208
\end{bmatrix}
\end{aligned}
\]
Remember: observables are just a mathematical abstraction, we can shape them however we like! As long as you avoid degenerate eigenvalues by using constant factors, adding commuting observables never changes their eigenvectors.
Multiplication of commuting observables
As well as adding them, we can also multiply commuting observables. Degeneracy is more difficult to avoid here, because multiplying one observable by a constant won't solve it; it is equivalent to multiplying the entire product with that constant. There are several more advanced tricks you can use to avoid degeneracy, but we won't do into those here.
As long as the eigenvalues don't become degenerate, the eigenvectors will remain the same and the eigenvalues will be a multiple of the eigenvalues of the original observables. For example, if we create two observables by assigning \(4\) and \(6\), as well as \(3\) and \(5\) to the Hadamard basis and multiply them, we get:
\[
\begin{alignat*}{3}
& 4 \left( \left| - \right\rangle \left\langle - \right| \right) + 6 \left( \left| + \right\rangle \left\langle + \right| \right)&
&~~\cdot~~
3 \left( \left| - \right\rangle \left\langle - \right| \right) + 5 \left( \left| + \right\rangle \left\langle + \right| \right)\\
=~~&
4 \begin{bmatrix}
\frac{1}{2} & -\frac{1}{2}\\
-\frac{1}{2} & \frac{1}{2}
\end{bmatrix}
+
6 \begin{bmatrix}
\frac{1}{2} & \frac{1}{2}\\
\frac{1}{2} & \frac{1}{2}
\end{bmatrix}&
&~~\cdot~~
3 \begin{bmatrix}
\frac{1}{2} & -\frac{1}{2}\\
-\frac{1}{2} & \frac{1}{2}
\end{bmatrix}
+
5 \begin{bmatrix}
\frac{1}{2} & \frac{1}{2}\\
\frac{1}{2} & \frac{1}{2}
\end{bmatrix}\\
=~~&
\begin{bmatrix}
5 & 1\\
1 & 5
\end{bmatrix}&
&~~\cdot~~
\begin{bmatrix}
4 & 1\\
1 & 4
\end{bmatrix}\\
=~~&
\begin{bmatrix}
21 & 9\\
9 & 21
\end{bmatrix}&
\end{alignat*}
\]
The eigenvalues of this matrix product are multiples of the eigenvalues of the originals \(4 \cdot 3 = 12\) and \(6 \cdot 5 = 30\).
I hope this article gives some insight into the eigenvalues of observables. Next time, we will have a look at how we can use addition and multiplication of commuting observables to solve the Mermin-Peres Quantum Magic Square Game!