posted on 2024-09-03, 16:00authored byHunter Swan, Andrii Torchylo, Michael J. Van de Graaff, Jan Rudolph, Jason M. Hogan
A phase-only spatial light modulator (SLM) provides a powerful way to shape laser beams into arbitrary intensity patterns, but at the cost of a hard computational problem of determining an appropriate SLM phase. Here we show that optimal transport methods can generate approximate solutions to this problem that serve as excellent initializations for iterative phase retrieval algorithms, yielding vortex-free solutions with superior accuracy and efficiency. Additionally, we show that analogous algorithms can be used to measure the intensity and phase of the input beam incident upon the SLM via phase diversity imaging. These techniques furnish flexible and convenient solutions to the computational challenges of beam shaping with an SLM.