quantcore_circuits.sim_tools.aedt_attach¶
Helper process for aedt="attach": run one qcc AEDT script inside an AEDT session that is already open.
Run by path (python -I aedt_attach.py attach --port P --pid N --plugin DIR --script S --arg A --project NAME),
standard library only, so it starts in a moment and a crash here never touches the notebook kernel. It connects with
AEDT’s own gRPC client (<AEDT>/PythonFiles/DesktopPlugin/PyDesktopPlugin.py, shipped with AEDT 2024 R1), checks
that the port belongs to the expected AEDT process, closes an earlier copy of this job’s project if one is open (it
would block the save), calls oDesktop.RunScriptWithArguments(script, arg) (blocks until the script returns) and
then only releases the connection. It never calls QuitApplication / ScriptEnv.Shutdown: the session and all
its projects stay open. probe only connects and lists the open projects.
Functions¶
|
Module Contents¶
- quantcore_circuits.sim_tools.aedt_attach.main(argv: list[str]) int¶