English

TorchOptics: An open-source Python library for differentiable Fourier optics simulations

Optics 2024-11-28 v1 Classical Physics Computational Physics

Abstract

TorchOptics is an open-source Python library for differentiable Fourier optics simulations, developed using PyTorch to enable GPU-accelerated tensor computations and automatic differentiation. It provides a comprehensive framework for modeling, analyzing, and designing optical systems using Fourier optics, with applications in imaging, diffraction, holography, and signal processing. The library leverages PyTorch's automatic differentiation engine for gradient-based optimization, enabling the inverse design of complex optical systems. TorchOptics supports end-to-end optimization of hybrid models that integrate optical systems with machine learning architectures for digital post-processing. The library includes a wide range of optical elements and spatial profiles, and supports simulations with polarized light and fields with arbitrary spatial coherence.

Keywords

Cite

@article{arxiv.2411.18591,
  title  = {TorchOptics: An open-source Python library for differentiable Fourier optics simulations},
  author = {Matthew J. Filipovich and A. I. Lvovsky},
  journal= {arXiv preprint arXiv:2411.18591},
  year   = {2024}
}

Comments

9 pages, 6 figures

R2 v1 2026-06-28T20:14:58.693Z