File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -96,6 +96,8 @@ dqi_max_xorsat.qmod: 200
9696dt_quantumwalk_complex_network.qmod : 1799
9797electric_grid_optimization.ipynb : 996
9898electric_grid_optimization.qmod : 1152
99+ elliptic_curve_discrete_log.ipynb : 1800
100+ elliptic_curve_discrete_log.qmod : 1800
99101encode_in_angle.qmod : 10
100102encode_on_bloch.qmod : 10
101103entanglement.ipynb : 20
You can’t perform that action at this time.
0 commit comments