The Schrodinger equation on cylinders and the n-torus