diff --git a/qualtran/cirq_interop/t_complexity_protocol.py b/qualtran/cirq_interop/t_complexity_protocol.py index 759ca18999..5ee882a1d8 100644 --- a/qualtran/cirq_interop/t_complexity_protocol.py +++ b/qualtran/cirq_interop/t_complexity_protocol.py @@ -94,9 +94,7 @@ def _is_clifford_or_t(stc: Any, fail_quietly: bool) -> Optional[TComplexity]: if not isinstance(stc, (cirq.Gate, cirq.Operation)): return None - if isinstance(stc, cirq.GlobalPhaseGate) or ( - isinstance(stc, cirq.Operation) and isinstance(stc.gate, cirq.GlobalPhaseGate) - ): + if isinstance(stc, cirq.Operation) and isinstance(stc.gate, cirq.GlobalPhaseGate): return TComplexity() if isinstance(stc, cirq.ClassicallyControlledOperation):