---
myst:
html_meta:
description: Cross-sections of the QPDK layer stacks, showing every physical level of the base, flip-chip, backside and gatemon stacks with its material, thickness, height and GDS layer.
---
# Layer Stack
`qpdk.tech.LAYER_STACK` gives each GDS layer a material, a thickness and a height `zmin`. Field solvers and 3D views
extrude the layout from it. The figure below shows every level of every stack. The main cross-section is
`LAYER_STACK_FLIP_CHIP_BACKSIDE`, which holds the base stack, the flip-chip top chip and the backside metal of both
chips, with heights measured from the top of the bottom silicon substrate. The panel on the right shows the gatemon
films.

Notes:
- `M1_ground` has no drawn layer of its own. It is derived as `SIM_AREA` minus `M1_ETCH` and `M1_DRAW`, so the solver
sees the implicit ground plane around etched slots. `M1` is the drawn metal (`M1_DRAW`).
- `Substrate` and `Vacuum` both extrude `SIM_AREA`, the simulation region.
- `LAYER_STACK_FLIP_CHIP` adds the top chip: `M2` (`M2_DRAW`) and `M2_ground` (Nb, 200 nm) at z = 10 µm, the indium bump
height, and `Substrate_top`, a second 500 µm silicon substrate above them. `M2_ground` is derived like `M1_ground`,
from `SIM_AREA` minus `M2_ETCH` and `M2_DRAW`.
- `LAYER_STACK_BACKSIDE` adds `MB`, a 200 nm Nb backside metal on the bottom face of the substrate at z = −500.2 µm, and
`Vacuum_bottom`, 500 µm of vacuum below it. `MB` is derived like `M1_ground`, from `SIM_AREA` minus `MB_ETCH` and
`MB_DRAW`, and the TSVs connect it to the front-side `M1`.
- `LAYER_STACK_FLIP_CHIP_BACKSIDE` puts backside metal on both chips. On top of the flip-chip and backside levels it
adds `TSV2` (TiN, `TSV2` layer), running up through `Substrate_top` from z = 10.2 µm, `MB2`, a 200 nm Nb film on the
top chip's outer face at z = 510.2 µm, derived like `MB` from `SIM_AREA` minus `MB2_ETCH` and `MB2_DRAW`, and
`Vacuum_top`, 500 µm of vacuum above it. TSV cells take `chip="bottom"` or `chip="top"` to pick `M1`/`MB`/`TSV` or
`M2`/`MB2`/`TSV2`, as listed in `qpdk.tech.CHIP_LAYERS`.
- `LAYER_STACK_GATEMON` (`get_gatemon_layer_stack()`) puts z = 0 at the top of a 150 nm oxide, makes `M1` 155 nm thick,
and adds the contact, hBN, top gate and reconnection films. The hBN thickness is a parameter (30 nm by default) and
the top gate sits on it. The nanotube itself is not extruded.
- `LAYER_STACK_3D` is the base stack plus the gatemon films, with `Reconnection` moved to the junction height. It also
previews the `M2`, `MB`, `MB2` and `TSV2` faces. Their ground planes and the top chip's substrate appear only inside
the `SUBSTRATE` (bottom chip) and `SUBSTRATE_TOP` (top chip) die footprints, so they do not appear under every layout.
Both substrates are marked translucent with `info["opacity"]`.
- The material properties, such as relative permittivity and loss tangent, are in `qpdk.tech.material_properties`.