Skip to content

Commit d7500ef

Browse files
Quantum Types and Variables Tutorial
1 parent f2fe54e commit d7500ef

File tree

4 files changed

+177
-581
lines changed

4 files changed

+177
-581
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("modeling_quantum_types_and_variables", timeout_seconds=60)
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"),
16+
expected_width=1,
17+
expected_depth=1,
18+
)
19+
20+
# test notebook content
21+
pass # Todo

tests/resources/timeouts.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ min_graph_coloring.qmod: 1800
186186
minimum_2vars_example.qmod: 10
187187
minimum_dominating_set.ipynb: 1000
188188
minimum_dominating_set.qmod: 1000
189+
modeling_quantum_types_and_variables.ipynb: 20
189190
modular_exp_example.ipynb: 100
190191
modular_exp_example.qmod: 100
191192
modulo_example.ipynb: 30

0 commit comments

Comments
 (0)