Change import from cutn to eval [skip CI]

This commit is contained in:
tankya2
2024-01-30 14:37:33 +08:00
parent e11214060f
commit 34125d131c

View File

@@ -32,7 +32,7 @@ def test_eval(nqubits: int, dtype="complex128"):
dtype (str): The data type for precision, 'complex64' for single,
'complex128' for double.
"""
import qibotn.cutn
import qibotn.eval
# Test qibo
qibo.set_backend(backend=config.qibo.backend,
@@ -59,7 +59,7 @@ def test_mps(nqubits: int, dtype="complex128"):
dtype (str): The data type for precision, 'complex64' for single,
'complex128' for double.
"""
import qibotn.cutn
import qibotn.eval
# Test qibo
qibo.set_backend(backend=config.qibo.backend,
@@ -78,7 +78,7 @@ def test_mps(nqubits: int, dtype="complex128"):
}}
cutn_time, result_tn = time(
lambda: qibotn.cutn.eval_mps(circ_qibo, gate_algo, dtype).flatten())
lambda: qibotn.eval.eval_mps(circ_qibo, gate_algo, dtype).flatten())
print(
f"State vector difference: {abs(result_tn - result_sv_cp).max():0.3e}")