Two pages of notes explaining how to derive the partition function of the harmonic oscillator using the path integral. Care is needed in normalizing the measure, and relatedly, to deal with the Matsubara zero mode of the free particle.

Harmonic oscillator path integral