Given two operators A^ and B^, their commutator is defined as
[A^,B^]=A^B^−B^A^.
The result is itself an operator. If [A^,B^]=0 the operators commute; if the
commutator is non-zero they do not.
Why commutators matter
In quantum mechanics an observable is represented by a Hermitian operator. Two observables can be
measured simultaneously with arbitrary precision if and only if their operators commute. When
[A^,B^]=0 the Robertson uncertainty relation imposes a lower bound on the product of
their standard deviations:
σAσB≥21⟨[A^,B^]⟩.
The most famous example is position and momentum. In one dimension,
[x^,p^]=iℏ,
which leads directly to Heisenberg's uncertainty principle σxσp≥ℏ/2.
Computing a commutator by hand
Take two 2×2 matrices. The commutator is computed by ordinary matrix multiplication, then
subtraction. Consider the Pauli operators
This equals −2iY where Y=(0i−i0) is the Pauli-Y operator
(you can verify: −2i⋅(0i−i0)=(02−20)).
In general the three Pauli operators satisfy
[X,Y]=2iZ,[Y,Z]=2iX,[Z,X]=2iY,
a cyclic pattern that mirrors the cross-product relations for angular momentum. Since no two Pauli
operators commute, no two of the corresponding spin components can be simultaneously sharp — a
concrete physical consequence of non-commutativity.
Try it
This is a numerical exercise — your code should return a number. Using the matrices above,
[X,Z]=(02−20). The (1,0) entry (row 1, column 0) of this
commutator is 2. Return that entry divided by 2.
Run your code to see the quantum state.
Sign in on the full site to ask questions and join the discussion.