Source code for qpdk.samples.jofet_switch_branch

# /// script
# requires-python = ">=3.12,<3.15"
# dependencies = [
#   "qpdk @ git+https://github.com/gdsfactory/quantum-rf-pdk.git",
# ]
# ///

r"""Gated series switch branch with one graphene JoFET.

The signal runs from the ``signal_in`` pad through the JoFET to the
``signal_out`` pad, and the gate is fed from a separate ``gate_bias`` pad. This
is one branch of the supercurrent multiplexer of
:cite:`paghiSupercurrentTimeDivision2024`, built on the graphene
device of :cite:`generalovWaferscaleCMOScompatibleGraphene2024`.

The terminal map is ``signal_in`` = drain ``d``, ``signal_out`` = source ``s``
and ``gate_bias`` = gate ``g``. The source, the gate drive and the output load
share the off-chip ground, so the gate voltage is referred to the source
through the load. The ports of :func:`~qpdk.cells.jofet.jofet_gate_access`
bound the device with its feed; the pads and long leads beyond them are passive
access. The notebook ``vacask_jofet_switch`` simulates the branch.
"""

import gdsfactory as gf

from qpdk.cells.jofet import jofet_dc_witness

#: Branch port and the JoFET terminal behind it.
TERMINALS = {"signal_in": "d", "signal_out": "s", "gate_bias": "g"}


[docs] @gf.cell(tags=["samples", "junctions"]) def jofet_switch_branch( pad_size: float = 100.0, pad_offset: float = 200.0 ) -> gf.Component: """Series JoFET between signal pads, with a separate gate feed. Args: pad_size: Square pad side in µm. pad_offset: Distance of the pad centres from the device centre in µm. Returns: Component with electrical ports ``signal_in`` at -x, ``signal_out`` at +x and ``gate_bias`` at +y. """ c = gf.Component() # Mirror the probe-pad cell so the signal enters on the left. branch = c.add_ref( jofet_dc_witness(pad_size=pad_size, pad_offset=pad_offset, kelvin=False), name="jofet", ).dmirror_x() for name, terminal in TERMINALS.items(): c.add_port(name, port=branch.ports[terminal]) c.info.update(branch.cell.info.model_dump()) return c
if __name__ == "__main__": from qpdk import PATH, PDK, logger PDK.activate() branch = jofet_switch_branch() gds_path = branch.write_gds(PATH.gds / "jofet_switch_branch.gds") logger.info(f"Wrote {gds_path}") branch.show()