The density matrix of a KMS state is related to unitary transformations involving time translations (or time translations and an internal symmetry transformation for nonzero chemical potentials) via the Tomita–Takesaki theory.