Electromagnetic simulation (RCWA) & optimization package in Python
-
Updated
Sep 2, 2026 - Python
Electromagnetic simulation (RCWA) & optimization package in Python
Fourier Modal Method for multilayer metamaterials. Mirror of https://gitlab.com/nannos/nannos
Differentiable GPU RCWA Solver for PyTorch. Eigendecomposition-free, GPU-batched Fourier modal method with adjoint gradients: 144 solves with gradients in 0.25 s on one RTX 5090, 218x faster than torcwa. For inverse design of gratings and metasurfaces; MCP server for agents.
Header-only C++17 RCWA (Fourier modal method) for 1-D and 2-D gratings, stable at high truncation orders. JSON CLI and local web GUI included.
To associate your repository with the fourier-modal-method topic, visit your repo's landing page and select "manage topics."