The quantum Hamiltonian $H$ is related to the partition function $Z$ of statistical mechanics by $$ Z = \textrm{Tr} \; e^{-\beta H} $$
But this wikipedia page uses Feynman's path integral formulation of QM to derive that $$ Z = \textrm{Tr} \; e^{-HT / \hbar} $$
It's very counterintuitive to me that these two expressions would both give the same result, given that $\beta = (k_BT)^{-1}$. Is the second formula correct? If so, is there a simple way to see that the two expressions are equal?