quantcore_circuits.selftest¶
qcc selftest: does this install work?
pip cannot run tests while it installs, so this is the check to run right after an install (the install scripts in
scripts/install_sim_pc.* call it). One line per check, ok / FAIL / skip; the exit code is non-zero when
any check failed. It never starts AEDT and runs no solver.
Checks: the imports of the core and of every extra (with versions), then a small Q1 + R1 chip shipped as package data
(data/selftest_q1_r1.json): build, DRC, the layout LOM netlist, a LOM simulation (needs the analysis extra),
one simulation job exported into a temporary folder, and whether ansysedt is found.
Attributes¶
Classes¶
Functions¶
|
(status, detail): whether |
|
|
|
Run all checks in order; |
Module Contents¶
- class quantcore_circuits.selftest.Check¶
- line() str¶
- detail: str = ''¶
- name: str¶
- seconds: float = 0.0¶
- status: str¶
- quantcore_circuits.selftest.find_ansysedt() tuple[str, str]¶
(status, detail): whether
ansysedtis found. Looks for the file only; AEDT is never started.
- quantcore_circuits.selftest.main(allow_missing: bool = False, as_json: bool = False) int¶
- quantcore_circuits.selftest.run_checks(allow_missing: bool = False, emit: collections.abc.Callable[[Check], None] | None = None) list[Check]¶
Run all checks in order;
emitis called with each as it finishes.
- quantcore_circuits.selftest.DESIGN_RESOURCE¶
- quantcore_circuits.selftest.IMPORTS: dict[str, list[tuple[str, str, str]]]¶
- quantcore_circuits.selftest.OPTIONAL = [('torch', 'torch', 'torch')]¶