Skip to content

Commit 7278b05

Browse files
added test file
1 parent 38765a8 commit 7278b05

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/notebooks/test_adapt_vqe.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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("adapt_vqe", timeout_seconds=1800)
10+
def test_notebook(tb: TestbookNotebookClient) -> None:
11+
# test quantum programs
12+
validate_quantum_program_size(
13+
tb.ref_pydantic("qprog"),
14+
expected_width=8, # actual expected width: 4
15+
expected_depth=50, # actual expected depth: 26
16+
)
17+
18+
# test notebook content
19+
pass # Todo

0 commit comments

Comments
 (0)