A beam of particles passes through a Stern-Gerlach apparatus with a magnetic field gradient oriented in the z-direction. What is the effect on the beam?