qcc_kplugin.edits ================= .. py:module:: qcc_kplugin.edits .. autoapi-nested-parse:: Edit-menu actions that change design.json parts the drawing tools do not reach: rename a component, chip settings (label, die size), junction values (Lj, Cj) of a qubit, a lumped coupling between two components, and the PDK pad-edge fix. The pure edits are in ``design_ops`` (unit-tested); this module is the dialogs and menu functions. An exception never escapes into KLayout: it goes to the status bar and the log (``session.report_error``). Attributes ---------- .. autoapisummary:: qcc_kplugin.edits.SQUARE_TEXT Functions --------- .. autoapisummary:: qcc_kplugin.edits.add_coupling qcc_kplugin.edits.chip_settings qcc_kplugin.edits.die_size_rows qcc_kplugin.edits.fix_pad_edges qcc_kplugin.edits.junction_values qcc_kplugin.edits.rename_instance Module Contents --------------- .. py:function:: add_coupling() -> None Edit > Add coupling…: a lumped C (fF) or L (nH) between two components or a route and a component, for the LOM (the layout implies it but no route carries it, e.g. two facing qubit arms). .. py:function:: chip_settings() -> None Design > Chip settings…: the label on the die, the die width and height, the KQC ground grid, and the design's substrate (thickness, εr, loss tangent). .. py:function:: die_size_rows(dialog, form, width: float, height: float) Die width / height rows and a "square" checkbox (on: the height follows the width and is greyed out), for New design and Chip settings. Returns ``size()`` → (width, height) in µm; raises ValueError on a non-number. .. py:function:: fix_pad_edges() -> None Check and LOM > Fix pad edge warnings: ``place.edge = "auto"`` on every pad the PDK pad-edge rule flags (the build then puts its outer edge the PDK distance from the die edge, the position along the edge stays). .. py:function:: junction_values(name: str | None = None) -> None Edit > Junction values (L_J or I_c or R_n, and C_J)…: the lumped junction of the selected qubit that the LOM, the estimates and the simulations use (``junction`` in design.json: L_J and C_J); empty fields remove it. .. py:function:: rename_instance(name: str | None = None) -> None Edit > Rename component…: the selected component (KLayout's selection, or under the Move/Snap cursor) gets a new name; routes, snaps, targets, sim groups and couplings that name it follow. .. py:data:: SQUARE_TEXT :value: 'Square die (height = width)'