quantcore_circuits.sim_tools.ansys

Locate Ansys Electronics Desktop (AEDT 2024 R1 or newer) and point KQC’s Ansys exporter at it.

Quantcore targets AEDT 2024 (v241 = 2024 R1, installed on the design PC 2026-11-03; v242 = 2024 R2 also accepted, the newest install wins). Older installs (e.g. 2021 R1) are ignored unless named explicitly through QCC_ANSYS_EXECUTABLE. Search order:

  1. QCC_ANSYS_EXECUTABLE (explicit override, any version; on the Linux server e.g. /ansys_inc/v242/AnsysEM/ansysedt)

  2. ANSYSEM_ROOT<ver> set by the AEDT installer, highest version first, ver >= MIN_VERSION

  3. standard install folders: %ProgramFiles%\AnsysEM\v<ver>\Win64, %ProgramFiles%\ANSYS Inc\v<ver>\AnsysEM (and ...\Electronics\Win64 for AEDT installed as part of the unified Ansys installer), /ansys_inc/v<ver>

Attributes

Functions

aedt_version(executable) → int | None

Three-digit AEDT version (e.g. 242) guessed from the install path, or None.

candidate_paths([min_version]) → list[tuple[int, pathlib.Path]]

(version, path) candidates for ansysedt, highest version first (existence not checked).

configure_kqc_ansys([executable]) → pathlib.Path

Make KQC's export_ansys write simulation.bat with executable, the discovered AEDT >= 2024 R1, or

default_executable([version]) → pathlib.Path

Standard AEDT install location for version (used in job scripts when AEDT is not installed here).

find_ansys_executable([min_version]) → pathlib.Path | None

Module Contents

quantcore_circuits.sim_tools.ansys.aedt_version(executable: str | pathlib.Path) → int | None

Three-digit AEDT version (e.g. 242) guessed from the install path, or None.

quantcore_circuits.sim_tools.ansys.candidate_paths(min_version: int = MIN_VERSION) → list[tuple[int, pathlib.Path]]

(version, path) candidates for ansysedt, highest version first (existence not checked).

quantcore_circuits.sim_tools.ansys.configure_kqc_ansys(executable: str | pathlib.Path | None = None) → pathlib.Path

Make KQC’s export_ansys write simulation.bat with executable, the discovered AEDT >= 2024 R1, or the standard 2024 R1 location (so a job exported on a machine without AEDT still targets 2024).

quantcore_circuits.sim_tools.ansys.default_executable(version: int = TARGET_VERSION) → pathlib.Path

Standard AEDT install location for version (used in job scripts when AEDT is not installed here).

quantcore_circuits.sim_tools.ansys.find_ansys_executable(min_version: int = MIN_VERSION) → pathlib.Path | None
quantcore_circuits.sim_tools.ansys.MIN_VERSION = 241
quantcore_circuits.sim_tools.ansys.TARGET_VERSION = 241