Quantum algorithm for Feynman loop integrals