Two definitions of the density matrix? There seems to be two different definitions of definitions of density matrices in Physics.
In Quantum Information we define a the density matrix associated with a wave function $ | \psi \rangle$ as  $| \psi \rangle \langle \psi | $. These represent pure states. Mixed states can be defined by taking convex combinations of these. In any case the density matrix depends on the state of the system and can evolve in time
In Quantum statistical mechanics the density matrix is defined as $e^{ -\beta H}$ . Where $\beta$ is the inverse temperature. By this definition the density matrix depends on the Hamiltonian ($H$) and not on what state the system is in.   
I have two questions,


*

*Are these definitions the same? If not what connects them?

*What is the significance of $\beta$ in the second definition?

 A: The Gibbs form $\rho\sim \mathrm{e}^{-\beta H}$ is just a fancy way of writing the standard Boltzmann distribution. A quantum (mixed) state is written in general as 
$$ \rho = \sum_n p_n \lvert \phi_n\rangle \langle \phi_n\rvert, \qquad (1)$$
where $p_n$ is the probability to find the system in the pure state $\lvert \phi_n\rangle$. The thermal equilibrium state (a.k.a. Gibbs state) is often written as $\mathrm{e}^{-\beta H}/\mathcal{Z}$, where $\mathcal{Z} = \mathrm{Tr}(\mathrm{e}^{-\beta H} )$ is the partition function, and $\beta = 1/k_B T$ is the inverse temperature. To see what this means, simply expand $H$ in its basis of eigenvectors $H \lvert \psi_n\rangle = E_n \lvert \psi_n\rangle$, where $E_n$ is the energy of the eigenstate $\lvert \psi_n\rangle$, whereby
$$ \frac{\mathrm{e}^{-\beta H}}{\mathcal{Z}} = \frac{1}{\mathcal{Z}}\sum_n \mathrm{e}^{-\beta E_n} \lvert \psi_n\rangle \langle \psi_n\rvert, \qquad \mathcal{Z} = \sum_n \mathrm{e}^{-\beta E_n}$$
But this is just the same as (1), with $p_n$ given by the Boltzmann distribution.
