Inverse design of photonic crystals through automatic differentiation

Momchil Minkov, Ian A. D. Williamson, Lucio C. Andreani, Dario Gerace, Beicheng Lou +3 more
3/1/2020
physics.opticscs.CEphysics.app-ph

Official code: fancompute/legume (155 stars, Python, MIT, last commit 2026-11-09).

Abstract

Gradient-based inverse design in photonics has already achieved remarkable results in designing small-footprint, high-performance optical devices. The adjoint variable method, which allows for the efficient computation of gradients, has played a major role in this success.

Show full abstract

However, gradient-based optimization has not yet been applied to the mode-expansion methods that are the most common approach to studying periodic optical structures like photonic crystals. This is because, in such simulations, the adjoint variable method cannot be defined as explicitly as in standard finite-difference or finite-element time- or frequency-domain methods. Here, we overcome this through the use of automatic differentiation, which is a generalization of the adjoint variable method to arbitrary computational graphs. We implement the plane-wave expansion and the guided-mode expansion methods using an automatic differentiation library, and show that the gradient of any simulation output can be computed efficiently and in parallel with respect to all input parameters. We then use this implementation to optimize the dispersion of a photonic crystal waveguide, and the quality factor of an ultra-small cavity in a lithium niobate slab. This extends photonic inverse design to a whole new class of simulations, and more broadly highlights the importance that automatic differentiation could play in the future for tracking and optimizing complicated physical models.

View on arXivView PDF

Code Implementations(1)

fancompute/legumeOfficial100%
MIT

🌱 Guided-mode expansion of photonic crystal slabs

15544PythonJun 12, 20193 weeks agoMIT
autogradeigenmodesopticsphotonics

Similar Papers

Cite this paper

@article{minkov2020inverse,
  title  = {Inverse design of photonic crystals through automatic differentiation},
  author = {Momchil Minkov and Ian A. D. Williamson and Lucio C. Andreani and Dario Gerace and Beicheng Lou and Alex Y. Song and Tyler W. Hughes and Shanhui Fan},
  year   = {2020},
  eprint = {2003.00379},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2003.00379}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2003.00379.svg)](https://codeofpaper.com/paper/2003.00379)

Discussion