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

Large diffs are not rendered by default.

97 changes: 30 additions & 67 deletions algorithms/quantum_linear_solvers/vqls/vqls_with_lcu.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions tests/notebooks/test_qsvt_matrix_inversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ def test_notebook(tb: TestbookNotebookClient) -> None:
A notebook for a hybrid classical quantum neural network.
The test verifies that the pre-trained model is indeed well trained.
"""
# test quantum programs
# test quantum programs - using BlockEncoding.from_matrix with LCU
validate_quantum_program_size(
tb.ref_pydantic("qprog"),
expected_width=5, # actual width: 4
expected_depth=3200, # actual depth: 2150
expected_width=10, # LCU block encoding uses more ancilla qubits
expected_depth=15000, # QSVT polynomial approximation
)

computed_x = tb.ref_pydantic("computed_x")
Expand Down
Loading