MMI 1 x 4 power splitter#

Run this notebook in your browser using Binder.

Optical power splitters are essential components in integrated photonics. Power splitters based on multimode interference (MMI) device are easy to fabricate and can achieve low excess loss as well as large bandwidth. Although the design of a MMI power splitter is based on the self-imaging principle, fine-tuning the geometric parameters with accurate and fast numerical simulations is crucial to achieving optimal device performance.

This example aims to demonstrate the design and optimization of 1 to 4 MMI device at telecom wavelength for power splitting applications. The initial design is adapted from D. Malka, Y. Danan, Y. Ramon, Z. Zalevsky, A Photonic 1 x 4 Power Splitter Based on Multimode Interference in Silicon–Gallium-Nitride Slot Waveguide Structures. Materials. 9, 516 (2016).

The device uses a Si-GaN-Si slot waveguide strcuture as schematically shown below.

c56edf6c96924751aa8f33f562029228

Simulation Setup#

[1]:
import numpy as np
import matplotlib.pyplot as plt
import tidy3d as td
import tidy3d.web as web
from tidy3d.plugins import ModeSolver

[17:50:18] INFO     Using client version: 1.8.0                               __init__.py:112

Define materials. There are three materials involved in this model. The SiO2 cladding and the Si waveguide with GaN slot. All materials are modeled as lossless and dispersionless in this particular case.

[2]:
si = td.Medium(permittivity=3.48**2)
gan = td.Medium(permittivity=2.305**2)
sio2 = td.Medium(permittivity=1.444**2)

Define initial design parameters and wrap simulation setup in a function. The arguments of the function are the paremeters we want to optimize later. In this example, we aim to optimize the length and width of the MMI section.

[3]:
W_MMI = 5  # width of the MMI section
L_MMI = 11.2  # length of the MMI section
g1 = 0.9  # gap between the output waveguides
W1 = 0.4  # width of the waveguide
W2 = 0.8  # width of the tapper
L1 = 2  # length of the input tapper
L2 = 5  # length of the output tapper
H_Si = 0.3  # thickness of the Si layer
H_GaN = 0.1  # thickness of the GaN layer
g3 = (W2 - W1) / 2  # auxilary parameter defined for easier geometry building
g2 = g1 - 2 * g3  # gap between the output tapers
lda0 = 1.55  # central wavelength
freq0 = td.C_0 / lda0  # central frequency
ldas = np.linspace(1.45, 1.65, 101)  # wavelength range
freqs = td.C_0 / ldas  # frequency range

# buffer spacings in the x and y directions.
buffer_x = 1
buffer_y = 1.5

