qcc_kplugin.actions =================== .. py:module:: qcc_kplugin.actions .. autoapi-nested-parse:: qcc menu actions (GUI only; geometry/JSON logic lives in ``design_io`` / ``geometry``, building in ``qcc``). Attributes ---------- .. autoapisummary:: qcc_kplugin.actions.COLUMNS_TEXT qcc_kplugin.actions.LABEL_TEXT Functions --------- .. autoapisummary:: qcc_kplugin.actions.check_design qcc_kplugin.actions.configure qcc_kplugin.actions.delete_instance qcc_kplugin.actions.delete_route qcc_kplugin.actions.duplicate_selected qcc_kplugin.actions.edit_selected qcc_kplugin.actions.mirror_selected qcc_kplugin.actions.new_design qcc_kplugin.actions.open_design qcc_kplugin.actions.path_to_route qcc_kplugin.actions.place_component qcc_kplugin.actions.rebuild qcc_kplugin.actions.redo qcc_kplugin.actions.run_lom qcc_kplugin.actions.screenshot qcc_kplugin.actions.selected_component qcc_kplugin.actions.selected_route qcc_kplugin.actions.set_live_pcells qcc_kplugin.actions.show_dock qcc_kplugin.actions.stop_lom qcc_kplugin.actions.sync_placements qcc_kplugin.actions.toggle_live qcc_kplugin.actions.undo Module Contents --------------- .. py:function:: check_design() Quantcore > Check and LOM > Check design: the DRC tab plus the full check (netlist) in the background. .. py:function:: configure() .. py:function:: delete_instance() .. py:function:: delete_route() Quantcore > Edit > Delete route...: a route chosen from the list, failed ones first (they have no cell to select and delete with KLayout's own Delete). .. py:function:: duplicate_selected() A copy of the selected component (same cell, parameters, rotation, mirror, junction) follows the mouse in *Move/Snap*; a click drops it. .. py:function:: edit_selected() PCell parameters + rotation of the component selected with KLayout's own select tool (or under the Move/Snap cursor): the same dialog as double-clicking it in *Move/Snap*. .. py:function:: mirror_selected() Mirror the selected component (about its own x axis, before its rotation or snap). .. py:function:: new_design() A blank PDK die as a new design.json, opened and built: then place components from the Quantcore panel. .. py:function:: open_design() .. py:function:: path_to_route() Selected path(s) → routes: ends snap to ports, corners become waypoints bent to the route radius. .. py:function:: place_component() Place the component selected in the Quantcore panel (with the parameters shown there); without a selection, open the panel to pick one. .. py:function:: rebuild() .. py:function:: redo() .. py:function:: run_lom() Quantcore > Check and LOM > Run LOM: export the circuit and simulate it in a background process; the LOM tab of the panel shows modes, parameters against targets, netlist values and the circuit drawing. .. py:function:: screenshot() .. py:function:: selected_component() -> str | None The component selected with KLayout's own select tool, else the one under the *Move/Snap* cursor. .. py:function:: selected_route() -> str | None The route selected with KLayout's own select tool (a route cell carries its design name in ``id``). .. py:function:: set_live_pcells(on: bool) -> None Settings > live PCells on / off (on: the library loads in the background; off: the next build is static). .. py:function:: show_dock() .. py:function:: stop_lom() Quantcore > Check and LOM > Stop LOM simulation: stop the running LOM (the process this panel started), drop its partial output and show the state from before the run. .. py:function:: sync_placements() Instances moved with KLayout's own move tool → ``place.at`` (snap-placed ones become absolute). .. py:function:: toggle_live() .. py:function:: undo() .. py:data:: COLUMNS_TEXT :value: 'Long dialogs in two columns (every dialog scrolls and fits the screen)' .. py:data:: LABEL_TEXT :value: 'Instance name labels in the layout: height µm (0 = none)'