kqcircuits.simulations.export.remote_export_and_run

kqcircuits.simulations.export.remote_export_and_run.remote_export_and_run(ssh_login: str, kqc_remote_tmp_path: Optional[str] = None, detach_simulation: bool = False, poll_interval: Optional[int] = None, export_path_basename: Optional[str] = None, args=None)[source]

Exports locally and runs KQC simulations on a remote host. Froced to use no GUI (–quiet, -q option)

Parameters
  • ssh_login (str) – ssh login info “user@hostname

  • kqc_remote_tmp_path (str) – tmp directory on remote

  • detach_simulation (bool) – Detach the remote simulation from terminal, not waiting for it to finish

  • poll_interval (int) – Polling interval in seconds when waiting for the remote simulation to finish

  • export_path_basename (str) – Alternative export folder name for the simulation If None, the simulation script name will be used

  • args (list) – a list of strings: - If starts with a letter and ends with “.py” -> export script - If starts with “-” or “–” -> script option

kqcircuits.simulations.export.remote_export_and_run.remote_run_only(ssh_login: str, kqc_remote_tmp_path: Optional[str] = None, detach_simulation: bool = False, poll_interval: Optional[int] = None, export_tmp_dirs: Optional[list] = None)[source]

Runs already locally exported simulations on remote host

Parameters
  • ssh_login (str) – ssh login info “user@hostname

  • kqc_remote_tmp_path (str) – tmp directory on remote

  • detach_simulation (bool) – Detach the remote simulation from terminal, not waiting for it to finish

  • poll_interval (int) – Polling interval in seconds when waiting for the remote simulation to finish

  • export_tmp_dirs (list[str]) – list of local tmp simulation folder names Could contain other arguments from console script which are filtered out

../_images/kqcircuits.simulations.export.remote_export_and_run.png