Skip to content

Commit

Permalink
import juliacall after env vars are set
Browse files Browse the repository at this point in the history
  • Loading branch information
AbeCoull authored Nov 26, 2024
1 parent 43998be commit 75913da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/braket/simulator_v2/base_simulator_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ def setup_julia() -> None:
if "juliacall" in sys.modules:
os.environ["PYTHON_JULIACALL_HANDLE_SIGNALS"] = "yes"
return
import juliacall # noqa: PLC0415
for k, default in (
("PYTHON_JULIACALL_HANDLE_SIGNALS", "yes"),
("PYTHON_JULIACALL_THREADS", "auto"),
Expand All @@ -42,6 +41,8 @@ def setup_julia() -> None:
):
os.environ[k] = os.environ.get(k, default)

import juliacall # noqa: PLC0415

jl = juliacall.Main
jl.seval("using BraketSimulator, JSON3")
stock_oq3 = """
Expand Down

0 comments on commit 75913da

Please sign in to comment.