We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b1b2f5 commit 73ca1adCopy full SHA for 73ca1ad
src/mqt/core/__init__.py
@@ -2,6 +2,17 @@
2
3
from __future__ import annotations
4
5
+import sys
6
+
7
+# under Windows, make sure to add the appropriate DLL directory to the PATH
8
+if sys.platform == "win32":
9
+ import os
10
+ import sysconfig
11
+ from pathlib import Path
12
13
+ bin_dir = Path(sysconfig.get_paths()["purelib"]) / "mqt" / "core" / "bin"
14
+ os.add_dll_directory(str(bin_dir))
15
16
from ._core import Permutation, QuantumComputation
17
from ._version import version as __version__
18
from ._version import version_tuple as version_info
0 commit comments