Motion of vortex lines in quantum mechanics