For two equal-frequency quantum harmonic oscillators, the ordinary thermal trace is and the trace with the parity operator is , where . Total excitation has degeneracy and parity . Therefore the traces expand as . The alternating weights come from parity insertion in a bosonic state space, not fermionic statistics.