# define a function that takes the geometric parameters as input arguments and return a Simulation object
def make_sim(L_MMI, W_MMI):
    # the whole device is defined as a PolySlab with vertices given by the following
    vertices = np.array(
        [
            (-W1 / 2, -100),
            (-W1 / 2, 0),
            (-W2 / 2, L1),
            (-W_MMI / 2, L1),
            (-W_MMI / 2, L1 + L_MMI),
            (-g2 / 2 - W2 - g2 - 2 * g3 - W1, L1 + L_MMI),
            (-g2 / 2 - W2 - g2 - g3 - W1, L1 + L_MMI + L2),
            (-g2 / 2 - W2 - g2 - g3 - W1, 100),
            (-g2 / 2 - W2 - g2 - g3, 100),
            (-g2 / 2 - W2 - g2 - g3, L1 + L_MMI + L2),
            (-g2 / 2 - W2 - g2, L1 + L_MMI),
            (-g2 / 2 - W2, L1 + L_MMI),
            (-g1 / 2 - W1, L1 + L_MMI + L2),
            (-g1 / 2 - W1, 100),
            (-g1 / 2, 100),
            (-g1 / 2, L1 + L_MMI + L2),
            (-g2 / 2, L1 + L_MMI),
            (g2 / 2, L1 + L_MMI),
            (g1 / 2, L1 + L_MMI + L2),
            (g1 / 2, 100),
            (g1 / 2 + W1, 100),
            (g1 / 2 + W1, L1 + L_MMI + L2),
            (g2 / 2 + W2, L1 + L_MMI),
            (g2 / 2 + W2 + g2, L1 + L_MMI),
            (g2 / 2 + W2 + g2 + g3, L1 + L_MMI + L2),
            (g1 / 2 + W1 + g1, 100),
            (g1 / 2 + W1 + g1 + W1, 100),
            (g2 / 2 + W2 + g2 + g3 + W1, L1 + L_MMI + L2),
            (g2 / 2 + W2 + g2 + 2 * g3 + W1, L1 + L_MMI),
            (W_MMI / 2, L1 + L_MMI),
            (W_MMI / 2, L1),
            (W2 / 2, L1),
            (W1 / 2, 0),
            (W1 / 2, -100),
        ]
    )

    mmi_layer1 = td.Structure(
        geometry=td.PolySlab(
            vertices=vertices,
            axis=2,
            slab_bounds=(-H_Si - 0.5 * H_GaN, H_Si + 0.5 * H_GaN),
        ),
        medium=si,
    )
    mmi_layer2 = td.Structure(
        geometry=td.PolySlab(
            vertices=vertices, axis=2, slab_bounds=(-0.5 * H_GaN, 0.5 * H_GaN)
        ),
        medium=gan,
    )

    # simulation domain size
    Lx = W_MMI + 2 * buffer_x
    Ly = L1 + L_MMI + L2 + 2 * buffer_y
    Lz = 5 * (H_GaN * 2 + H_Si)
    sim_size = (Lx, Ly, Lz)

    mode_spec = td.ModeSpec(num_modes=5, target_neff=3)

    # add a mode source for excitation
    mode_source = td.ModeSource(
        center=(0, -buffer_y / 3, 0),
        size=(3 * W1, 0, 3 * (H_GaN * 2 + H_Si)),
        source_time=td.GaussianPulse(freq0=freq0, fwidth=freq0 / 10),
        direction="+",
        mode_spec=mode_spec,
        mode_index=0,
    )

    # add two flux monitors to monitor the transmission power at output waveguides
    flux_monitor1 = td.FluxMonitor(
        center=((g1 + W1) / 2, Ly - buffer_y, 0),
        size=(2 * W1, 0, 2 * W1),
        freqs=freqs,
        name="flux1",
    )

    flux_monitor2 = td.FluxMonitor(
        center=(3 * (g1 + W1) / 2, Ly - buffer_y, 0),
        size=(2 * W1, 0, 2 * W1),
        freqs=freqs,
        name="flux2",
    )

    # add two mode monitor to monitor the mode profiles at output waveguides
    mode_monitor1 = td.ModeMonitor(
        center=((g1 + W1) / 2, Ly - buffer_y, 0),
        size=(2 * W1, 0, 2 * W1),
        freqs=freqs,
        mode_spec=mode_spec,
        name="mode1",
    )

    mode_monitor2 = td.ModeMonitor(
        center=(3 * (g1 + W1) / 2, Ly - buffer_y, 0),
        size=(2 * W1, 0, 2 * W1),
        freqs=freqs,
        mode_spec=mode_spec,
        name="mode2",
    )

    # add a field monitor to monitor the field distribution
    field_monitor = td.FieldMonitor(
        center=(0, 0, 0), size=(td.inf, td.inf, 0), freqs=[freq0], name="field"
    )

    sim = td.Simulation(
        center=(0, Ly / 2 - buffer_y / 2, 0),
        size=sim_size,
        grid_spec=td.GridSpec.auto(min_steps_per_wvl=20, wavelength=td.C_0 / freq0),
        structures=[mmi_layer1, mmi_layer2],
        sources=[mode_source],
        monitors=[
            field_monitor,
            flux_monitor1,
            flux_monitor2,
            mode_monitor1,
            mode_monitor2,
        ],
        run_time=1e-11,
        boundary_spec=td.BoundarySpec.all_sides(boundary=td.PML()),
        medium=sio2,
    )
    return sim

Initial Design#

First, we simulate an initial design using the previously defined design parameters.

[4]:
f, (ax1, ax2) = plt.subplots(1, 2)
sim = make_sim(L_MMI, W_MMI)
sim.plot(z=0, ax=ax1)
sim.plot(y=-buffer_y / 3, ax=ax2)

