Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions tests/notebooks/test_modeling_quantum_types_and_variables.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from tests.utils_for_testbook import (
validate_quantum_program_size,
validate_quantum_model,
wrap_testbook,
)
from testbook.client import TestbookNotebookClient


@wrap_testbook("modeling_quantum_types_and_variables", timeout_seconds=60)
def test_notebook(tb: TestbookNotebookClient) -> None:
# test quantum programs
validate_quantum_program_size(
tb.ref_pydantic("qprog"),
expected_width=5,
expected_depth=5,
)

# test notebook content
pass # Todo
1 change: 1 addition & 0 deletions tests/resources/timeouts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ min_graph_coloring.qmod: 1800
minimum_2vars_example.qmod: 10
minimum_dominating_set.ipynb: 1000
minimum_dominating_set.qmod: 1000
modeling_quantum_types_and_variables.ipynb: 20
modular_exp_example.ipynb: 100
modular_exp_example.qmod: 100
modulo_example.ipynb: 30
Expand Down
Loading
Loading