Skip to content

Commit e5690dd

Browse files
authored
Move test_phase_estimation_of_qubitized_hubbard_model to phase_estimation/ (#1004)
Move test_phase_estimation_of_qubitized_hubbard_model
1 parent 514eba4 commit e5690dd

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

qualtran/bloqs/hubbard_model_test.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,3 @@ def test_hubbard_model_consistent_protocols():
8282
@pytest.mark.notebook
8383
def test_hubbard_model_notebook():
8484
execute_notebook('hubbard_model')
85-
86-
87-
@pytest.mark.notebook
88-
def test_phase_estimation_of_qubitized_hubbard_model():
89-
execute_notebook('phase_estimation_of_quantum_walk')

qualtran/bloqs/phase_estimation/qubitization_qpe_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
)
2727
from qualtran.bloqs.phase_estimation.text_book_qpe_test import simulate_theta_estimate
2828
from qualtran.cirq_interop.testing import GateHelper
29+
from qualtran.testing import execute_notebook
2930

3031

3132
@pytest.mark.slow
@@ -94,3 +95,8 @@ def test_qubitization_phase_estimation_of_walk(num_terms: int, use_resource_stat
9495
np.allclose(np.abs(eig_val / qubitization_lambda), np.abs(np.sin(phase)), atol=eps),
9596
]
9697
assert np.any(is_close)
98+
99+
100+
@pytest.mark.notebook
101+
def test_phase_estimation_of_qubitized_hubbard_model():
102+
execute_notebook('phase_estimation_of_quantum_walk')

0 commit comments

Comments
 (0)