Density matrix theory and applications (2012)