A Quantum distance for noncommutative measure spaces and an application to quantum field theory