|
21 | 21 |
|
22 | 22 | from qualtran import Bloq, bloq_example, BloqDocSpec, CtrlSpec, Signature, Soquet |
23 | 23 | from qualtran.bloqs.basic_gates.su2_rotation import SU2RotationGate |
24 | | -from qualtran.bloqs.bookkeeping import IgnoringCtrl |
| 24 | +from qualtran.bloqs.bookkeeping import Always |
25 | 25 | from qualtran.bloqs.qsp.generalized_qsp import GeneralizedQSP |
26 | 26 | from qualtran.bloqs.qubitization.qubitization_walk_operator import QubitizationWalkOperator |
27 | 27 | from qualtran.linalg.polynomial.jacobi_anger_approximations import ( |
@@ -154,7 +154,7 @@ def __add_prepare( |
154 | 154 |
|
155 | 155 | selection_registers = {reg.name: gqsp_soqs[reg.name] for reg in prepare.selection_registers} |
156 | 156 | prepare_out_soqs = bb.add_d( |
157 | | - IgnoringCtrl(prepare.adjoint() if adjoint else prepare), |
| 157 | + Always(prepare.adjoint() if adjoint else prepare), |
158 | 158 | **selection_registers, |
159 | 159 | **state_prep_ancilla_soqs, |
160 | 160 | ) |
@@ -187,8 +187,8 @@ def build_call_graph(self, ssa: 'SympySymbolAllocator') -> 'BloqCountDictT': |
187 | 187 | counts = Counter[Bloq]() |
188 | 188 |
|
189 | 189 | d = self.degree |
190 | | - counts[IgnoringCtrl(self.walk_operator.prepare)] += 1 |
191 | | - counts[IgnoringCtrl(self.walk_operator.prepare.adjoint())] += 1 |
| 190 | + counts[Always(self.walk_operator.prepare)] += 1 |
| 191 | + counts[Always(self.walk_operator.prepare.adjoint())] += 1 |
192 | 192 | counts[self.walk_operator.controlled(ctrl_spec=CtrlSpec(cvs=0))] += d |
193 | 193 | counts[self.walk_operator.adjoint().controlled()] += d |
194 | 194 | counts[SU2RotationGate.arbitrary(ssa)] += 2 * d + 1 |
|
0 commit comments