Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
Binary file added qubipy/crypto/crypto_silicon.dylib
Binary file not shown.
6 changes: 5 additions & 1 deletion qubipy/crypto/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@
import platform

system = platform.system()
machine = platform.machine()

if system == "Windows":
lib_name = "crypto.dll"
elif system == "Darwin":
lib_name = "crypto.dylib"
if machine == "arm64":
lib_name = "crypto_silicon.dylib" # For Apple Silicon
else:
lib_name = "crypto_intel.dylib" # For Intel
else:
lib_name = "crypto.so"

Expand Down
Loading