Skip to content

Commit b03a755

Browse files
committed
hadamard t=2, cliff=9
1 parent 265ce70 commit b03a755

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

qualtran/bloqs/basic_gates/hadamard.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -174,23 +174,15 @@ def as_cirq_op(
174174
}
175175

176176
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)
183179

184180
def my_static_costs(self, cost_key: 'CostKey'):
185181
from qualtran.resource_counting import GateCounts, QECGatesCost
186182

187183
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)
194186

195187
return NotImplemented
196188

0 commit comments

Comments
 (0)