Quantum Field Theory and the Spectral Method