After determining the eigenstates | n ⟩ ⟩ and energies ϵ ϵ n of a given Hamiltonian, exact diagonalization can be used to obtain expectation values of observables. For example, if O is an observable, its thermal expectation value is