qcc_kplugin.jfetch ================== .. py:module:: qcc_kplugin.jfetch .. autoapi-nested-parse:: Junction facts from the library, through ``qcc`` (the plugin does not import quantcore_circuits). * :func:`placement_junction`: the simulation / LOM junction a new component gets when it is placed (``qcc design placement-junction CELL --params JSON``): a drawn trilayer junction's PDK value, else the PDK nominal SQUID, or None for a component without a junction. It also holds ``drawn`` (the trilayer junction the cell draws). The answer is cached by (cell, parameters); :func:`prefetch` starts the call in the background (when a placement is armed), so the click that places the component finds it ready. * :func:`missing_default`: ``qcc design junctions DESIGN --default --json``: the junctions of the default simulation subset that have no L_J (the Simulate dialog's pre-check when nothing is selected). Attributes ---------- .. autoapisummary:: qcc_kplugin.jfetch.PDK_JUNCTION qcc_kplugin.jfetch.TIMEOUT Functions --------- .. autoapisummary:: qcc_kplugin.jfetch.drawn_type qcc_kplugin.jfetch.is_trilayer_type qcc_kplugin.jfetch.key qcc_kplugin.jfetch.missing_default qcc_kplugin.jfetch.placement_junction qcc_kplugin.jfetch.prefetch Module Contents --------------- .. py:function:: drawn_type(set_type: str | None, default_type: str | None, junction_cell: bool = False) -> str | None The ``junction_type`` a component is drawn with: the instance's own (``set_type``), else the cell's default, which the build replaces by the PDK trilayer junction when it is a KQC / Metal one (not for a junction cell). .. py:function:: is_trilayer_type(junction_type: str) -> bool Whether a ``junction_type`` name is a drawn trilayer junction (the PDK gives it a value): the Quantcore, "Trilayer ..." and "Squid V0" junction cells. A copy of the library's rule (``trilayer_junction_values``), checked by a test. .. py:function:: key(cell: str, params: dict | None) -> str .. py:function:: missing_default(design_path) -> dict[str, str] ``{name: message}`` of the default subset's junctions without an L_J (``qcc design junctions --default``); {} when none, or when the library could not be asked. Cached while design.json is unchanged. .. py:function:: placement_junction(cell: str, params: dict | None = None) -> dict | None ``{"Lj_nH", "Cj_fF", "source", "drawn"}`` for ``cell`` placed with ``params``, or None (no junction, or the library could not be asked: the plugin then writes nothing). Waits for a prefetch, else asks once (about 1.4 s). .. py:function:: prefetch(cell: str, params: dict | None) -> None Start the library call for ``cell`` in the background (no-op when cached or already running). .. py:data:: PDK_JUNCTION .. py:data:: TIMEOUT :value: 60.0