- Mathematics
Commutator
The operator [A, B] = AB - BA, which measures the extent to which two quantum operators fail to commute; zero commutator means the operators share a common eigenbasis and can be measured simultaneously.
The commutator of two operators and is defined as . When the commutator is zero, the operators commute, meaning the order of application does not matter. In quantum mechanics, commuting Hermitian operators share a common eigenbasis and represent observables that can be measured simultaneously with arbitrary precision. Non-commuting operators are subject to uncertainty relations that limit simultaneous knowledge of their values.
Mathematical definition
For two linear operators and acting on the same Hilbert space:
The anticommutator is also frequently used:
Key algebraic properties of the commutator:
- Antisymmetry:
- Linearity:
- Product rule (Leibniz):
- Jacobi identity:
Pauli commutation relations
The Pauli operators satisfy the fundamental commutation relations:
These are cyclic: where is the Levi-Civita symbol. The anticommutation relations are:
Meaning , and similarly for the other pairs. The Pauli operators anticommute but do not commute (except with themselves and the identity).
Role in quantum mechanics
Uncertainty principle: For two observables and , the Robertson uncertainty relation states:
where is the standard deviation. Non-zero commutator implies a fundamental limit on simultaneous precision, not merely a measurement disturbance effect.
Simultaneous measurability: Two observables can be simultaneously measured (are “compatible”) if and only if they commute. For qubits, and do not commute, so they cannot be simultaneously known with arbitrary precision. This is why measuring in the computational basis ( basis) disturbs information about the basis.
Time evolution: The Heisenberg equation of motion relates the time derivative of an observable to its commutator with the Hamiltonian:
An observable that commutes with the Hamiltonian is a constant of motion (conserved quantity).
Applications in quantum computing
Commutation relations matter practically in several ways:
- Gate ordering: If two gates and commute, they can be applied in either order, which the transpiler can exploit for circuit optimization
- Pauli grouping: When measuring a Hamiltonian , Pauli terms that mutually commute can be measured simultaneously, reducing the total number of circuits needed
- Trotterization: The Trotter-Suzuki decomposition error depends on commutators between Hamiltonian terms: with error proportional to
Why it matters for learners
Commutators are the algebraic language of quantum mechanics. They determine what can be simultaneously known, how observables evolve, how errors in Hamiltonian simulation scale, and which quantum gates can be reordered. Comfort with commutator algebra is essential for working with quantum algorithms at a level deeper than circuit diagrams.