quantcore_circuits.layouts.ports¶
Ports as seen by quantcore_circuits: KQC refpoints port_<name> + optional port_<name>_corner.
A port has a position, an outward unit direction (corner - port; the direction a connecting waveguide comes
from) and the CPW centre width a / gap b at that point. A port of a multi-face cell (a TSV or bump
transition) also names its KQC chip face (face, e.g. "2b1"); None is the cell’s own face.
Exceptions¶
A PCell's build() failed. KLayout swallows the exception and draws it on the error layer; this re-raises it. |
Classes¶
Functions¶
|
Ports of a cell in its own coordinates (only the cell's own refpoints by default). |
|
Raise |
|
|
|
Extract ports from a refpoint dict (as returned by |
Module Contents¶
- exception quantcore_circuits.layouts.ports.CellBuildError¶
Bases:
RuntimeErrorA PCell’s build() failed. KLayout swallows the exception and draws it on the error layer; this re-raises it.
- class quantcore_circuits.layouts.ports.Port¶
- as_dict() dict¶
- a: float | None = None¶
- property angle: float | None¶
- b: float | None = None¶
- property corner: kqcircuits.pya_resolver.pya.DPoint | None¶
- dir: kqcircuits.pya_resolver.pya.DVector | None¶
- face: str | None = None¶
- name: str¶
- pos: kqcircuits.pya_resolver.pya.DPoint¶
- quantcore_circuits.layouts.ports.cell_ports(cell: kqcircuits.pya_resolver.pya.Cell, a: float | None = None, b: float | None = None, rec_levels: int = 0) dict[str, Port]¶
Ports of a cell in its own coordinates (only the cell’s own refpoints by default).
- quantcore_circuits.layouts.ports.check_cell(cell: kqcircuits.pya_resolver.pya.Cell, what: str = '') kqcircuits.pya_resolver.pya.Cell¶
Raise
CellBuildErrorifcell(or any child) failed to build.
- quantcore_circuits.layouts.ports.direction_vector(angle_deg: float) kqcircuits.pya_resolver.pya.DVector¶