Rename function name to be more descriptive [skip CI]

This commit is contained in:
tankya2
2024-01-30 15:40:11 +08:00
parent 34125d131c
commit 93331aa12c
2 changed files with 9 additions and 9 deletions

View File

@@ -42,7 +42,7 @@ def test_eval(nqubits: int, dtype="complex128"):
# Test Cuquantum
cutn_time, result_tn = time(
lambda: qibotn.cutn.eval(qibo_circ, dtype).flatten())
lambda: qibotn.eval.dense_vector_tn(qibo_circ, dtype).flatten())
assert 1e-2 * qibo_time < cutn_time < 1e2 * qibo_time
assert np.allclose(
@@ -78,7 +78,7 @@ def test_mps(nqubits: int, dtype="complex128"):
}}
cutn_time, result_tn = time(
lambda: qibotn.eval.eval_mps(circ_qibo, gate_algo, dtype).flatten())
lambda: qibotn.eval.dense_vector_mps(circ_qibo, gate_algo, dtype).flatten())
print(
f"State vector difference: {abs(result_tn - result_sv_cp).max():0.3e}")