Photonic chips
A chip scene places on-chip parts and routes waveguides between their ports. optodraw has 62 chip parts: couplers, splitters, rings, modulators, AWGs, detectors and lasers.
Draw it
Section titled “Draw it”Two coupled add-drop rings with heaters, after Borghi et al. (2019), Fig. 1. scene.route joins two ports
with a waveguide; the arrows mark the light in and out, in the paper’s colours.
# Two coupled add-drop rings with heaters, after Borghi et al., Sci. Rep. 9, 408 (2019), Fig. 1from optodraw import MicroringResonator, Scene, SignalArrow
scene = Scene(title="Photonic molecule", platform="on_chip")ring1 = scene.add(MicroringResonator(center=(-26, 0), add_drop=True, with_heater=True, label="1"))ring2 = scene.add(MicroringResonator(center=(26, 0), add_drop=True, with_heater=True, label="2"))scene.route((ring1, "o2"), (ring2, "o1"), kind="waveguide", color="#2b6cb0") # In busscene.route((ring1, "o4"), (ring2, "o3"), kind="waveguide", color="#2b6cb0") # Drop bus# the paper draws the heaters with no contacts and leaves the far ends of both buses openfor ring in (ring1, ring2): scene.leave_open(ring, "e1", "e2")scene.leave_open(ring2, "o2", "o4")# light in at the lower left, out of the drop port at the upper left, in the paper's colours: each arrow ends on# its bus (the ring's o1 and o3 ports), stacked 3 um apart round the bus linearrows = [("o1", "#e0302a", "Pump", True, 1.5), ("o1", "#2a5de0", "Idler", True, -1.5), ("o3", "#2aa84a", "Signal", False, 3.0), ("o3", "#2a5de0", "Idler", False, 0.0), ("o3", "#e0302a", "Pump", False, -3.0)]for port, colour, name, inward, dy in arrows: end = ring1.world_port(port).center ends = ((-14, 0), (-1, 0)) if inward else ((-1, 0), (-14, 0)) arrow = scene.add(SignalArrow(*ends, center=(end.x, end.y + dy), color=colour, label=name, width=1.0, head_size=2.5)) arrow.label_side = "left"scene.fit_frame(margin=8)sceneA Mach-Zehnder modulator with G-S-G electrodes, after Wolf et al. (2018), Fig. 1a. The library MZM with
drive_style="gsg" puts its two arms in the gaps of the line. It splits with Y branches; the paper uses MMIs.
# A Mach-Zehnder modulator with G-S-G electrodes, after Wolf et al., Sci. Rep. 8, 2598 (2018), Fig. 1afrom optodraw import MZM, Scene, SignalArrow
scene = Scene(title="SOH Mach-Zehnder modulator", platform="on_chip")# the library modulator: two arms in the gaps of a ground-signal-ground linemzm = scene.add(MZM(center=(0, 0), drive_style="gsg", label="SOH MZM"))scene.leave_open(mzm, "gnd1", "sig", "gnd2") # the paper draws the G-S-G line with no padsfor x, name in ((-65, "In"), (65, "Out")): # the light in and out, at the ports arrow = scene.add(SignalArrow((-8, 0), (8, 0), center=(x, 0), color="#333333", label=name))scene.fit_frame(margin=8)sceneNine modes through 36 MZIs, after Clements et al. (2016), Fig. 1b.
# A universal 9-mode interferometer: the rectangular mesh of 36 MZIs, after Clements et al., Optica 3, 1460 (2016), Fig. 1bfrom optodraw import MZI, EdgeCoupler, Scene
N, PITCH, STEP = 9, 32.0, 150.0 # modes; mode spacing and column spacing, in umscene = Scene(title="Clements mesh", platform="on_chip")
def y(mode): return (mode - (N - 1) / 2) * PITCH
# column k holds the MZIs on the mode pairs (k % 2, k % 2 + 1), (k % 2 + 2, ...): N (N - 1) / 2 in alllast = {} # mode -> the part and port the light leaves byfor mode in range(N): coupler = scene.add(EdgeCoupler(center=(-0.9 * STEP, y(mode)), label=str(mode + 1))) last[mode] = (coupler, "o1")for column in range(N): for low in range(column % 2, N - 1, 2): mzi = scene.add(MZI(center=(column * STEP, (y(low) + y(low + 1)) / 2), label="")) scene.leave_open(mzi, "h1", "h2") # the paper draws the phase shifters with no wires for mode, port_in, port_out in ((low, "o2", "o4"), (low + 1, "o1", "o3")): scene.route(last[mode], (mzi, port_in), kind="waveguide", path_type="smooth") last[mode] = (mzi, port_out)for mode in range(N): coupler = scene.add(EdgeCoupler(center=(N * STEP - 0.1 * STEP, y(mode)), angle=180, label=str(mode + 1))) scene.route(last[mode], (coupler, "o1"), kind="waveguide", path_type="smooth")scene.fit_frame(margin=10)sceneOptions
Section titled “Options”scene.route((a, "o2"), (b, "o1"), kind="waveguide", path_type="smooth"): a waveguide with real bends.steps=[{"x": ...}, {"y": ...}]: the corners a route must pass, for a fold or a lane.kind="electrical"orkind="fiber": wires and fibres between electrical or fibre ports.scene.leave_open(part, "e1"): a port the paper leaves open. ASignalArrowat a port marks the light.render_physical=True: draw a part at its true size instead of its schematic size.
What it supports
Section titled “What it supports”Grating and edge couplers, MMIs, Y branches and directional couplers, rings and racetracks, MZIs and modulators, AWGs and star couplers, Bragg gratings, detectors, lasers and SOAs, and the electronics beside them.
How it works
Section titled “How it works”Parts are drawn schematically by default: thin features are widened so they read on a page. Every chip part stands on one open process stack, the GDSFactory generic one: the slab and the doping share the core’s base, contacts rise from the slab to M1, and pads sit on top. In a schematic the oxide is drawn thinner; a scene with a foundry stack uses its heights. Routes attach to ports, never to the art. Before you call a layout done, render it and look: a route that crosses another, or a port left open, still draws cleanly.
References
Section titled “References”- Borghi, M., Trenti, A. and Pavesi, L. Four wave mixing control in a photonic molecule made by silicon microring resonators. Sci. Rep. 9, 408 (2019). doi:10.1038/s41598-018-36694-5
- Wolf, S. et al. Silicon-organic hybrid (SOH) Mach-Zehnder modulators for 100 Gbit/s on-off keying. Sci. Rep. 8, 2598 (2018). doi:10.1038/s41598-017-19061-8