<AxesSubplot: title={'center': 'cross section at y=-0.50'}, xlabel='x', ylabel='z'>
<Figure size 432x288 with 2 Axes>
../_images/notebooks_MMI_1x4_10_2.png

Before simulation, let’s inspect the waveguide modes supported in the slot waveguide to make sure we are using the correct excitation source.

[5]:
mode_spec = td.ModeSpec(num_modes=5, target_neff=3)
mode_solver = ModeSolver(
    simulation=sim,
    plane=td.Box(
        center=(0, -buffer_y / 3, 0), size=(3 * W1, 0, 3 * (H_GaN * 2 + H_Si))
    ),
    mode_spec=mode_spec,
    freqs=[freq0],
)
mode_data = mode_solver.solve()

The lowest order mode shows a strong field confinement between the Si area. This is the mode we want to use as excitation.

[6]:
mode_index = 0

f, (ax1, ax2, ax3) = plt.subplots(1, 3, tight_layout=True, figsize=(10, 3))
abs(mode_data.Ex.isel(mode_index=mode_index)).plot(x="x", y="z", ax=ax1, cmap="magma")
abs(mode_data.Ey.isel(mode_index=mode_index)).plot(x="x", y="z", ax=ax2, cmap="magma")
abs(mode_data.Ez.isel(mode_index=mode_index)).plot(x="x", y="z", ax=ax3, cmap="magma")

ax1.set_title("|Ex(x, y)|")
ax1.set_aspect("equal")
ax2.set_title("|Ey(x, y)|")
ax2.set_aspect("equal")
ax3.set_title("|Ez(x, y)|")
ax3.set_aspect("equal")
plt.show()

<Figure size 720x216 with 6 Axes>
../_images/notebooks_MMI_1x4_14_1.png

Submit simulation job to the server.

[7]:
job = web.Job(simulation=sim, task_name="mmi")
sim_data = job.run(path="data/simulation_data.hdf5")

[17:50:20] INFO     Using Tidy3D credentials from stored file.                     auth.py:70
[17:50:21] INFO     Authentication successful.                                     auth.py:30
           INFO     Created task 'mmi' with task_id                             webapi.py:120
                    'dcc145f5-e181-45d3-adea-a55e977d8a77'.                                  
[17:50:23] INFO     Maximum flex unit cost: 1.96                                webapi.py:248
           INFO     status = queued                                             webapi.py:257
[17:50:26] INFO     status = preprocess                                         webapi.py:269
[17:50:30] INFO     starting up solver                                          webapi.py:273
[17:50:41] INFO     running solver                                              webapi.py:279
[17:55:40] INFO     early shutoff detected, exiting.                            webapi.py:290
           INFO     status = postprocess                                        webapi.py:296
[17:55:51] INFO     status = success                                            webapi.py:302
           INFO     downloading file "output/monitor_data.hdf5" to              webapi.py:585
                    "data/simulation_data.hdf5"                                              
[17:55:52] INFO     loading SimulationData from data/simulation_data.hdf5       webapi.py:407

Visualize the field distribution.

[8]:
f, (ax1, ax2) = plt.subplots(1, 2, figsize=(10, 8))
sim_data.plot_field("field", "int", ax=ax1, f=freq0)
sim_data.plot_field("field", "Ez", ax=ax2, f=freq0)

<AxesSubplot: title={'center': 'cross section at z=0.00'}, xlabel='x', ylabel='y'>
<Figure size 720x576 with 4 Axes>
../_images/notebooks_MMI_1x4_18_2.png

Plot transmission on each output waveguide as well as the total excess loss. At the central wavelength of 1550 nm, the transimission power at the inner waveguide and outer waveguide differs by about 1%. The excess loss is about 0.4 dB.

[9]:
f, (ax1, ax2) = plt.subplots(1, 2, tight_layout=True, figsize=(10, 5))
T1 = sim_data["flux1"].flux
T2 = sim_data["flux2"].flux

plt.sca(ax1)
plt.plot(ldas, T1, ldas, T2)
plt.vlines(x=1.55, ymin=0.1, ymax=0.3, colors="black", ls="--")
plt.xlabel("Wavelength ($\mu m$)")
plt.ylabel("Transmission to output waveguide")
plt.legend(("Inner waveguide", "Outer waveguide"))

