Model for energetics of solids based on the density matrix | Synapse