From 73a747f2bd36efc1aea10334f150f4d5e2b66741 Mon Sep 17 00:00:00 2001 From: Alessandro Candido Date: Tue, 7 Feb 2023 12:38:20 +0100 Subject: [PATCH] Temporary solution to qiboteam/qibojit#107 in tests --- tests/test_qasm_quimb_backend.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test_qasm_quimb_backend.py b/tests/test_qasm_quimb_backend.py index d9e3cf9..ba99dcb 100644 --- a/tests/test_qasm_quimb_backend.py +++ b/tests/test_qasm_quimb_backend.py @@ -1,9 +1,12 @@ -import pytest +import os -from qibotn import qasm_quimb +import pytest @pytest.mark.parametrize("nqubits", [1, 2, 5, 10]) def test_eval(nqubits: int): + os.environ["QUIMB_NUM_PROCS"] = str(os.cpu_count()) + from qibotn import qasm_quimb + print(f"Testing for {nqubits} nqubits") result = qasm_quimb.eval_QI_qft(nqubits)