Electrons and photons can leave localized marks on detectors and also produce interference patterns across many trials. Quantum mechanics connects both features by evolving amplitudes and using them to predict where individual events are likely to occur.
For a particle with momentum magnitude p, the de Broglie wavelength is , where h is Planck's constant. The wavelength helps set the spacing of electron diffraction or interference features. Higher momentum corresponds to a shorter wavelength. A beam can produce these features even when particles arrive one at a time.
At a double slit, each event is recorded at one spot. Over many trials the spots build up a distribution whose fringes depend on the two path amplitudes. The spread of the accumulated pattern and the localization of each event are distinct features of the same experiment.
The relation can also guide an experiment. With otherwise unchanged geometry, increasing an electron beam's momentum reduces its wavelength and brings the interference fringes closer together. Individual electron arrivals are still detected one at a time.