Theta and partition function
Note
Related
Quantum canonical partition function