plt.sca(ax2)
excess_loss = -10 * np.log10(2 * (T1 + T2))
plt.plot(ldas, excess_loss)
plt.vlines(x=1.55, ymin=0, ymax=1, colors="black", ls="--")
plt.hlines(y=excess_loss[50], xmin=1.45, xmax=1.65, colors="black", ls="--")
plt.xlabel("Wavelength ($\mu m$)")
plt.ylabel("Excess loss (dB)")

Text(0, 0.5, 'Excess loss (dB)')
<Figure size 720x360 with 2 Axes>
../_images/notebooks_MMI_1x4_20_2.png

We can use the mode monitor to inspect the composition of each mode at the output. For the inner waveguide, we can see that the fundamental mode is dominant and a small amount of Mode 4 is excited.

[10]:
mode_amp = sim_data["mode1"].amps.sel(direction="+")
mode_power = np.abs(mode_amp) ** 2 / T1
plt.plot(ldas, mode_power)
plt.xlabel("Wavelength (nm)")
plt.ylabel("Power share (%)")
plt.legend(["Mode 0", "Mode 1", "Mode 2", "Mode 3", "Mode 4"])

<matplotlib.legend.Legend object at 0x7f8acb5ef850>
<Figure size 432x288 with 1 Axes>
../_images/notebooks_MMI_1x4_22_2.png

Optimization#

Further tuning of the geometric parameters is likely to improve the device’s performance further. We will perform a parameter sweep on two parameters to see if we can optimize the MMI. The goal is to achieve even power splitting among output waveguides while keeping the excess loss low.

The length of the MMI is swept from 11.1 to 11.2 \(\mu m\) in 50 nm step and the width from 4.8 to 5 \(\mu m\) in 100 nm step. This results in a total of 9 simulations. Since this is just a demonstration model, we limit the total number of simulations for the sake of time. In practice, one can perform much larger parameter sweeps to cover a larger parameter space.

[11]:
L_MMIs = np.linspace(11.1, 11.2, 3)  # MMI length varies from 11.1 to 11.2 um
W_MMIs = np.linspace(4.8, 5, 3)  # MMI width varies from 4.8 to 5 um

sims = {
    f"L_MMI={L_MMI:.2f};W_MMI={W_MMI:.2f}": make_sim(L_MMI, W_MMI)
    for L_MMI in L_MMIs
    for W_MMI in W_MMIs
}
batch = web.Batch(simulations=sims)
batch_results = batch.run(path_dir="data")

[17:56:00] INFO     Created task 'L_MMI=11.10;W_MMI=4.80' with task_id          webapi.py:120
                    'fc7919f6-8d63-431f-a42b-aa421fb8238a'.                                  
[17:56:01] INFO     Created task 'L_MMI=11.10;W_MMI=4.90' with task_id          webapi.py:120
                    '98fad598-d416-4e30-bc1a-014235e775ec'.                                  
[17:56:02] INFO     Created task 'L_MMI=11.10;W_MMI=5.00' with task_id          webapi.py:120
                    'fecc4695-1b10-4896-9f48-e051d55e5c27'.                                  
[17:56:03] INFO     Created task 'L_MMI=11.15;W_MMI=4.80' with task_id          webapi.py:120
                    'f81ac4ff-7fbe-49ce-a222-975eec1e2225'.                                  
[17:56:04] INFO     Created task 'L_MMI=11.15;W_MMI=4.90' with task_id          webapi.py:120
                    '4b9402c6-5946-471d-9057-512ee076938e'.                                  
[17:56:05] INFO     Created task 'L_MMI=11.15;W_MMI=5.00' with task_id          webapi.py:120
                    'c5484c3e-66d6-44a5-a176-3eb404e345ae'.                                  
           INFO     Created task 'L_MMI=11.20;W_MMI=4.80' with task_id          webapi.py:120
                    '8fb7742e-9111-4aa1-8bb8-1d2598de7d7d'.                                  
[17:56:06] INFO     Created task 'L_MMI=11.20;W_MMI=4.90' with task_id          webapi.py:120
                    '3b2a66ca-11c5-40e2-bb59-a3d962691aa7'.                                  
