quantcore_circuits.lom.builder ============================== .. py:module:: quantcore_circuits.lom.builder .. autoapi-nested-parse:: Layout → LOM: compose the components' LOM fragments along the design's connectivity into a ``circuit.json``. Mapping (see :mod:`quantcore_circuits.lom.fragment` for the component side): ===================================== ============================================================================= layout lumped model ===================================== ============================================================================= component its fragment: nodes (FEM islands), elements, port → node map ``cpw`` route port ↔ port a wire: both ports' nodes become one conductor (named after the route when it joins pads, e.g. the feedline ``FL``) route port → hanger / short free end λ/4 resonator ``TLres`` from the port's node to ground (+ ``HANGER`` coupling element to the feedline node: coupled-line κ) route port → open free end λ/2 resonator (open–open) to ground route free end → hanger (no port) a resonator on its own node ``.line`` (island ````): λ/4 when exactly one end is shorted (``term=0`` / ``end="short"``), else λ/2 ``meander`` route port ↔ port λ/2 bus resonator: both end nodes join one resonator node route on a ``control:*`` port control line (flux bias of that qubit's SQUID), no circuit element; the conductor is grounded at the qubit, so its pad's port is dropped snap placement (gap 0) the two ports' nodes join (galvanic) ``design.couplings`` C / L between the resolved ends (an end may be a route: its conductor); a value-less C from a cell's coupled section (``Fragment.hangers``) is a HANGER line end on a zero-length termination wired / snapped to it, or drawn on its body: the line end takes its termination (CpweOpenEnd: open) component lines joined end to end one line (a chain: route between two line ports, wire / snap between them): its two free ends decide wire / λ/4 / λ/2, its length is the sum; a pass-through cell (taper, ``Line.through``) only extends it (one Z0: the width step is not modelled), the TLres takes the main line's or route's name ===================================== ============================================================================= Values are component estimates (calibration, CPW formulas, coupled-line κ); :func:`quantcore_circuits.circuit. fill.fill` replaces capacitances by FEM C-matrix values where the island labels match. Element names follow the convention used everywhere else: ``C_``, ``J_``, ``Cg__``, ``Cc__``, ```` (TLres), ``K_`` (hanger), ``Port_``. Attributes ---------- .. autoapisummary:: quantcore_circuits.lom.builder.DEFAULT_TOL quantcore_circuits.lom.builder.DRIVE_C_FF Classes ------- .. autoapisummary:: quantcore_circuits.lom.builder.LomBuild Functions --------- .. autoapisummary:: quantcore_circuits.lom.builder.lom_from_design Module Contents --------------- .. py:class:: LomBuild .. py:attribute:: model :type: quantcore_circuits.circuit.schema.CircuitModel .. py:attribute:: notes :type: list[str] :value: [] .. py:attribute:: port_map :type: dict[str, str] .. py:attribute:: unconnected :type: list[str] :value: [] .. py:function:: lom_from_design(source, select: list[str] | None = None, name: str | None = None, plan=None) -> LomBuild Build the lumped circuit of ``source`` (all of it, or the instances/routes in ``select``). .. py:data:: DEFAULT_TOL .. py:data:: DRIVE_C_FF :value: 0.1