@@ -174,23 +174,15 @@ def as_cirq_op(
174
174
}
175
175
176
176
def _t_complexity_ (self ) -> 'TComplexity' :
177
- # This is based on the decomposition provided by `cirq.decompose_multi_controlled_rotation`
178
- # which uses three cirq.MatrixGate's to do a controlled version of any single-qubit gate.
179
- # The first MatrixGate happens to be a clifford, Hadamard operation in this case.
180
- # The other two are considered 'rotations'.
181
- # https://github.com/quantumlib/Qualtran/issues/237
182
- return TComplexity (rotations = 2 , clifford = 4 )
177
+ # https://github.com/quantumlib/Qualtran/issues/878#issuecomment-2257237443
178
+ return TComplexity (t = 2 , clifford = 9 )
183
179
184
180
def my_static_costs (self , cost_key : 'CostKey' ):
185
181
from qualtran .resource_counting import GateCounts , QECGatesCost
186
182
187
183
if cost_key == QECGatesCost ():
188
- # This is based on the decomposition provided by `cirq.decompose_multi_controlled_rotation`
189
- # which uses three cirq.MatrixGate's to do a controlled version of any single-qubit gate.
190
- # The first MatrixGate happens to be a clifford, Hadamard operation in this case.
191
- # The other two are considered 'rotations'.
192
- # https://github.com/quantumlib/Qualtran/issues/237
193
- return GateCounts (rotation = 2 , clifford = 4 )
184
+ # https://github.com/quantumlib/Qualtran/issues/878#issuecomment-2257237443
185
+ return GateCounts (t = 2 , clifford = 9 )
194
186
195
187
return NotImplemented
196
188
0 commit comments