Skip to content

Commit

Permalink
link issue
Browse files Browse the repository at this point in the history
  • Loading branch information
anurudhp committed Nov 12, 2024
1 parent 09c3ea8 commit 30ab20b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qualtran/bloqs/phase_estimation/qubitization_qpe_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions qualtran/bloqs/phase_estimation/text_book_qpe_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 30ab20b

Please sign in to comment.