Skip to content

Commit 752dd35

Browse files
committed
update
1 parent 20b6baa commit 752dd35

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

tests/test_pysparq.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,9 @@ def test_import():
77

88

99
def test_simple_program():
10-
sq.test_simple_program()
10+
sq.test_simple_program()
11+
12+
13+
if __name__ == '__main__':
14+
test_import()
15+
test_simple_program()

tests/test_qda.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,8 @@ def test_solve():
9696
assert np.allclose(x_hat, _x_hat), "Quantum solution x_q should match _x_q."
9797

9898
assert x_hat.shape == (4,), "Recovered vector x_hat should have length 4."
99+
100+
if __name__ == "__main__":
101+
test_correctness()
102+
test_classical2quantum()
103+
test_solve()

0 commit comments

Comments
 (0)