Skip to content

Commit

Permalink
Change import from cutn to eval [skip CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
Tankya2 committed Jan 30, 2024
1 parent e112140 commit 34125d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_cuquantum_cutensor_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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}")
Expand Down

0 comments on commit 34125d1

Please sign in to comment.