EUVIMEDObjevte EUVIMED
Open access · CC BY 4.0

TorchGDM: A GPU-accelerated Python toolkit for multi-scale electromagnetic scattering with automatic differentiation

Sofia Ponomareva, Adelin Patoux, Clément Majorel, Antoine Azéma, Aurélien Cuche, Christian Girard, Arnaud Arbouet, Peter Wiecha

SciPost Physics Codebases · 2025-10-22

DOI: 10.21468/scipostphyscodeb.60 ↗

At a glance

Journal article in SciPost Physics Codebases, published online on 2025-10-22. Written by Sofia Ponomareva and 7 co-authors. Cited 6 times so far (Crossref); 128 references. The full text is freely available (open access, CC BY 4.0). Funded by: Agence Nationale de la Recherche, Université de Toulouse.

AbstraktBibliografické údajeCiteRelated studies

Abstract (original language)

We present “torchGDM”, a numerical framework for nano-optical simulations based on the Green’s Dyadic Method (GDM). This toolkit combines a hybrid approach, allowing for both fully discretized nano-structures and structures approximated by sets of effective electric and magnetic dipoles. It supports simulations in three dimensions and for infinitely long, two-dimensional structures. This capability is particularly suited for multi-scale modeling, enabling accurate near-field calculations within or around a discretized structure embedded in a complex environment of scatterers represented by effective models. Importantly, torchGDM is entirely implemented in PyTorch, a well-optimized and GPU-enabled automatic differentiation framework. This allows for the efficient calculation of exact derivatives of any simulated observable with respect to various inputs, including positions, wavelengths or permittivity, but also intermediate parameters like Green’s tensor components, which can be interesting for physics informed deep learning applications. We anticipate that this toolkit will be valuable for applications merging nano-photonics and machine learning, as well as for solving nano-photonic optimization and inverse problems, such as the global design and characterization of metasurfaces, where optical interactions between structures are critical.

Funding

  • Agence Nationale de la Recherche
  • Université de Toulouse

Cite

APA

Ponomareva, S., Patoux, A., Majorel, C., Azéma, A., Cuche, A., Girard, C., Arbouet, A., & Wiecha, P. (2025). TorchGDM: A GPU-accelerated Python toolkit for multi-scale electromagnetic scattering with automatic differentiation. SciPost Physics Codebases. https://doi.org/10.21468/scipostphyscodeb.60

Vancouver

Ponomareva S, Patoux A, Majorel C, Azéma A, Cuche A, Girard C, et al. TorchGDM: A GPU-accelerated Python toolkit for multi-scale electromagnetic scattering with automatic differentiation. SciPost Physics Codebases. 2025. doi:10.21468/scipostphyscodeb.60

BibTeX
@article{Ponomareva2025,
  author = {Ponomareva, Sofia and Patoux, Adelin and Majorel, Clément and Azéma, Antoine and Cuche, Aurélien and Girard, Christian and Arbouet, Arnaud and Wiecha, Peter},
  title = {TorchGDM: A GPU-accelerated Python toolkit for multi-scale electromagnetic scattering with automatic differentiation},
  journal = {SciPost Physics Codebases},
  year = {2025},
  doi = {10.21468/scipostphyscodeb.60}
}
Start for free →