Demonstration of Density Matrix Exponentiation Using a Superconducting Quantum Processor