qcc_kplugin.dock¶
Quantcore dock panel: the Flow strip on top, then components, LOM, DRC and results.
Flow strip — Design → Check → LOM → Simulate → Results → Fab, one button per step with a status mark (done / needs attention / not yet). Simulate, Results and Fab call
qcc_kplugin.flowwhen it exists.Components — double-click a cell to arm Move/Snap in place mode; the next click drops it (parameters can be given as JSON). Ports of the new instance are then connected with Connect or Route handles.
LOM — Run LOM exports the circuit and simulates it (QuCat / QuTiP) in a background process: modes, the derived parameters (f_q, alpha, f_r, chi, kappa) against the targets in design.json, the netlist values and the circuit drawing. Below: the circuit nodes / branches of the layout, as
qccderives them (updates on every rebuild).DRC — dangling ports, overlaps, crossings, components without a LOM model; click an issue to zoom to it. Check also runs the netlist check (opens / shorts) in the background and lists its result below.
Everything comes from the sidecar written by each build; nothing here imports quantcore_circuits.
Attributes¶
Classes¶
Functions¶
|
1-based Run LOM stage from the running step and its output so far. |
|
The |
Module Contents¶
- class qcc_kplugin.dock.QuantcoreDock¶
- check()¶
The DRC tab, plus the full check (netlist opens / shorts) in the background.
- flow_click(key: str)¶
- flow_state() dict¶
Done / warn / todo per step: file checks (
design_io.flow_status()) plus this session’s Check.
- load_components(force: bool = False)¶
The library’s components with their class (
qcc components --json --details), then the list. Cached (seeqcache); on a missqccruns in the background and the list shows “loading…”.
- load_lom()¶
Fill the LOM tab from build/<name>/lom.json (written by
qcc circuit simulate --json).
- lom_files()¶
(circuit.json, lom.json, lom.png) for the open design.
- open_png()¶
The circuit picture in its own (non-modal, resizable) window, never larger than the screen: it opens fitted to the window (Fit), and 100 % / − / + zoom it, with scroll bars when it is larger than the window.
- params() dict¶
- refresh()¶
- refresh_drc(running: bool = False)¶
- refresh_list()¶
The Refresh list button: forget the cache and ask
qccagain.
- refresh_sim_groups()¶
The saved groups of design.json (the list keeps its selection while the names stay the same).
- run_lom()¶
Export the circuit and simulate it in a background process; the LOM tab fills when it ends.
- selected() str | None¶
- show_components()¶
The list: the components of the chosen class (all classes: every component), by name.
- show_tab(name: str)¶
- stop_lom()¶
Stop the LOM run this panel started: kill its
qccprocess, drop the partial output, restore the tab.
- update_flow()¶
- category¶
- cell = None¶
- components¶
- dock¶
- drc¶
- drc_items = []¶
- flow_buttons¶
- flow_hint¶
- full_check = None¶
- loading_list = False¶
- loading_schema = None¶
- lom_result = None¶
- records¶
- results¶
- schema = []¶
- sim_analysis¶
- sim_groups¶
- sim_hide¶
- sim_info¶
- source¶
- table¶
- tabs¶
- values¶
- viewers = []¶
- qcc_kplugin.dock.lom_stage(step_index: int, text: str) int¶
1-based Run LOM stage from the running step and its output so far.
- qcc_kplugin.dock.lom_warnings(output: str) list[str]¶
The
WARNING: route R2 failed to build (...); using its last good routelines of a LOM run’s output (the circuit export prints each as a note and as a Python warning), once each, without thenote:/ file prefix.
- qcc_kplugin.dock.show_dock()¶
- qcc_kplugin.dock.ALL_CATEGORIES = 'all classes'¶
- qcc_kplugin.dock.CFG_LOM_LIMIT¶
- qcc_kplugin.dock.DOCK = []¶
- qcc_kplugin.dock.FLOW_STEPS¶
- qcc_kplugin.dock.LEGACY = 'legacy (kept for old designs)'¶
- qcc_kplugin.dock.LOM_STAGES = (('', 'exporting the circuit'), ('[lom] reading', 'reading the circuit'), ('[lom] solving',...¶