In this article, we analyze the basis of a proposal that allows teaching the notions of reflection, refraction, interference and diffraction from a unified perspective, using Fermat’s variational principle, recovered by Richard Feynman in his formulation of the paths sum for quantum mechanics. This allows reconsidering the notions of geometrical and physical optics, using the probabilistic and unified model of quantum mechanics by means of mathematical notions that are accessible to high school students.