Skip to content

Commit 903a2e8

Browse files
authored
Revert "removed tests"
This reverts commit 0dd51a3.
1 parent 0dd51a3 commit 903a2e8

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
from tests.utils_for_testbook import (
2+
validate_quantum_program_size,
3+
validate_quantum_model,
4+
wrap_testbook,
5+
)
6+
from testbook.client import TestbookNotebookClient
7+
8+
9+
@wrap_testbook("elliptic_curve_discrete_log", timeout_seconds=1800)
10+
def test_notebook(tb: TestbookNotebookClient) -> None:
11+
# test models
12+
validate_quantum_model(tb.ref("qmod"))
13+
# test quantum programs
14+
validate_quantum_program_size(
15+
tb.ref_pydantic("qprog_shor_ecdlp"),
16+
expected_width=25,
17+
expected_depth=100000,
18+
)
19+
20+
# test notebook content
21+
pass # Todo

tests/resources/timeouts.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ dqi_max_xorsat.qmod: 200
9696
dt_quantumwalk_complex_network.qmod: 1799
9797
electric_grid_optimization.ipynb: 996
9898
electric_grid_optimization.qmod: 1152
99+
elliptic_curve_discrete_log.ipynb: 1800
100+
elliptic_curve_discrete_log.qmod: 1800
99101
encode_in_angle.qmod: 10
100102
encode_on_bloch.qmod: 10
101103
entanglement.ipynb: 20

0 commit comments

Comments
 (0)