diff --git a/src/qibo/backends/__init__.py b/src/qibo/backends/__init__.py index 01f57db324..505a7205b2 100644 --- a/src/qibo/backends/__init__.py +++ b/src/qibo/backends/__init__.py @@ -9,7 +9,6 @@ def construct_backend(backend, **kwargs): - print(backend) if backend == "qibojit": from qibojit.backends import CupyBackend, CuQuantumBackend, NumbaBackend diff --git a/tests/test_backend_qibotn.py b/tests/test_backend_qibotn.py index e9cdb96764..a18eff8184 100644 --- a/tests/test_backend_qibotn.py +++ b/tests/test_backend_qibotn.py @@ -1,6 +1,11 @@ -from qibotn.backends.quimb import QuimbBackend +import os import qibo + +# Force quimb to use qibojit default number of threads. +os.environ["NUMBA_NUM_THREADS"] = f"{qibo.get_threads()}" +from qibotn.backends.quimb import QuimbBackend + from qibo.backends import GlobalBackend