Density matrix treatment of localized electronic interactions in molecules and solids | Synapse