|q⟩ Bad Qubits

intermediate · Physics · The Postulates of Quantum Mechanics

Compatible and Incompatible Observables

Can two observables be measured simultaneously, both yielding definite values? The answer is encoded in a single algebraic object: the commutator. This lesson links the order in which measurements can be performed to whether their operators commute.

The commutator

For two operators A^\hat A and B^\hat B, the commutator is

[A^,B^]=A^B^B^A^.[\hat A, \hat B] = \hat A\hat B - \hat B\hat A.

If [A^,B^]=0[\hat A, \hat B] = 0 the operators commute; otherwise they do not. Order of operator application is exactly like order of physical operations, so the commutator measures how much the result depends on which observable you handle first.

Compatible observables commute

Two observables are compatible if they can have a complete set of simultaneous eigenstates — states with a definite value for both at once. The fundamental theorem is:

Two Hermitian observables share a complete orthonormal basis of common eigenvectors if and only if they commute, [A^,B^]=0[\hat A, \hat B] = 0.

One direction is quick. If a common eigenbasis {n}\{|n\rangle\} exists, with A^n=ann\hat A|n\rangle = a_n|n\rangle and B^n=bnn\hat B|n\rangle = b_n|n\rangle, then on each basis vector

A^B^n=anbnn=bnann=B^A^n,\hat A\hat B|n\rangle = a_n b_n|n\rangle = b_n a_n|n\rangle = \hat B\hat A|n\rangle,

so [A^,B^]=0[\hat A,\hat B] = 0 on a complete basis, hence everywhere. The converse (commuting implies a shared eigenbasis) is the spectral content of the theorem.

Physically, compatible observables can be measured in either order with the same statistics, and measuring one does not disturb the value of the other. They define good quantum numbers that label states jointly — for instance energy, total angular momentum, and its zz-component for a hydrogen atom.

Incompatible observables do not commute

When [A^,B^]0[\hat A, \hat B] \neq 0 the observables are incompatible: no state can have a sharp value of both. Measuring one disturbs the other. The canonical qubit example is the pair X^\hat X and Z^\hat Z. Compute the commutator directly:

X^Z^=(0110)(1001)=(0110),Z^X^=(1001)(0110)=(0110),\hat X\hat Z = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix} = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix}, \quad \hat Z\hat X = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix} \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} = \begin{pmatrix} 0 & 1 \\ -1 & 0 \end{pmatrix},

so

[X^,Z^]=X^Z^Z^X^=(0220)=2iY^0.[\hat X, \hat Z] = \hat X\hat Z - \hat Z\hat X = \begin{pmatrix} 0 & -2 \\ 2 & 0 \end{pmatrix} = -2i\,\hat Y \neq 0.

The Pauli operators obey the cyclic relations [X^,Y^]=2iZ^[\hat X,\hat Y] = 2i\hat Z, [Y^,Z^]=2iX^[\hat Y,\hat Z] = 2i\hat X, [Z^,X^]=2iY^[\hat Z,\hat X] = 2i\hat Y — none of them commute, so no single qubit state has definite XX, YY, and ZZ spin components simultaneously. This is why measuring Z^\hat Z on the eigenstate +|+\rangle of X^\hat X gives a random result: +|+\rangle has a sharp XX value but a completely uncertain ZZ value.

The uncertainty principle

Incompatibility is quantified by the Robertson uncertainty relation: for any state,

ΔAΔB    12[A^,B^],\Delta A\,\Delta B \;\geq\; \frac{1}{2}\big|\langle [\hat A, \hat B]\rangle\big|,

where ΔA=A^2A^2\Delta A = \sqrt{\langle\hat A^2\rangle - \langle\hat A\rangle^2} is the standard deviation. When the commutator is nonzero, the product of uncertainties has a positive lower bound — you cannot make both arbitrarily small. For position and momentum, [x^,p^]=i[\hat x,\hat p] = i\hbar, which gives the Heisenberg relation ΔxΔp/2\Delta x\,\Delta p \geq \hbar/2. The familiar uncertainty principle is just this theorem applied to a particular incompatible pair.

Summary

Compatibility is not a vague notion — it is the algebraic statement [A^,B^]=0[\hat A, \hat B] = 0. Commuting observables share an eigenbasis and can be jointly determined; non-commuting observables obey an uncertainty relation that forbids simultaneous sharpness. The commutator thus controls both the structure of states and the limits of measurement.

Sign in on the full site to ask questions and join the discussion.