A similar question has already been asked here
What I'm wondering is how to take into account finite temperature in the transverse Ising chain and see how that affects the magnetization. The reason why I find it difficult to consider a finite T is that the Hamiltonian seems to be the same as in the $T=0$ case, in particular:
$H=-J\sum_{i=1}^{N}(\sigma_{i}^{x}\sigma_{i+1}^{x}+g \sigma_{i}^{z})$
and I don't know how to implement the fact that T is finite (non-zero).
So my question is: how does one take into account finite $T$ as opposed to the $T=0$ case, and how does that affect, for example, the calculation of the magnetization?