From 7ea3b2a7faa21a48c14d56aa7b47af739f999eb7 Mon Sep 17 00:00:00 2001 From: Rene Zander Date: Sat, 21 Dec 2024 21:46:17 +0100 Subject: [PATCH] Updated QMCI test --- src/qrisp/__init__.py | 2 +- tests/test_QMCI.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/qrisp/__init__.py b/src/qrisp/__init__.py index 1702f0fa..04ba43ba 100644 --- a/src/qrisp/__init__.py +++ b/src/qrisp/__init__.py @@ -26,6 +26,6 @@ from qrisp.alg_primitives import * from qrisp.algorithms import * -for i in ['shor','qaoa','qiro','grover','quantum_backtracking','quantum_counting','vqe']: +for i in ['shor','qaoa','qiro','grover','quantum_backtracking','quantum_counting','vqe','qmci']: sys.modules['qrisp.'+i] = sys.modules['qrisp.algorithms.'+i] from qrisp.default_backend import * diff --git a/tests/test_QMCI.py b/tests/test_QMCI.py index 7f8141b1..f8d22f0c 100644 --- a/tests/test_QMCI.py +++ b/tests/test_QMCI.py @@ -25,7 +25,8 @@ def test_QMCI(): def f(qf): return qf*qf - qf = QuantumFloat(3,-3) - a = QMCI([qf], f) + qf_x = QuantumFloat(3,-3) + qf_y = QuantumFloat(6,-6) + a = QMCI([qf_x,qf_y], f) assert np.abs(a-0.2734375)<0.01 \ No newline at end of file