Skip to content

SPECTRA-RCWA: A Spectral Propagation Engine for Coupled-Wave Theory with Recursive Admittance

Hyoseok Park

physics.optics

Abstract

Rigorous coupled-wave analysis (RCWA) is the standard full-wave solver for periodic metasurfaces, but every solve diagonalises a dense nonsymmetric matrix for each layer. Inverse design repeats this step for every wavelength, angle and polarisation of an objective. On a graphics processor it is the slow step, and its derivative fails where eigenvalues coincide or a diffraction order reaches cutoff. Here we introduce SPECTRA-RCWA, an RCWA forward and adjoint solver that never diagonalises the layer matrix. Each layer step uses three entire functions of the half-size layer matrix, evaluated by matrix products alone, and an admittance recursion, or scattering-matrix doubling for thick layers, keeps the evanescent orders stable. One adjoint field gives the gradient for every design value without a computational graph, and all solves of an objective run as one batch. For 144 solves with 578 x 578 layer matrices, the value and the gradient take 0.25 s on one graphics card, 218 times less than with a differentiable eigendecomposition code. The truncated-series solver TorchRDIT loses accuracy beyond a few tenths of a micrometre unless the user slices the layer; SPECTRA-RCWA keeps single-precision accuracy in layers several wavelengths thick with no setting changed and is 47 to 65 times faster at matched accuracy. Its single-precision gradient stays within 4e-5 of a double-precision reference at a cutoff, where eigendecomposition gradients are wrong by order one. A freeform metagrating designed in 3.4 min on a desktop processor deflects both polarisations by 65 degrees with a band-averaged efficiency of 75%.

Create a lesson

Metadata

Categories
physics.optics, physics.comp-ph
Comments
21 pages, 6 figures, Supplementary Information included. Code: https://github.com/hyoseokp/spectra-rcwa (pip install spectra-rcwa), DOI 10.5281/zenodo.24459564