In the Stern–Gerlach experiment, silver atoms were separated according to their spin state (Gerlach and Stern 1922 Z. Phys. 9 353–355). This experiment demonstrates the quantization of spin and relies on the classical description of motion. However, so far, no design has led to a functional Stern–Gerlach magnet for free electrons. Bohr and Pauli showed in the 1930 Solvay conference that Stern–Gerlach magnets for electrons cannot work, at least if the design is based on classical trajectories (Pauli W 1932 Proc. of the 6th Solvay Conf. 2 (1930) (Brussels: Gauthier-Villars) pp 183–86, 217–20, 275–80; Pauli W 1964 Collected Scientific Papers ed R Kronig and V F Weiskopf, vol 2 (New York: Wiley)). Here, we present ideas for the realization of a...