Applications in Computer Sciences of Partition Functions
there is a connection between partition functions and counting possible edge and vertex colorings in graphs, but its very abstract. see eg Graph parameters and invariants of the orthogonal group, Regts
there are applications of partition functions to simulating Ising models for Spin glasses in physics. spin glasses have been shown to have deep connections to NP complete phase transitions.