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

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.

Authors

Institutions

Publication Details

Journal
SciPost Physics Codebases
Published
2025-10-22
DOI
https://doi.org/10.21468/scipostphyscodeb.60
Citations
1
Primary Topic
Photonic Crystals and Applications
Type
article
Field-Weighted Citation Impact
1.25

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

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

Adelin Patoux, Peter R. Wiecha, Arnaud Arbouet, Aurélien Cuche et al.
1 citations
SciPost Physics Codebases
Photonic Crystals and Applications
1.25
article

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

Adelin Patoux, Peter R. Wiecha, Arnaud Arbouet, Aurélien Cuche, Clément Majorel, A. Azéma, Sofia Ponomareva, Christian Girard
article en
1 citations

Abstract

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.

SciPost Physics Codebases
Centre National de la Recherche Scientifique (FR), Tokyo University of Science (JP), Université Fédérale de Toulouse Midi-Pyrénées (FR), Laboratoire d'Analyse et d'Architecture des Systèmes (FR), Université Côte d'Azur (FR), Centre de Recherche sur l'Hétéro-Epitaxie et ses Applications (FR), Observatoire de la Côte d’Azur (FR), Centre d’Élaboration de Matériaux et d’Études Structurales (FR), Université de Rennes (FR), The University of Tokyo (JP)
Agence Nationale de la Recherche
Openalex Percentile: Top 16%
Photonic Crystals and Applications
1.25
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.