[17:56:07] INFO     Created task 'L_MMI=11.20;W_MMI=5.00' with task_id          webapi.py:120
                    '8a2cee3d-fcc9-4d23-b4a8-7b982f9513fc'.                                  
[17:56:26] Started working on Batch.                                         container.py:361

Parse flux data into numpy arrays.

[12]:
T1 = np.zeros((len(L_MMIs), len(W_MMIs)))
T2 = np.zeros((len(L_MMIs), len(W_MMIs)))
for i, L_MMI in enumerate(L_MMIs):
    for j, W_MMI in enumerate(W_MMIs):
        sim_data = batch_results[f"L_MMI={L_MMI:.2f};W_MMI={W_MMI:.2f}"]
        t1 = sim_data["flux1"].flux
        T1[i, j] = t1[50]  # the index 50 corresponds to the wavelength of 1550 nm
        t2 = sim_data["flux2"].flux
        T2[i, j] = t2[50]

[18:24:59] INFO     downloading file "output/monitor_data.hdf5" to              webapi.py:585
                    "data/fc7919f6-8d63-431f-a42b-aa421fb8238a.hdf5"                         
[18:25:00] INFO     loading SimulationData from                                 webapi.py:407
                    data/fc7919f6-8d63-431f-a42b-aa421fb8238a.hdf5                           
           INFO     downloading file "output/monitor_data.hdf5" to              webapi.py:585
                    "data/98fad598-d416-4e30-bc1a-014235e775ec.hdf5"                         
[18:25:02] INFO     loading SimulationData from                                 webapi.py:407
                    data/98fad598-d416-4e30-bc1a-014235e775ec.hdf5                           
           INFO     downloading file "output/monitor_data.hdf5" to              webapi.py:585
                    "data/fecc4695-1b10-4896-9f48-e051d55e5c27.hdf5"                         
[18:25:04] INFO     loading SimulationData from                                 webapi.py:407
                    data/fecc4695-1b10-4896-9f48-e051d55e5c27.hdf5                           
           INFO     downloading file "output/monitor_data.hdf5" to              webapi.py:585
                    "data/f81ac4ff-7fbe-49ce-a222-975eec1e2225.hdf5"                         
[18:25:05] INFO     loading SimulationData from                                 webapi.py:407
                    data/f81ac4ff-7fbe-49ce-a222-975eec1e2225.hdf5                           
           INFO     downloading file "output/monitor_data.hdf5" to              webapi.py:585
                    "data/4b9402c6-5946-471d-9057-512ee076938e.hdf5"                         
[18:25:07] INFO     loading SimulationData from                                 webapi.py:407
                    data/4b9402c6-5946-471d-9057-512ee076938e.hdf5                           
           INFO     downloading file "output/monitor_data.hdf5" to              webapi.py:585
                    "data/c5484c3e-66d6-44a5-a176-3eb404e345ae.hdf5"                         
[18:25:08] INFO     loading SimulationData from                                 webapi.py:407
                    data/c5484c3e-66d6-44a5-a176-3eb404e345ae.hdf5                           
[18:25:09] INFO     downloading file "output/monitor_data.hdf5" to              webapi.py:585
                    "data/8fb7742e-9111-4aa1-8bb8-1d2598de7d7d.hdf5"                         
[18:25:15] INFO     loading SimulationData from                                 webapi.py:407
                    data/8fb7742e-9111-4aa1-8bb8-1d2598de7d7d.hdf5                           
           INFO     downloading file "output/monitor_data.hdf5" to              webapi.py:585
                    "data/3b2a66ca-11c5-40e2-bb59-a3d962691aa7.hdf5"                         
[18:25:16] INFO     loading SimulationData from                                 webapi.py:407
                    data/3b2a66ca-11c5-40e2-bb59-a3d962691aa7.hdf5                           
[18:25:17] INFO     downloading file "output/monitor_data.hdf5" to              webapi.py:585
                    "data/8a2cee3d-fcc9-4d23-b4a8-7b982f9513fc.hdf5"                         
[18:25:18] INFO     loading SimulationData from                                 webapi.py:407
                    data/8a2cee3d-fcc9-4d23-b4a8-7b982f9513fc.hdf5                           

