Skip to content

Commit c3bcdcb

Browse files
committed
Add test: traveling_salesman_problem
1 parent a974573 commit c3bcdcb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-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("traveling_salesman_problem", timeout_seconds=1068)
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("qprog"),
16+
expected_width=16, # actual width: 16
17+
expected_depth=567, # actual depth: 567
18+
)
19+
20+
# test notebook content
21+
pass # todo

0 commit comments

Comments
 (0)