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.

Workflow diagram: GDSFactory geometry, Meep FDTD simulation, S-parameter extraction, SAX circuit simulation, and GDS export.
Figure 1. Simulation-to-layout workflow. Each component is designed as a GDSFactory geometry, simulated in Meep, reduced to S-parameters, composed into circuits in SAX, and exported as GDS.

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

  1. 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.
  2. 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.
  3. Circuit composition. Circuits are wired together purely from those cached models, compared against ideal analytic models, and exported as GDS.

Examples

ComponentWhat is characterized
Straight and bent waveguidesTE mode, bend loss vs. radius, circular vs. Euler bends
Adjoint topology-optimized bendGradient-based geometry optimization, plus a fabrication-bias-robust variant
Directional couplerSplitting ratio and complex through/cross phase vs. gap and length
Racetrack and add-drop ring resonatorsResonance, extinction, and energy-conservation checks
Mach–Zehnder interferometer and modulatorInterference spectrum; push-pull Vπ
Grating couplerResolved x–z layer-stack cross-section
Thin-film lithium niobate MZMMPB 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

StudyMethodResult (simulated)
3D focusing grating couplerTrue 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 SiNMeep adjoint + Adam, conventional vs. two- and three-atom gratings, literature benchmark reproduced within 0.1 dBConventional −4.14 dB beats the meta-gratings; an a-Si overlay reaches −1.66 dB
Topological photonic crystalsMPB bands and Meep transport for spin-Hall and valley-Hall crystals; adjoint-optimized strip-to-edge-mode transitionsWu–Hu gap reproduced to 0.1 %; transition transmission raised from 12 % to 87 % (spin) and 0 % to 84 % (valley)
SiN photonic-crystal nanocavities3D Meep FDTD and MPB for L3 and nanobeam cavities in a suspended 200 nm SiN membrane at 637 nm; Q, mode volume and Purcell factorMcCutcheon & 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.

← All projects