KnowledgeCookies logo Understanding the language of quantum science
← All 2-Minute Reads

What Is a Commutator

The commutator of A and B measures how their order of application changes the result. Read each product from right to left. AB applies B first, while BA applies A first. A zero commutator says both orders give the same vector for every input in their common domain.

[A^,B^]≡A^B^−B^A^[\hat A,\hat B]\equiv \hat A\hat B-\hat B\hat A

Take the Pauli operators X and Z. X flips ∣0⟩\lvert0\rangle to ∣1⟩\lvert1\rangle, and Z multiplies ∣1⟩\lvert1\rangle by −1-1 while leaving ∣0⟩\lvert0\rangle fixed. Acting on ∣0⟩\lvert0\rangle, XZ gives ∣1⟩\lvert1\rangle, while ZX gives −∣1⟩\lvert1\rangle. The difference is nonzero. The two operators also define different measurement bases.

Position and momentum have the canonical commutator [x,p]=iℏI[x,p]=i\hbar I, which sets the lower bound in their uncertainty relation. Commutators also appear in the equations of motion for observables, where they describe how a quantity changes under the Hamiltonian.

A quick check is to reverse the two inputs. This changes the sign of the commutator. Every operator also commutes with the identity, because applying the identity before or after it leaves the result the same.