Partition function (quantum field theory)