diff --git a/pyproject.toml b/pyproject.toml index 5693b81..f2546e4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,3 +4,4 @@ output-format = "colorized" [tool.pytest.ini_options] testpaths = ["tests/"] addopts = ["--cov=qibotn", "--cov-report=xml"] +env = ["D:NUMBA_DISABLE_JIT=1"] diff --git a/setup.py b/setup.py index 4306e33..532723b 100644 --- a/setup.py +++ b/setup.py @@ -24,11 +24,16 @@ setup( ], install_requires=[ "qibo>=0.1.10", + "qibojit>=0.0.7", "quimb[tensor]>=1.4.0", ], extras_require={ "docs": [], - "tests": ["pytest>=7.2.0", "pytest-cov>=4.0.0"], + "tests": [ + "pytest>=7.2.0", + "pytest-cov>=4.0.0", + "pytest-env>=0.8.1", + ], }, python_requires=">=3.7.0", long_description=LONG_DESCRIPTION, diff --git a/tests/test_qasm_quimb_backend.py b/tests/test_qasm_quimb_backend.py new file mode 100644 index 0000000..d9e3cf9 --- /dev/null +++ b/tests/test_qasm_quimb_backend.py @@ -0,0 +1,9 @@ +import pytest + +from qibotn import qasm_quimb + + +@pytest.mark.parametrize("nqubits", [1, 2, 5, 10]) +def test_eval(nqubits: int): + print(f"Testing for {nqubits} nqubits") + result = qasm_quimb.eval_QI_qft(nqubits)