On a surface with Euclidean ends we recover the magnetic Schrödinger operatror, up to gauge equivalence, by wave scattering. This problem turns out to be intimately related to the topology of the surface and we see how classical index theorems such Riemann-Roch can play a significant role in understanding this relationship.