Optical ring resonators are fundamental building blocks in silicon photonics—used for wavelength-division multiplexing, optical switches, and dispersion engineering.

In this short walkthrough, we'll simulate three classic regimes in pure Python using EMpy (ElectroMagnetic Python) (pip install ElectroMagneticPython):

  1. All-Pass Ring Resonator (APRR): group delay and chromatic dispersion.
  2. Single-Ring Add–Drop (SRR): lossless unitarity (|THRU|² + |DROP|² = 1) vs. Yariv critical coupling.
  3. 3-Ring CROW Filter (NRR): flat-top passband synthesis.

Open In Colab

Setup & Critical Coupling in 20 Lines

We model a 450 nm × 220 nm SOI strip waveguide (SWG) bent into a 10 µm-radius ring with 18 dB/cm propagation loss, and solve for the exact Yariv critical-coupling condition ($t_1 = t_2 a_{\text{rt}}$):

import numpy as np import EMpy wls = np.linspace(1.544e-6, 1.556e-6, 1201) swg = EMpy.devices.SWG(450, 220, 25).solve(wls) l_ring = 2.0 * np.pi * 10.0e-6 # 18 dB/cm propagation loss -> passive complex effective index (n_r - i*kappa) dn_loss = EMpy.utils.loss_dBcm2rix(0.0, 18.0, 1.55e-6) neff_lossy = swg.neff + dn_loss a_rt = float(np.abs(np.exp(-1j * (2 * np.pi / 1.55e-6) * dn_loss * l_ring))) # Yariv critical coupling on the THRU port k2 = np.sqrt(0.04) # 4% drop-bus coupling t2 = np.sqrt(1.0 - k2**2) k1_crit = np.sqrt(1.0 - (t2 * a_rt) ** 2) srr = EMpy.devices.SRR( EMpy.devices.Coupler(wls, k1_crit), EMpy.devices.Coupler(wls, k2), neff_lossy, 0.5 * l_ring, 0.5 * l_ring, ).solve() print(f"Min THRU transmission: {20 * np.log10(np.min(np.abs(srr.THRU))):.1f} dB") 

This produces a -30.6 dB critical-coupling extinction notch on the THRU port:

APRR group delay, SRR critical coupling, and 3-ring NRR CROW filter

Try It Yourself