Project
Photonics Simulation Toolkit
An end-to-end, open-source workflow for building, physically validating, and composing silicon photonic integrated circuit components — from Meep FDTD, through SAX circuit composition, to GDSFactory layout.
Overview
The toolkit builds silicon photonic integrated circuit (PIC) components one at a time, validates each with a real FDTD simulation, and then composes those validated components into circuits and fabricable GDS layouts. Every circuit-level result is traceable back to a measured simulation, amplitude and phase, rather than an idealized textbook model.

Motivation
Component-level FDTD results often stay trapped in the notebook that produced them. Circuit simulations, meanwhile, frequently fall back on ideal analytic models. This project closes that loop. Each component’s simulated behavior is saved as a small, versioned design point, and a lightweight model reads it back without re-running FDTD. That makes circuit-level design both fast and grounded in real physics.
Technologies
- Meep: FDTD electromagnetic simulation, including adjoint-based topology optimization (
autograd+nlopt). - GDSFactory: parametric geometry and GDS layout generation.
- SAX: circuit-level S-parameter composition.
- Python / Jupyter: one reader-facing notebook per component, with explicit checkpoints before expensive runs.
Simulation workflow
- Component notebooks. Each notebook builds the geometry (GDSFactory first), runs a Meep FDTD simulation, and characterizes the device: S-parameters, resonances, extinction, Vπ. The result is saved as a YAML design point, the single source of truth for that component.
- Meep-free component models. A twin module reads each cached design point and serves it as a SAX-compatible model, so downstream work never needs to import Meep.
- Circuit composition. Circuits are wired together purely from those cached models, compared against ideal analytic models, and exported as GDS.
Examples
| Component | What is characterized |
|---|---|
| Straight and bent waveguides | TE mode, bend loss vs. radius, circular vs. Euler bends |
| Adjoint topology-optimized bend | Gradient-based geometry optimization, plus a fabrication-bias-robust variant |
| Directional coupler | Splitting ratio and complex through/cross phase vs. gap and length |
| Racetrack and add-drop ring resonators | Resonance, extinction, and energy-conservation checks |
| Mach–Zehnder interferometer and modulator | Interference spectrum; push-pull Vπ |
| Grating coupler | Resolved x–z layer-stack cross-section |
| Thin-film lithium niobate MZM | MPB cross-section with uniaxial anisotropy: VπL ≈ 2.1 V·cm, traveling-wave EO 3 dB bandwidth ≈ 79 GHz (simulated) |
At the circuit level, a four-channel WDM demultiplexer built from FDTD-measured coupler models shows real physics changing the design outcome. Moving from a 2-coupler to a 4-coupler lattice raised the worst channel’s extinction ratio from 1.7 dB to 10.1 dB. A separate study sweeps a ±10 nm critical-dimension bias through fresh coupler FDTD runs to show how the MZI response tolerates fabrication error.
Beyond the 2D component library
| Study | Method | Result (simulated) |
|---|---|---|
| 3D focusing grating coupler | True 3D FDTD in fdtdx (JAX), fan-shaped grating to a lensed fiber, GDS export | −1.49 dB coupling efficiency at 1.35 µm |
| Meta-grating couplers on 400 nm SiN | Meep adjoint + Adam, conventional vs. two- and three-atom gratings, literature benchmark reproduced within 0.1 dB | Conventional −4.14 dB beats the meta-gratings; an a-Si overlay reaches −1.66 dB |
| Topological photonic crystals | MPB bands and Meep transport for spin-Hall and valley-Hall crystals; adjoint-optimized strip-to-edge-mode transitions | Wu–Hu gap reproduced to 0.1 %; transition transmission raised from 12 % to 87 % (spin) and 0 % to 84 % (valley) |
| SiN photonic-crystal nanocavities | 3D Meep FDTD and MPB for L3 and nanobeam cavities in a suspended 200 nm SiN membrane at 637 nm; Q, mode volume and Purcell factor | McCutcheon & Lončar 2008 nanobeam reproduced (peak Q 2.2×10⁵); own tapered nanobeam Q ~10⁶; L3 Q 3.0×10³ at V 1.13 (λ/n)³ |
Modeling assumptions
The 2D component library uses an effective-index cross-section with non-dispersive materials, a deliberate first-phase simplification. The grating couplers, the TFLN modulator and the meta-grating study resolve the real layer stack, the topological crystals use bulk silicon in 2D, and the 3D track runs full 3D FDTD. The repository README documents these assumptions in full.
Source
The code, notebooks, and cached design points are on GitHub.