A new representation for the density matrix