For example, consider a quantum system whose Hamiltonian H has eigenvalues E j. When this system is in thermal equilibrium at temperature T, the probability of finding it in its j th energy eigenstate is proportional to exp(− E j / k B T). Thus, the expected value of any observable Q that commutes with the Hamiltonian is, up to a normalizing constant,