diff --git a/cirq-core/cirq/ops/eigen_gate.py b/cirq-core/cirq/ops/eigen_gate.py index 4bcc1d65b4b..f11637b4fd6 100644 --- a/cirq-core/cirq/ops/eigen_gate.py +++ b/cirq-core/cirq/ops/eigen_gate.py @@ -313,7 +313,7 @@ def _canonical_exponent(self): self._canonical_exponent_cached = self._exponent elif protocols.is_parameterized(self._exponent): self._canonical_exponent_cached = self._exponent - if isinstance(self._exponent, sympy.Expr) and self._exponent.is_constant(): + if isinstance(self._exponent, sympy.Number): self._canonical_exponent_cached = float(self._exponent) else: self._canonical_exponent_cached = self._exponent % period