Commutators and compatibility
The commutator [A,B]=AB-BA measures the failure of two operators to commute and controls many relations among observables and dynamics.
On this page
Definition and significance
Two operators commute when AB=BA. Finite-dimensional Hermitian observables that commute admit a common eigenbasis and can be sharply measured compatibly in the ideal projective framework. Noncommuting observables generally do not share such a complete basis. Compatibility for generalized noisy measurements is a broader question and should not be reduced to matrix commutation alone.
The commutator also appears in time evolution and uncertainty relations. The anticommutator {A,B}=AB+BA describes a different symmetric combination.
Fully solved example
For X and Z, [X,Z]=-2iY. Acting on |0>, XZ|0>=|1>, while ZX|0>=-|1>. The final vectors differ by global phase for this particular input, but the operators are not equal. On |+>, XZ|+>=-|-> while ZX|+>=|->, again globally related because X and Z anticommute. Placing the operations under coherent control can make that phase difference observable.
For a two-qubit pair A=X tensor X and B=Z tensor Z, each local factor anticommutes, but the two minus signs cancel. AB=BA=-Y tensor Y. Thus composite observables can commute even when their corresponding local factors do not. This identity underlies joint stabilizer measurements.
Limits and misconceptions
Noncommutation does not mean every state has nonzero uncertainty for both observables; a state can be an eigenstate of one. A zero expectation of a commutator does not imply the operators commute. Likewise a zero Robertson lower bound does not establish compatibility.
An experimental sequence may show apparent disturbance from technical imperfections even for commuting ideal observables. The algebra and the apparatus model must be distinguished.
Commutation with a degenerate observable permits internal mixing
Let A = diag(0,0,1) and B = [[0,1,0],[1,0,0],[0,0,2]]. Their commutator vanishes. The matrix B mixes |0⟩ and |1⟩, but this mixing stays inside A's eigenvalue-zero subspace. Commuting with A does not require being diagonal in every basis that diagonalizes A.
A common orthonormal eigenbasis is (|0⟩+|1⟩)/√2, (|0⟩−|1⟩)/√2, and |2⟩. Their joint eigenvalue pairs are (0,1), (0,−1), and (1,2). Measuring A alone cannot distinguish the first two states. Measuring B resolves their difference while remaining compatible with the spectral sectors of A.
More generally, write A = Σ_a aP_a with distinct eigenvalues a. The equality [A,B] = 0 implies P_aBP_b = 0 whenever a differs from b, because multiplying the commutator on the two sides gives (a−b)P_aBP_b. Thus B is block diagonal across A's eigenspaces. Inside a degenerate block, B may have a nontrivial Hermitian matrix that supplies a finer common eigenbasis.
An overall phase becomes observable when it belongs to one branch
The Pauli relation XZXZ = −I follows by using XZ = −ZX and X² = Z² = I. Acting on a target alone, this sequence leaves its density operator unchanged. Its ket is multiplied by minus one, a global phase with no effect on measurements restricted to that target.
Now place this complete sequence in the control-one branch of an ancilla-controlled operation, with the identity in the control-zero branch. Starting from |+⟩_c⊗|ψ⟩_t, the output is (|0⟩_c⊗|ψ⟩_t−|1⟩_c⊗|ψ⟩_t)/√2 = |−⟩_c⊗|ψ⟩_t. An X measurement on the ancilla distinguishes this result from the untouched |+⟩ ancilla perfectly.
The target state is unchanged for every |ψ⟩, but the branch-relative sign is retained in the control coherence. This conclusion does not contradict global-phase invariance. The phase is global only when the target operation is considered without a coherent reference branch. In the enlarged controlled system it multiplies one component rather than the entire ket.
The implementation must actually preserve coherence between the two control branches. A classical random choice between applying I and −I produces the same target output and no coherent relative phase record. The distinction is between controlled coherent evolution and classical selection, not between two different algebraic identities for Pauli matrices.
A projective measurement preserves an observable exactly when it preserves its blocks
Consider the nonselective Lüders channel Φ(ρ) = Σ_a P_aρP_a associated with A. The expectation of B after the measurement is tr[BΦ(ρ)] = tr[(Σ_a P_aBP_a)ρ]. It agrees with tr(Bρ) for every input state if and only if B = Σ_a P_aBP_a.
The right-hand side removes all off-diagonal blocks of B between different A eigenspaces. Equality therefore holds precisely when those blocks vanish, equivalently when B commutes with every P_a. For the finite-dimensional spectral projectors of A, that is equivalent to [A,B] = 0. This connects an algebraic commutator with a specific operational nondisturbance statement and an explicitly chosen instrument.
For a lone qubit, a Z-basis Lüders measurement preserves the expectation of Z but removes X and Y components. Yet it leaves the particular state I/2 unchanged. Thus X expectation is unchanged on that input even though [X,Z] is nonzero. State-specific absence of disturbance is weaker than preservation for every state.
Likewise, a different instrument with the same Z effects could reprepare an arbitrary state after reading the outcome. The commuting-observable conclusion above concerns the stated Lüders channel, not every possible instrument that reports the same probabilities. Effects alone do not determine later expectation values.
A vanishing commutator expectation is not a zero commutator
For X and Z, [X,Z] = −2iY. In the state |0⟩, the expectation of this commutator is zero because the Y expectation vanishes. The operators themselves still do not commute, and they do not share a complete eigenbasis. This distinction explains why a state-dependent uncertainty lower bound involving ⟨[A,B]⟩ can vanish without establishing compatibility. An operator identity must hold on every vector, whereas one expectation value is only one scalar probe. Indeed, the same X-Z commutator has a nonzero expectation on a Y eigenstate, exposing the incompatibility that the first input failed to witness.
The commutant describes all compatible block structure
The collection of operators B satisfying [A,B] = 0 is the commutant of A. For the qutrit example, it consists of an arbitrary two-by-two block on the zero-energy sector and an arbitrary scalar on |2⟩, with no off-block entries. Requiring B to be Hermitian adds the corresponding Hermiticity condition inside each block.
If A has a nondegenerate spectrum, each block is one dimensional and every commuting operator is diagonal in its eigenbasis. For repeated eigenvalues, the commutant is larger. Degeneracy therefore increases the freedom available to compatible observables, without changing the requirement that distinct eigenspaces remain unmixed.
In the qutrit example B refines the two spectral blocks. The controlled four-Pauli sequence instead records a relative phase on an ancilla. These examples distinguish commutation, choice of measurement instrument, and state-dependent nondisturbance without assuming that arbitrary observables have simultaneous preexisting values.
Sources
Verification scope
The Theory of Quantum Information, Chapter 1: Mathematical preliminaries
John Watrous · · Textbook material · cs.uwaterloo.caCitation identity checked ·
Background reference; this record does not claim a full independent peer review of the encyclopedia. Original exposition and newly constructed calculations are not copied from the source.
The Theory of Quantum Information: Chapter 1, Mathematical preliminaries
John Watrous · · Manuscript · Author manuscript · cs.uwaterloo.caSelected text checked ·
Chapter introduction, finite-dimensional linear-algebra definitions and Caratheodory theorem were inspected. The author explicitly describes the chapter as review material, not a primary source for all mathematical results.
Selected passages and metadata were checked; this does not certify every sentence in the encyclopedia, constitute comprehensive literature review, or establish external peer review. Original worked examples are separately recomputed.
Verification scope
Citation identity checked ·
Background reference; this record does not claim a full independent peer review of the encyclopedia. Original exposition and newly constructed calculations are not copied from the source.
Verification scope
The Theory of Quantum Information: Chapter 2, Basic notions of quantum information
John Watrous · · Manuscript · Author manuscript · cs.uwaterloo.caSelected text checked ·
Full-text PDF available; selected state, measurement, channel and dilation definitions used as formalism background. Individual elementary extensions and numerical examples were constructed independently.
Selected passages and metadata were checked; this does not certify every sentence in the encyclopedia, constitute comprehensive literature review, or establish external peer review. Original worked examples are separately recomputed.
Verification scope
Selected text checked ·
Full-text mixed-unitary definition and unital non-mixed-unitary example, Schur multiplier complete-positivity criterion, channel fixed-point existence, and spectral-radius bounds inspected.
Only stated metadata and selected passages inspected; no exhaustive literature review or external scientific approval. Original numerical examples and explanatory prose are not copied.