Visualize power difference between outputs as well as the excess loss. The optimal design would have both values as close to 0 as possible. From the plots, we can see that in this parameter range, the smallest power different does not coincide with the lowest excess loss. If we prioritize small power difference, for example, L_MMI = 11.15 \(\mu m\) and W_MMI = 4.9 \(\mu m\) would be a good design choice.

[13]:
f, (ax1, ax2) = plt.subplots(1, 2, tight_layout=True, figsize=(10, 5))
plt.sca(ax1)
plt.pcolor(W_MMIs, L_MMIs, np.abs(T1 - T2), vmin=0, vmax=0.02, cmap="binary")
plt.colorbar()
plt.title("Power difference between inner and outer waveguides")
plt.xlabel("W_MMI ($\mu m$)")
plt.ylabel("L_MMI ($\mu m$)")
plt.sca(ax2)
plt.pcolor(
    W_MMIs, L_MMIs, -10 * np.log10(2 * (T1 + T2)), vmin=0, vmax=0.25, cmap="binary"
)
plt.colorbar()
plt.title("Excess loss (dB)")
plt.xlabel("W_MMI ($\mu m$)")
plt.ylabel("L_MMI ($\mu m$)")

Text(0, 0.5, 'L_MMI ($\\mu m$)')
<Figure size 720x360 with 4 Axes>
../_images/notebooks_MMI_1x4_29_2.png

Plot field intensity for the optimal design.

[14]:
sim_data = batch_results["L_MMI=11.15;W_MMI=4.90"]
f, ax = plt.subplots(1, 1, figsize=(10, 10))
sim_data.plot_field("field", "int", ax=ax, f=freq0)

[18:25:19] INFO     loading SimulationData from                                 webapi.py:407
                    data/4b9402c6-5946-471d-9057-512ee076938e.hdf5                           
<AxesSubplot: title={'center': 'cross section at z=0.00'}, xlabel='x', ylabel='y'>
<Figure size 720x720 with 2 Axes>
../_images/notebooks_MMI_1x4_31_3.png

Plot transmission on each output waveguide as well as the total excess loss. For this design, at the central wavelength of 1.55 \(\mu m\), the power on each power is roughly equal. The total excess loss is below 0.2 dB.

[15]:
f, (ax1, ax2) = plt.subplots(1, 2, tight_layout=True, figsize=(10, 5))
T1 = sim_data["flux1"].flux
T2 = sim_data["flux2"].flux

plt.sca(ax1)
plt.plot(ldas, T1, ldas, T2)
plt.vlines(x=1.55, ymin=0.1, ymax=0.3, colors="black", ls="--")
plt.xlabel("Wavelength ($\mu m$)")
plt.ylabel("Transmission to output")
plt.legend(("Inner output", "Outer outport"))

plt.sca(ax2)
excess_loss = -10 * np.log10(2 * (T1 + T2))
plt.plot(ldas, excess_loss)
plt.vlines(x=1.55, ymin=0, ymax=1, colors="black", ls="--")
plt.hlines(y=excess_loss[50], xmin=1.45, xmax=1.65, colors="black", ls="--")
plt.xlabel("Wavelength ($\mu m$)")
plt.ylabel("Excess loss (dB)")

Text(0, 0.5, 'Excess loss (dB)')
<Figure size 720x360 with 2 Axes>
../_images/notebooks_MMI_1x4_33_2.png

In principle, the design can be further optimized by tuning other parameters such as gap size, tapper width, etc. if even lower excess loss is required. Finally, we can see the mode decomposition at the inner output waveguide. The fundamental mode is still dominant.

[16]:
mode_amp = sim_data["mode1"].amps.sel(direction="+")
mode_power = np.abs(mode_amp) ** 2 / T1
plt.plot(ldas, mode_power)
plt.xlabel("Wavelength ($\mu m$)")
plt.ylabel("Power fraction of the modes (%)")
plt.legend(["Mode 0", "Mode 1", "Mode 2", "Mode 3", "Mode 4"])

<matplotlib.legend.Legend object at 0x7f8acb5d59d0>
<Figure size 432x288 with 1 Axes>
../_images/notebooks_MMI_1x4_35_2.png
[ ]: