Edge Coupler

498e88c4ebf14ff88365c8d103e190f7

In this example, we’ll explore the simulation of edge couplers using PhotonForge. Edge couplers are essential components for efficiently coupling light into and out of photonic chips. Typically, optimized edge coupler designs minimize both the insertion loss and the return loss. The geometry of the edge coupler and the medium between the fiber and chip facet significantly impact these performance metrics.

This notebook demonstrates how to use 3D Gaussian Ports in to simulate light emission from a fiber, providing an intuitive approach to simulating scattering matrices for edge couplers. To see how they can also be used with vertical coupling, please refer to the grating coupler example.

We first begin by showing how to set up a Gaussian port to compute the scattering matrix for a simple inverse taper edge coupler. After that, we also look at designing an improved version with an angled edge coupler.

[1]:
import photonforge as pf
import tidy3d as td
import numpy as np
import matplotlib.pyplot as plt
import tidy3d.web as web

We will use the basic technology for Silicon photonics that comes with PhotonForge. One parameter that we will require for positioning our Gaussian port is the thickness of the core layer of our device, so we set it here as well.

[2]:
core_thickness = 0.22

tech = pf.basic_technology(core_thickness=0.22)
pf.config.default_technology = tech

Simple Inverse Taper

Let’s build a parametric component to specify our edge coupler, including its ports and model.

We will use the default strip waveguide as base for the inverse taper, so we get a few dimensions from it, knowing that in the basic technology, waveguides are always surrounded by a cladding region.

[3]:
port_spec = tech.ports["Strip"]
core_width, _ = port_spec.path_profile_for("WG_CORE")
clad_width, _ = port_spec.path_profile_for("WG_CLAD")
[4]:
@pf.parametric_component
def create_edge_coupler(*, width_tip=0.1, length_taper=10, waist_radius=2.0):
    component = pf.Component()
    component.add(
        "WG_CORE",
        pf.stencil.linear_taper(length_taper, (width_tip, core_width)),
        "WG_CLAD",
        pf.stencil.linear_taper(length_taper, (4 * waist_radius, clad_width)),
    )

    # The Gaussian port must be placed over homogeneous medium, so we add a tiny gap from the taper tip
    port_fiber = pf.GaussianPort(
        center=(-width_tip / 2, 0, core_thickness / 2),
        input_vector=(1, 0, 0),
        waist_radius=waist_radius,
        polarization_angle=0,  # for TE mode, in this case
    )
    port_waveguide = pf.Port((length_taper, 0), 180, port_spec)

    component.add_port([port_fiber, port_waveguide])

    model = pf.Tidy3DModel(
        port_symmetries=[("P0", "P1", {"P1": "P0"})],
        symmetry=(0, -1, 0),
    )
    component.add_model(model, "Tidy3D")
    return component


create_edge_coupler()
[4]:
../_images/examples_Edge_Coupler_6_0.svg

Note that we have defined Gaussian port as a source to inject light directly into the waveguide, which is not realistic. We will improve on that later.

For now, let’s create an inverse taper edge coupler with a 150 nm tip and a taper length of 25 μm. We will assume that we are using a lensed fiber of 2.5 μm spot size to couple light into the chip.

[5]:
edge_coupler = create_edge_coupler(
    width_tip=0.15,
    length_taper=25,
    waist_radius=2.5 / 2,
)
edge_coupler
[5]:
../_images/examples_Edge_Coupler_8_0.svg

Let’s plot the simulation domain to make sure the Gaussian port is setup properly.

[6]:
wavelengths = np.linspace(1.5, 1.6, 21)

_, ax = plt.subplots(1, 2, figsize=(10, 3), tight_layout=True)

sims = edge_coupler.models["Tidy3D"].get_simulations(edge_coupler, pf.C_0 / wavelengths)
_ = sims["P0@0"].plot(z=0, ax=ax[0])
_ = sims["P0@0"].plot(y=0, ax=ax[1])
../_images/examples_Edge_Coupler_10_0.png

Next, we compute and plot the S matrix:

[7]:
_ = pf.plot_s_matrix(edge_coupler.s_matrix(pf.C_0 / wavelengths), y="dB", threshold=0.2)
Starting...
Loading cached simulation from .tidy3d/pf_cache/7DG/fdtd_info-MUV3T56OP47UXZQYQOKVR36OVVZORWG3SNSYZZCOVP6R4B3KZTKQ.json.
Loading cached simulation from .tidy3d/pf_cache/7DG/ms_info-UQKQZS7CL7KEK5GJWDCBMC3DLKW22VMYMETA26WI73JUYVMHERQA.json.
Progress: 100%
../_images/examples_Edge_Coupler_12_1.png

We see an insertion loss below 0.9 dB in the whole wavelength range when the Gaussian mode is launched right at the tip of the edge coupler. The return loss is quite low overall, well below -40 dB.

However, in real devices, the Gaussian mode is launched through a lensed or cleaved single mode fiber at some distance away from the chip. More importantly, the gap between the fiber and the chip might have an index matching fluid with index of refraction that tries to match the waveguide cladding.

Next, we will simulate two different cases with the fiber positioned at a fixed distance from the chip: with and without the index matching fluid.

Air Gap

Since our current technology specifies SiO₂ as the background medium we need to define the region with air beyond the chip facet. In the basic technology we can use the “TRENCH” layer to open an air gap anywhere in the component.

[8]:
tech.layers
[8]:
{'TRENCH': LayerSpec(layer=(4, 0), description="Deep-etched trench for chip facets", color="#48a78618", pattern="+"),
 'SLAB': LayerSpec(layer=(3, 0), description="Slab region", color="#f3840018", pattern=":"),
 'WG_CORE': LayerSpec(layer=(2, 0), description="Waveguide core", color="#0067a518", pattern="/"),
 'WG_CLAD': LayerSpec(layer=(1, 0), description="Waveguide clad", color="#84848218", pattern=".")}
[9]:
tech.extrusion_specs
[9]:
[ExtrusionSpec(mask_spec=MaskSpec((2, 0)), medium=PoleResidue(attrs={}, name=None, frequency_range=(21413747041496.2, 249827048817455.7), allow_gain=False, nonlinear_spec=None, modulation_spec=None, heat_spec=None, type='PoleResidue', eps_inf=1.0, poles=((6241549589084091j, -3.3254308736142404e+16j),)), limits=(0, 0.22), sidewall_angle=0),
 ExtrusionSpec(mask_spec=MaskSpec((3, 0)), medium=PoleResidue(attrs={}, name=None, frequency_range=(21413747041496.2, 249827048817455.7), allow_gain=False, nonlinear_spec=None, modulation_spec=None, heat_spec=None, type='PoleResidue', eps_inf=1.0, poles=((6241549589084091j, -3.3254308736142404e+16j),)), limits=(0, 0.07), sidewall_angle=0),
 ExtrusionSpec(mask_spec=MaskSpec((4, 0)), medium=Medium(attrs={}, name=None, frequency_range=None, allow_gain=False, nonlinear_spec=None, modulation_spec=None, heat_spec=None, type='Medium', permittivity=1.0, conductivity=0.0), limits=(-2e+07, 2e+07), sidewall_angle=0)]

When we create the model, we want the trench to extend over the absorbing boundaries, but, by default, the Tidy3D model will include all structures in the component, including the whole trench.

We can override the simulation bounds by setting the bounds argument in the model. We can set the bounds for the lower x limit and both y limits based on the component geometry. The limits we don’t want to change can be set to None.

[10]:
@pf.parametric_component
def create_edge_coupler_with_facet(
    *, width_tip=0.1, length_taper=10, waist_radius=2.0, fiber_distance=3.0, trench_layer="TRENCH"
):
    component = pf.Component()
    component.add(
        "WG_CORE",
        pf.stencil.linear_taper(length_taper, (width_tip, core_width)),
        "WG_CLAD",
        pf.stencil.linear_taper(length_taper, (4 * waist_radius, clad_width)),
        trench_layer,
        # We use the waist radius as a measure for the added trench size and simulation bounds
        pf.Rectangle(
            (-fiber_distance - 10 * waist_radius, -10 * waist_radius), (0, 10 * waist_radius)
        ),
    )

    port_fiber = pf.GaussianPort(
        center=(-fiber_distance, 0, core_thickness / 2),
        input_vector=(1, 0, 0),
        waist_radius=waist_radius,
        polarization_angle=0,  # for TE mode, in this case
    )
    port_waveguide = pf.Port((length_taper, 0), 180, port_spec)

    component.add_port([port_fiber, port_waveguide])

    model = pf.Tidy3DModel(
        port_symmetries=[("P0", "P1", {"P1": "P0"})],
        symmetry=(0, -1, 0),
        bounds=(
            (-fiber_distance - core_thickness, -3 * waist_radius, None),
            (None, 3 * waist_radius, None),
        ),
    )
    component.add_model(model, "Tidy3D")
    return component


create_edge_coupler_with_facet()
[10]:
../_images/examples_Edge_Coupler_18_0.svg

We will specify that the fiber is about 3 um from the chip facet.

[11]:
edge_coupler = create_edge_coupler_with_facet(
    width_tip=0.15,
    length_taper=25,
    waist_radius=2.5 / 2,
    fiber_distance=3,
)
edge_coupler
[11]:
../_images/examples_Edge_Coupler_20_0.svg
[12]:
_, ax = plt.subplots(1, 2, figsize=(10, 3), tight_layout=True)

sims = edge_coupler.models["Tidy3D"].get_simulations(edge_coupler, pf.C_0 / wavelengths)
_ = sims["P0@0"].plot(z=0, ax=ax[0])
_ = sims["P0@0"].plot(y=0, ax=ax[1])
../_images/examples_Edge_Coupler_21_0.png
[13]:
s_matrix_air = edge_coupler.s_matrix(pf.C_0 / wavelengths)
_ = pf.plot_s_matrix(s_matrix_air, y="dB")
Starting...
Loading cached simulation from .tidy3d/pf_cache/7TH/fdtd_info-S4D6AVND3EEY5BZZQIN53URCN2C5UBTWPUKYEPXTEZMJ55JZDSEQ.json.
Loading cached simulation from .tidy3d/pf_cache/7TH/ms_info-7UVX7526QQPG7EC3DR5LJM5JIUNSUEKBKUHHBBI7HFYH3OP6WGVA.json.
Progress: 100%
../_images/examples_Edge_Coupler_22_1.png

As expected, we see approximately 2.7 dB extra loss coming both from the added distance between the source and the chip, and the reflection from the refractive index mismatch. Moreover, we see an increased return loss of around -17 dB, which may be undesirable for some applications.

Index-Matched Gap

In real devices, index matching fluid or packaging epoxy can be used to not only improve the coupling efficiency but also to provide structural support post packaging. In order to see how adding an index matching layer affects the coupling losses while keeping the fiber at a fixed distance away from the chip we will define a new layer and an extrusion specification.

We could, in this case, set the basic technology parameter trench_medium to the index matching fluid to the same effect, but this is a good example of technology customization that might be useful in cases where the technology function does not provide enough flexibility.

First, we define and add the new layer:

[14]:
matching_layer = pf.LayerSpec(
    (5, 0), "Index matching region", color=(30, 30, 155, 100), pattern="\\"
)
tech.add_layer("INDEX_MATCHING", matching_layer)
tech.layers
[14]:
{'TRENCH': LayerSpec(layer=(4, 0), description="Deep-etched trench for chip facets", color="#48a78618", pattern="+"),
 'SLAB': LayerSpec(layer=(3, 0), description="Slab region", color="#f3840018", pattern=":"),
 'WG_CORE': LayerSpec(layer=(2, 0), description="Waveguide core", color="#0067a518", pattern="/"),
 'INDEX_MATCHING': LayerSpec(layer=(5, 0), description="Index matching region", color="#1e1e9b64", pattern="\"),
 'WG_CLAD': LayerSpec(layer=(1, 0), description="Waveguide clad", color="#84848218", pattern=".")}

Then, we create a new extrusion specification to extrude the structures in our new layer with the appropriate dimensions and medium. Typically, the index of the index matching layer is close to but lower than the index of the SiO₂ cladding, so we will use refractive index of 1.4 for this simulation.

Note that this extrusion will be inserted after the core and slab extrusion rules, because we might want to override the structures from those steps with the index matching region.

[15]:
medium_index_matching = td.Medium(permittivity=1.4**2, name="INDEX_MATCHING")
matching_extrusion = pf.ExtrusionSpec(
    pf.MaskSpec("INDEX_MATCHING"), medium_index_matching, (-pf.Z_INF, pf.Z_INF)
)
tech.insert_extrusion_spec(len(tech.extrusion_specs), matching_extrusion)
tech.extrusion_specs
[15]:
[ExtrusionSpec(mask_spec=MaskSpec((2, 0)), medium=PoleResidue(attrs={}, name=None, frequency_range=(21413747041496.2, 249827048817455.7), allow_gain=False, nonlinear_spec=None, modulation_spec=None, heat_spec=None, type='PoleResidue', eps_inf=1.0, poles=((6241549589084091j, -3.3254308736142404e+16j),)), limits=(0, 0.22), sidewall_angle=0),
 ExtrusionSpec(mask_spec=MaskSpec((3, 0)), medium=PoleResidue(attrs={}, name=None, frequency_range=(21413747041496.2, 249827048817455.7), allow_gain=False, nonlinear_spec=None, modulation_spec=None, heat_spec=None, type='PoleResidue', eps_inf=1.0, poles=((6241549589084091j, -3.3254308736142404e+16j),)), limits=(0, 0.07), sidewall_angle=0),
 ExtrusionSpec(mask_spec=MaskSpec((4, 0)), medium=Medium(attrs={}, name=None, frequency_range=None, allow_gain=False, nonlinear_spec=None, modulation_spec=None, heat_spec=None, type='Medium', permittivity=1.0, conductivity=0.0), limits=(-2e+07, 2e+07), sidewall_angle=0),
 ExtrusionSpec(mask_spec=MaskSpec((5, 0)), medium=Medium(attrs={}, name='INDEX_MATCHING', frequency_range=None, allow_gain=False, nonlinear_spec=None, modulation_spec=None, heat_spec=None, type='Medium', permittivity=1.9599999999999997, conductivity=0.0), limits=(-2e+07, 2e+07), sidewall_angle=0)]
[16]:
edge_coupler = create_edge_coupler_with_facet(
    width_tip=0.15,
    length_taper=25,
    waist_radius=2.5 / 2,
    fiber_distance=3,
    trench_layer="INDEX_MATCHING",
)
edge_coupler
[16]:
../_images/examples_Edge_Coupler_28_0.svg

Next, we calculate the S parameters and plot it.

[17]:
s_matrix_matched = edge_coupler.s_matrix(pf.C_0 / wavelengths)
_ = pf.plot_s_matrix(s_matrix_matched, y="dB")
Starting...
Loading cached simulation from .tidy3d/pf_cache/F5S/fdtd_info-K2OQFJQBHZSGSGM64EESLLTTRB5KUOII2TJ4YCQ3RISF2CE7ETCA.json.
Loading cached simulation from .tidy3d/pf_cache/F5S/ms_info-IFK3ZNOD6ERMVYVAV2H3A4DSDONAZWCAOLC4YRTQOOU3WLKZVQ4Q.json.
Progress: 100%
../_images/examples_Edge_Coupler_30_1.png

By introducing the index matching region, we are able to increase the coupling efficiency by 1 dB, as well as reduce the return losses to less than -30 dB. From this point, we could further characterize how the position and angular alignment of the fiber affects the insertion and return losses.

Another interesting possibility is to use an angled taper to minimize return losses, which is critical in some applications and offers us the opportunity to demonstrate angled waveguide and Gaussian ports.

Angled Inverse Taper

We will begin by creating a parametric function that allows us to create an angled edge coupler. At the output of the edge coupler, we will create an angled port.

[18]:
@pf.parametric_component
def create_angled_edge_coupler_with_facet(
    *,
    width_tip=0.1,
    length_taper=10,
    angle_taper=7,
    waist_radius=2.0,
    fiber_distance=3.0,
    angle_fiber=10.2,
    trench_layer="TRENCH"
):

    v_taper = np.array((np.cos(angle_taper / 180 * np.pi), np.sin(angle_taper / 180 * np.pi)))
    v_fiber = np.array((np.cos(angle_fiber / 180 * np.pi), np.sin(angle_fiber / 180 * np.pi)))

    component = pf.Component()
    component.add(
        "WG_CORE",
        pf.Path(-waist_radius * v_taper, width_tip)
        .segment((0, 0))
        .segment(length_taper * v_taper, core_width),
        "WG_CLAD",
        pf.Path(-waist_radius * v_taper, 4 * waist_radius)
        .segment((0, 0))
        .segment(length_taper * v_taper, clad_width),
        trench_layer,
        pf.Rectangle(
            (-fiber_distance - 10 * waist_radius, -10 * waist_radius), (0, 10 * waist_radius)
        ),
    )

    fiber_center = -fiber_distance * v_fiber
    port_fiber = pf.GaussianPort(
        center=(fiber_center[0], fiber_center[1], core_thickness / 2),
        input_vector=(v_fiber[0], v_fiber[1], 0),
        waist_radius=waist_radius,
        polarization_angle=0,  # for TE mode, in this case
    )
    port_waveguide = pf.Port(length_taper * v_taper, angle_taper + 180, port_spec)

    component.add_port([port_fiber, port_waveguide])

    model = pf.Tidy3DModel(
        port_symmetries=[("P0", "P1", {"P1": "P0"})],
        bounds=(
            (-fiber_distance - core_thickness, -3 * waist_radius, None),
            (None, max(3 * waist_radius, port_waveguide.center[1] + port_spec.width / (2 * v_taper[0])), None),
        ),
    )
    component.add_model(model, "Tidy3D")
    return component


create_angled_edge_coupler_with_facet()
[18]:
../_images/examples_Edge_Coupler_33_0.svg
[19]:
angle_fiber = 15  # in degrees
# Fresnel diffraction
angle_taper = np.arcsin(np.sin(angle_fiber / 180 * np.pi) / 1.45) / np.pi * 180
print(f"Taper angle: {angle_taper}°")

edge_coupler = create_angled_edge_coupler_with_facet(
    width_tip=0.15,
    length_taper=25,
    angle_taper=angle_taper,
    waist_radius=2.5 / 2,
    fiber_distance=3,
    angle_fiber=angle_fiber,
    trench_layer="TRENCH",
)
edge_coupler
Taper angle: 10.282162084410936°
[19]:
../_images/examples_Edge_Coupler_34_1.svg
[20]:
_, ax = plt.subplots(1, 2, figsize=(10, 3), tight_layout=True)

sims = edge_coupler.models["Tidy3D"].get_simulations(edge_coupler, pf.C_0 / wavelengths)
_ = sims["P0@0"].plot(z=0, ax=ax[0])
_ = sims["P0@0"].plot(y=0, ax=ax[1])
../_images/examples_Edge_Coupler_35_0.png
[21]:
s_matrix_tilted = edge_coupler.s_matrix(pf.C_0 / wavelengths)
_ = pf.plot_s_matrix(s_matrix_tilted, y="dB")
Starting...
Loading cached simulation from .tidy3d/pf_cache/HF5/fdtd_info-XYV6B45AGKIFVVH3DJEERWHIWYKIF3YCCZFO76CHJ3TAGLAPQI4Q.json.
Progress: 100%
../_images/examples_Edge_Coupler_36_1.png

We see that the insertion loss has essentially remained the same when compared to the straight edge coupler with air gap, but the return loss has improved more than 6 dB.