From 5ee13f7190030d07e49dcb2ac82077a6317a6be8 Mon Sep 17 00:00:00 2001 From: vinitha-balachandran Date: Tue, 6 Feb 2024 17:56:29 +0800 Subject: [PATCH] renamed function 'eval' to 'dense_vector_tn_qu' in pytest --- tests/test_qasm_quimb_backend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_qasm_quimb_backend.py b/tests/test_qasm_quimb_backend.py index 5417115..e7dc6e6 100644 --- a/tests/test_qasm_quimb_backend.py +++ b/tests/test_qasm_quimb_backend.py @@ -27,7 +27,7 @@ def test_eval(nqubits: int, tolerance: float, is_mps: bool): # TODO: remove completely, or at least delegate to the backend # implementation os.environ["QUIMB_NUM_PROCS"] = str(os.cpu_count()) - import qibotn.quimb + import qibotn.eval_qu init_state = create_init_state(nqubits=nqubits) init_state_tn = copy.deepcopy(init_state) @@ -45,7 +45,7 @@ def test_eval(nqubits: int, tolerance: float, is_mps: bool): qasm_circ = qibo_circ.to_qasm() # Test quimb - result_tn = qibotn.quimb.eval( + result_tn = qibotn.eval_qu.dense_vector_tn_qu( qasm_circ, init_state_tn, is_mps, backend=config.quimb.backend )