As hinted at earlier, with infinite dimensional Hilbert spaces, we run into a lot of problems like phase transitions, spontaneous symmetry breaking, operators that are not trace class, divergent partition functions, etc..