provide suiitable test
This commit is contained in:
@@ -4,3 +4,4 @@ output-format = "colorized"
|
|||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
testpaths = ["tests/"]
|
testpaths = ["tests/"]
|
||||||
addopts = ["--cov=qibotn", "--cov-report=xml"]
|
addopts = ["--cov=qibotn", "--cov-report=xml"]
|
||||||
|
env = ["D:NUMBA_DISABLE_JIT=1"]
|
||||||
|
|||||||
7
setup.py
7
setup.py
@@ -24,11 +24,16 @@ setup(
|
|||||||
],
|
],
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"qibo>=0.1.10",
|
"qibo>=0.1.10",
|
||||||
|
"qibojit>=0.0.7",
|
||||||
"quimb[tensor]>=1.4.0",
|
"quimb[tensor]>=1.4.0",
|
||||||
],
|
],
|
||||||
extras_require={
|
extras_require={
|
||||||
"docs": [],
|
"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",
|
python_requires=">=3.7.0",
|
||||||
long_description=LONG_DESCRIPTION,
|
long_description=LONG_DESCRIPTION,
|
||||||
|
|||||||
9
tests/test_qasm_quimb_backend.py
Normal file
9
tests/test_qasm_quimb_backend.py
Normal file
@@ -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)
|
||||||
Reference in New Issue
Block a user