r"""Top-gated graphene Josephson field-effect transistor (JoFET).
The device follows the wafer-scale CVD-graphene JoFETs of
:cite:`generalovWaferscaleCMOScompatibleGraphene2024`. A graphene mesa runs
between two Ti/Al contacts, and a Ti/Al top gate on an ALD
:math:`\text{Al}_2\text{O}_3` film tunes the supercurrent through it. The
films are extruded by :func:`~qpdk.tech.get_jofet_layer_stack`.
The default channel, :math:`L = 0.35\,\text{µm}` by
:math:`W = 20\,\text{µm}`, is the example device of the compact model
:cite:`gamaethigeVeroligACodeJosephson2026`. Here :math:`L` is the
source-drain spacing, the length of graphene between the contacts. The drawn
gate is longer, :math:`L + 2\,g_\text{overlap}`, so that it covers the whole
channel. Contact, gate and lead dimensions are illustrative, not taken from the
paper.
Transport runs along x with the source at -x and the drain at +x. The channel
width runs along y and the gate leaves towards +y. All lengths are in µm and
every dimension must be a positive multiple of 2 nm, so that the
centred geometry stays on the 1 nm grid.
``GRAPHENE`` marks the channel mesa. The layout keeps the two
``GRAPHENE_CONTACT`` polygons separate and isolates ``TOP_GATE`` from both.
The circuit model supplies the bias-dependent weak link.
References:
- :cite:`generalovWaferscaleCMOScompatibleGraphene2024`
- :cite:`gamaethigeVeroligACodeJosephson2026`
"""
from __future__ import annotations
import gdsfactory as gf
from gdsfactory.component import Component
from qpdk.cells._schematic import jofet_schematic
from qpdk.tech import LAYER
from qpdk.utils import add_rect
__all__ = ["jofet", "jofet_dc_witness", "jofet_gate_access"]
_GRID = 0.002 # µm, twice the 1 nm database unit
def _dbu(value: float) -> int:
"""``value`` in µm as a whole number of 1 nm database units."""
return round(value / (_GRID / 2))
def _check_grid(**values: float) -> None:
"""Raise if a dimension is not a positive multiple of 2 nm.
Raises:
ValueError: If a value is not positive or off the 2 nm grid.
"""
for name, value in values.items():
if value <= 0:
raise ValueError(f"{name} must be positive, got {value}")
if abs(value / _GRID - round(value / _GRID)) > 1e-6:
raise ValueError(f"{name}={value} µm must be a multiple of 2 nm")
[docs]
@gf.cell(tags=["junctions"], schematic_function=jofet_schematic)
def jofet(
channel_length: float = 0.35,
channel_width: float = 20.0,
contact_overlap: float = 1.0,
contact_length: float = 3.0,
contact_enclosure: float = 0.5,
gate_overlap: float = 0.1,
gate_extension: float = 1.0,
) -> Component:
r"""Intrinsic three-terminal graphene JoFET.
The graphene mesa runs ``contact_overlap`` under each contact. The top gate
covers the channel, overlaps each contact by ``gate_overlap`` across the
ALD film, and extends ``gate_extension`` past the contacts in y. Ports
``d``, ``s`` and ``g`` sit on the outer edges of the contacts and the gate.
Args:
channel_length: Source-drain spacing :math:`L` in µm.
channel_width: Graphene channel width :math:`W` in µm.
contact_overlap: Graphene length under each contact in µm.
contact_length: Contact length along x in µm.
contact_enclosure: Contact extension past the graphene edge in y, in µm.
gate_overlap: Gate overlap onto each contact in µm.
gate_extension: Gate extension past the contacts in y, in µm.
Returns:
Component with electrical ports ``d``, ``s`` and ``g``.
Raises:
ValueError: If a dimension is not a positive multiple of 2 nm, or if
the graphene or the gate does not end on the contacts.
"""
_check_grid(
channel_length=channel_length,
channel_width=channel_width,
contact_overlap=contact_overlap,
contact_length=contact_length,
contact_enclosure=contact_enclosure,
gate_overlap=gate_overlap,
gate_extension=gate_extension,
)
if contact_overlap >= contact_length:
raise ValueError("contact_overlap must be shorter than contact_length")
if gate_overlap >= contact_length:
raise ValueError("gate_overlap must be shorter than contact_length")
c = Component()
x_channel = channel_length / 2
x_edge = x_channel + contact_length
x_gate = x_channel + gate_overlap
y_graphene = channel_width / 2
y_contact = y_graphene + contact_enclosure
y_edge = y_contact + gate_extension
add_rect(
c,
LAYER.GRAPHENE,
x_center=0,
width=2 * (x_channel + contact_overlap),
y0=-y_graphene,
y1=y_graphene,
)
for sign in (-1, 1):
add_rect(
c,
LAYER.GRAPHENE_CONTACT,
x0=min(sign * x_channel, sign * x_edge),
x1=max(sign * x_channel, sign * x_edge),
y0=-y_contact,
y1=y_contact,
)
add_rect(c, LAYER.TOP_GATE, x_center=0, width=2 * x_gate, y0=-y_edge, y1=y_edge)
for name, sign in (("d", 1), ("s", -1)):
c.add_port(
name,
center=(sign * x_edge, 0),
width=2 * y_contact,
orientation=0 if sign > 0 else 180,
layer=LAYER.GRAPHENE_CONTACT,
port_type="electrical",
)
c.add_port(
"g",
center=(0, y_edge),
width=2 * x_gate,
orientation=90,
layer=LAYER.TOP_GATE,
port_type="electrical",
)
c.info["channel_length"] = channel_length
c.info["channel_width"] = channel_width
return c
[docs]
@gf.cell(tags=["junctions"], schematic_function=jofet_schematic)
def jofet_gate_access(
access_length: float = 10.0,
sd_access_width: float = 5.0,
gate_neck_length: float = 2.0,
gate_access_width: float = 2.0,
**kwargs: float,
) -> Component:
r"""Graphene JoFET with source, drain and gate access leads.
Source and drain leads run ``access_length`` outwards from the contacts in
the contact metal. The gate keeps its finger width for
``gate_neck_length`` past the device, then widens to ``gate_access_width``
for the rest of ``access_length``. The ports sit at the lead ends, so this
cell bounds the device with its feed parasitics.
Args:
access_length: Lead length beyond the device in µm.
sd_access_width: Source and drain lead width in µm.
gate_neck_length: Length of the narrow gate section in µm.
gate_access_width: Width of the wide gate lead in µm.
kwargs: Forwarded to :func:`jofet`.
Returns:
Component with electrical ports ``d``, ``s`` and ``g``.
Raises:
ValueError: If a dimension is not a positive multiple of 2 nm, a lead is
wider than its contact, the gate lead extends past the signal ports,
or the neck is not shorter than the lead.
"""
_check_grid(
access_length=access_length,
sd_access_width=sd_access_width,
gate_neck_length=gate_neck_length,
gate_access_width=gate_access_width,
)
c = Component()
device = c.add_ref(jofet(**kwargs))
drain, gate = device.ports["d"], device.ports["g"]
if sd_access_width > drain.width:
raise ValueError("sd_access_width must not exceed the contact width")
if gate_neck_length >= access_length:
raise ValueError("gate_neck_length must be shorter than access_length")
x_edge, y_edge = drain.center[0], gate.center[1]
x_out, y_out = x_edge + access_length, y_edge + access_length
if _dbu(gate_access_width) > _dbu(2 * x_out):
raise ValueError(
"gate_access_width must keep both signal ports at the cell boundary"
)
for sign in (-1, 1):
add_rect(
c,
LAYER.GRAPHENE_CONTACT,
x0=min(sign * x_edge, sign * x_out),
x1=max(sign * x_edge, sign * x_out),
y_center=0,
height=sd_access_width,
)
y_neck = y_edge + gate_neck_length
add_rect(c, LAYER.TOP_GATE, x_center=0, width=gate.width, y0=y_edge, y1=y_neck)
add_rect(
c, LAYER.TOP_GATE, x_center=0, width=gate_access_width, y0=y_neck, y1=y_out
)
for name, sign in (("d", 1), ("s", -1)):
c.add_port(
name,
center=(sign * x_out, 0),
width=sd_access_width,
orientation=0 if sign > 0 else 180,
layer=LAYER.GRAPHENE_CONTACT,
port_type="electrical",
)
c.add_port(
"g",
center=(0, y_out),
width=gate_access_width,
orientation=90,
layer=LAYER.TOP_GATE,
port_type="electrical",
)
for key in ("channel_length", "channel_width"):
c.info[key] = device.cell.info[key]
# The leads join the device ports with drawn metal, so no instance carries
# the cell ports. Absorb the device to make the cell a netlist leaf.
c.absorb(device)
return c
[docs]
@gf.cell(tags=["junctions"])
def jofet_dc_witness(
pad_size: float = 100.0,
pad_offset: float = 200.0,
sd_lead_width: float = 5.0,
gate_lead_width: float = 2.0,
kelvin: bool = True,
sense_width: float = 2.0,
sense_tap_offset: float = 20.0,
) -> Component:
r"""Graphene JoFET with access leads, routed to DC probe pads.
Pads ``s``, ``d`` and ``g`` sit ``pad_offset`` from the device centre at
-x, +x and +y. Source and drain pads are in the contact metal and the gate
pad in the gate metal. With ``kelvin=True``, two sense taps branch off the
source and drain leads ``sense_tap_offset`` beyond the
:func:`jofet_gate_access` ports and run to pads ``sense_s`` and
``sense_d`` at :math:`(\mp d, -d)`, with :math:`d` = ``pad_offset``. The
taps are four-wire wiring, so the device stays three-terminal. The voltage
they sense includes the access leads up to the taps.
Nothing is drawn over the :func:`jofet_gate_access` cell, so a witness
measures the same device that cell bounds.
Args:
pad_size: Square pad side in µm.
pad_offset: Distance of the pad centres from the device centre in µm.
sd_lead_width: Source and drain lead width in µm, also used for the
access leads.
gate_lead_width: Gate lead width in µm, also used for the wide gate
access lead.
kelvin: Add the two sense taps and their pads.
sense_width: Sense-tap width in µm.
sense_tap_offset: Tap distance beyond the access-lead ends in µm.
Returns:
Component with electrical ports ``d``, ``s`` and ``g`` at the outer pad
edges and, with ``kelvin``, ``sense_d`` and ``sense_s``.
Raises:
ValueError: If a dimension is not a positive multiple of 2 nm, or a pad
is narrower than its lead or overlaps the access leads, another
pad or, with ``kelvin``, a tap.
"""
_check_grid(
pad_size=pad_size,
pad_offset=pad_offset,
sd_lead_width=sd_lead_width,
gate_lead_width=gate_lead_width,
sense_width=sense_width,
sense_tap_offset=sense_tap_offset,
)
if pad_size < max(sd_lead_width, gate_lead_width, sense_width if kelvin else 0):
raise ValueError("pad_size must be at least the width of each connected lead")
c = Component()
device = c.add_ref(
jofet_gate_access(
sd_access_width=sd_lead_width, gate_access_width=gate_lead_width
)
)
x_device = device.ports["d"].center[0]
y_device = device.ports["g"].center[1]
half = pad_size / 2
x_pad = pad_offset - half
x_tap = x_device + sense_tap_offset
# Without taps, a pad only has to clear the access lead it continues.
x_clear = x_device
if kelvin:
if sense_tap_offset < sense_width / 2:
raise ValueError("The sense taps must start beyond the access leads")
x_clear = x_tap + sense_width / 2
# Compare on the database grid, where float sums of exact inputs can land
# either side of a touching edge.
if pad_size >= pad_offset or _dbu(x_pad) <= _dbu(x_clear):
raise ValueError("The pads must clear the device, the taps and each other")
if _dbu(y_device) >= _dbu(x_pad):
raise ValueError("The gate pad overlaps the device")
for sign in (-1, 1):
add_rect(
c,
LAYER.GRAPHENE_CONTACT,
x0=min(sign * x_device, sign * x_pad),
x1=max(sign * x_device, sign * x_pad),
y_center=0,
height=sd_lead_width,
)
if kelvin:
add_rect(
c,
LAYER.GRAPHENE_CONTACT,
x_center=sign * x_tap,
width=sense_width,
y0=-pad_offset - sense_width / 2,
y1=0,
)
add_rect(
c,
LAYER.GRAPHENE_CONTACT,
x0=min(sign * (x_tap - sense_width / 2), sign * x_pad),
x1=max(sign * (x_tap - sense_width / 2), sign * x_pad),
y_center=-pad_offset,
height=sense_width,
)
add_rect(
c, LAYER.TOP_GATE, x_center=0, width=gate_lead_width, y0=y_device, y1=x_pad
)
pads = {
"d": ((pad_offset, 0.0), LAYER.GRAPHENE_CONTACT, 0),
"s": ((-pad_offset, 0.0), LAYER.GRAPHENE_CONTACT, 180),
"g": ((0.0, pad_offset), LAYER.TOP_GATE, 90),
}
if kelvin:
pads["sense_d"] = ((pad_offset, -pad_offset), LAYER.GRAPHENE_CONTACT, 0)
pads["sense_s"] = ((-pad_offset, -pad_offset), LAYER.GRAPHENE_CONTACT, 180)
for name, ((x, y), layer, orientation) in pads.items():
add_rect(c, layer, x_center=x, width=pad_size, y_center=y, height=pad_size)
edge = {0: (x + half, y), 180: (x - half, y), 90: (x, y + half)}
c.add_port(
name,
center=edge[orientation],
width=pad_size,
orientation=orientation,
layer=layer,
port_type="electrical",
)
for key in ("channel_length", "channel_width"):
c.info[key] = device.cell.info[key]
# The leads join the device ports with drawn metal, so no instance carries
# the cell ports. Absorb the device to make the cell a netlist leaf.
c.absorb(device)
return c