From 30ab20b55104fc092136f8c94c174d37f797084f Mon Sep 17 00:00:00 2001 From: Anurudh Peduri Date: Tue, 12 Nov 2024 20:45:45 +0100 Subject: [PATCH] link issue --- qualtran/bloqs/phase_estimation/qubitization_qpe_test.py | 3 +++ qualtran/bloqs/phase_estimation/text_book_qpe_test.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/qualtran/bloqs/phase_estimation/qubitization_qpe_test.py b/qualtran/bloqs/phase_estimation/qubitization_qpe_test.py index 3007ba1cd..1db8ff3a9 100644 --- a/qualtran/bloqs/phase_estimation/qubitization_qpe_test.py +++ b/qualtran/bloqs/phase_estimation/qubitization_qpe_test.py @@ -74,6 +74,9 @@ def test_qubitization_phase_estimation_of_walk(num_terms: int, use_resource_stat ) qpe_bloq = QubitizationQPE(walk, state_prep) + # TODO cirq simulation seems to fail for controlled `QubitizationWalkOperator`. + # the following code decomposes a few levels till it gets only simulable bloqs. + # https://github.com/quantumlib/Qualtran/issues/1495 def should_decompose(binst): from qualtran import Adjoint, Controlled from qualtran.bloqs.basic_gates import Power diff --git a/qualtran/bloqs/phase_estimation/text_book_qpe_test.py b/qualtran/bloqs/phase_estimation/text_book_qpe_test.py index 540c871cd..79159e76e 100644 --- a/qualtran/bloqs/phase_estimation/text_book_qpe_test.py +++ b/qualtran/bloqs/phase_estimation/text_book_qpe_test.py @@ -68,6 +68,9 @@ def test_textbook_phase_estimation_qubitized_walk(num_terms: int, use_resource_s # 1. Construct QPE bloq qpe_bloq = TextbookQPE(walk, ctrl_state_prep=state_prep) + # TODO cirq simulation seems to fail for controlled `QubitizationWalkOperator`. + # the following code decomposes a few levels till it gets only simulable bloqs. + # https://github.com/quantumlib/Qualtran/issues/1495 def should_decompose(binst): from qualtran import Adjoint, Controlled from qualtran.bloqs.basic_gates import Power