quantcore_circuits.sim_tools.export¶
Export a SimSetup to a self-contained job directory using KQC’s exporters.
Job directory = KQC export (scripts/, <sim>.gds, <sim>.json) + job.json
(qcc metadata: design hash, group, analysis, solver settings, port → net labels) + simulation.oas. Ansys jobs
also get scripts/qcc_render.py / qcc_solve.py (aedt_scripts) and simulation.bat / simulation.sh
that run qcc_solve.py in a new non-graphical AEDT and collect results/results.json.
Analyses:
|
Ansys Q3D Maxwell capacitance matrix (KQC |
|
Ansys HFSS eigenmode with Lj/Cj lumped RLC on junctions ( |
|
as above + KQC |
|
Elmer electrostatics capacitance matrix ( |
|
Palace electrostatic C-matrix (KQC gmsh mesh → Palace config, see |
|
Palace eigenmode with junction LumpedPort L=Lj (see |
|
Ansys HFSS driven modal S-parameters ( |
Attributes¶
Functions¶
|
|
|
Write the job directory for |
|
|
|
Whether jobs are exported with |
|
Solver settings from the sim group's |
|
|
|
Process-wide default for |
|
The KQC faces the job simulates (its |
|
|
|
Whether solver settings |
|
|
|
Module Contents¶
- quantcore_circuits.sim_tools.export.default_executable_linux(version: int | None = None) str¶
- quantcore_circuits.sim_tools.export.export_job(setup: quantcore_circuits.sim_tools.builder.SimSetup, job_dir: str | pathlib.Path, overwrite: bool = False, fast: bool | None = None, **settings) pathlib.Path¶
Write the job directory for
setup(_export_job()); marks the dashboard’s Render step running → done / failed with the job name (nested insidehfss.render(), only the outer render marks it).
- quantcore_circuits.sim_tools.export.fast_settings(analysis: str, settings: dict, islands: list[int] | tuple = ()) dict¶
settingsfor a fast whole-chip test run ofanalysis(seeFAST_SETTINGS): each convergence criterion at least the fast value, each pass count at most the fast value,mesh_sizeseeds × FAST_MESH_FACTOR (no seed given:FAST_MESH_SEEDfor eigenmode / driven),sweep_count≤ FAST_SWEEP_POINTS. Other keys (frequencies, modes, sweep band) are kept. Analyses without fast values (Elmer, Palace, plugins) are returned unchanged.islands: KQC excitation numbers of the junction islands; eigenmode / driven runs seed each withFAST_ISLAND_SEED.
- quantcore_circuits.sim_tools.export.fem_fast(fast: bool | None = None) bool¶
Whether jobs are exported with
FAST_SETTINGS:fastif given, elseset_fem_fast()’s value, elseQCC_FEM_FAST(1/true).
- quantcore_circuits.sim_tools.export.group_settings(setup: quantcore_circuits.sim_tools.builder.SimSetup, defaults: dict) dict¶
Solver settings from the sim group’s
settings: keys of the analysis defaults (plusmesh_size,pyepr), and a nested{"<analysis>": {...}}dict for that analysis only. Builder options (airbridges) and settings of other analyses are left out.
- quantcore_circuits.sim_tools.export.read_job(job_dir: str | pathlib.Path) dict¶
- quantcore_circuits.sim_tools.export.set_fem_fast(flag: bool | None) None¶
Process-wide default for
export_job(fast=None)(None:QCC_FEM_FAST, else off).
- quantcore_circuits.sim_tools.export.sim_faces(setup: quantcore_circuits.sim_tools.builder.SimSetup) list[str]¶
The KQC faces the job simulates (its
face_stack, flattened; empty entries left out).
- quantcore_circuits.sim_tools.export.solver_of(analysis: str) str¶
- quantcore_circuits.sim_tools.export.tighter_or_equal(old: dict, new: dict) bool¶
Whether solver settings
oldare at least as tight asnew: the same keys and values except that each convergence criterion ofoldis ≤new’s, each pass count ≥ and each mesh seed ≤ (e.g. a full solve vs the fast settings of the same job: its results can stand in for a fast re-run).
- quantcore_circuits.sim_tools.export.update_job(job_dir: str | pathlib.Path, **fields) dict¶
- quantcore_circuits.sim_tools.export.write_job_json(setup: quantcore_circuits.sim_tools.builder.SimSetup, job_dir: pathlib.Path, settings: dict) pathlib.Path¶
- quantcore_circuits.sim_tools.export.DEFAULT_SETTINGS¶
- quantcore_circuits.sim_tools.export.FAST_ISLAND_SEED = 10.0¶
- quantcore_circuits.sim_tools.export.FAST_MESH_FACTOR = 3.0¶
- quantcore_circuits.sim_tools.export.FAST_MESH_SEED¶
- quantcore_circuits.sim_tools.export.FAST_SETTINGS¶
- quantcore_circuits.sim_tools.export.FAST_SWEEP_POINTS = 10001¶
- quantcore_circuits.sim_tools.export.JOB_SCHEMA = 'qcc-job/0.1'¶
- quantcore_circuits.sim_tools.export.MAX_SWEEP_POINTS = 25000¶
- quantcore_circuits.sim_tools.export.PYEPR_DEFAULTS¶