A Computational and Experimental Framework for Fourier Optics in Python
This paper presents a comprehensive computational and experimental framework for simulating light propagation using Fourier optics in Python, emphasizing correct spatial scaling, validating results against analytical benchmarks for Gaussian beams and diffraction, and demonstrating practical applications in designing diffractive optical elements and recovering phase information through experiments.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the author. For technical accuracy, refer to the original paper. Read full disclaimer
Light travels through space not as a stream of particles, but as a wave, rippling with electric and magnetic fields. For centuries, scientists have used complex mathematics to predict how these waves bend, spread, and focus when they pass through lenses or encounter obstacles. While the full description of light involves intricate vector equations, a simpler and highly effective approach exists for many common situations. This approach, known as Fourier optics, treats light as a collection of many different plane waves traveling in slightly different directions. By breaking a complex beam of light into these simpler components, researchers can predict exactly how it will behave as it moves through an optical system. This method is essential for designing everything from microscopes to laser systems, yet performing these calculations by hand is impossible for real-world scenarios. Instead, scientists rely on computers to simulate the journey of light, but these simulations must be built with extreme care to ensure the digital numbers match the physical reality of meters and micrometers.
In a recent study, researchers Rachel Migdal and Antoine Islegen-Wojdyla developed a comprehensive framework to perform these light simulations using the Python programming language. Their work focuses on a critical, often overlooked detail: ensuring that the digital grid used to represent space has the correct physical dimensions. If the spacing between the points in a computer simulation does not perfectly match the real-world scale, the results can be wildly inaccurate. The team first verified that their numerical model maintained this correct physical scaling. They then tested their system against known behaviors of light, such as how a laser beam naturally spreads out as it travels, how a lens brings light to a sharp focus, and how a grating splits light into separate beams. In every case, their computer simulations matched the exact predictions of established physics formulas, proving that their digital tools could be trusted to model real optical systems.
Building on this verified foundation, the researchers demonstrated how to use their simulations to design and analyze diffractive optical elements. Unlike traditional glass lenses that bend light through refraction, these elements manipulate light through diffraction, using microscopic patterns to steer waves. The team showed how their code could generate a Fresnel zone plate, a type of flat lens made of concentric rings that focuses light. They also simulated how light behaves when passing through a binary grating, a surface with alternating transparent and opaque strips. The simulations accurately predicted how the light would fan out into distinct beams at specific angles, matching the theoretical expectations for how such patterns interact with waves.
To bridge the gap between the digital world and the physical laboratory, the team constructed an optical test bench to collect real data. They used a laser with a wavelength of 633 nanometers to shine light through a Fresnel zone plate and captured images of the beam at various distances as it passed through its focal point. A high-resolution camera, mounted on a precise moving stage, recorded the intensity of the light at each step. The researchers then converted these raw camera readings into absolute physical power density, translating digital numbers into watts per square meter. When they compared these experimental measurements to their computer simulations, the results aligned perfectly. The simulated light cone matched the real one, confirming that their numerical framework could accurately model complex diffractive optics just as well as simple refractive ones.
The study also tackled a fundamental problem in optics: the loss of phase information. Physical detectors can only measure the brightness, or intensity, of light, but they cannot see the phase, which describes the timing of the wave's peaks and troughs. This missing information makes it difficult to reconstruct the full shape of a light wave from a simple photograph. To solve this, the team applied an iterative algorithm known as the Gerchberg-Saxton method. By feeding the computer the measured intensities from two different planes along the beam's path, the algorithm cycled back and forth between them, refining its guess of the missing phase until it converged on a solution. The simulation successfully recovered the original phase profile of the light, demonstrating that it is possible to reconstruct the full wavefront using only intensity measurements and computational power.
Finally, the researchers explored the creation of structured light, specifically beams with a helical wavefront that carry orbital angular momentum. These beams, often called vortex beams, have a phase that twists around the center like a spiral staircase, creating a dark core surrounded by a bright ring. The team simulated the generation of these beams by applying a spiral phase mask to a standard laser beam. Their model showed that immediately after the mask, the beam looked like a normal spot, but as it traveled forward, the twisting phase caused the light to interfere with itself, forming the characteristic ring shape. The simulations accurately tracked how the size of this ring changed as the beam propagated, confirming that their framework could handle these complex, three-dimensional wave structures.
The culmination of this work is the release of a dedicated open-source Python package called Topolino. This tool bundles the core functions for generating spatial grids, propagating light waves, creating diffractive masks, and retrieving phase information into a single, accessible library. By translating classical numerical algorithms into a modern, flexible programming environment, the researchers have provided the optics community with a robust foundation for designing new optical systems, diagnosing beam quality, and performing computational metrology. Their work proves that with careful attention to physical scaling and the right computational tools, it is possible to simulate the behavior of light with a high degree of precision, bridging the gap between theoretical wave physics and practical experimental reality.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.