From 8efdb7043bbc6378b989a7eb476f2b097f4b3950 Mon Sep 17 00:00:00 2001 From: Anurudh Peduri Date: Tue, 20 Aug 2024 16:13:18 -0700 Subject: [PATCH] mypy --- qualtran/bloqs/basic_gates/rotation.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qualtran/bloqs/basic_gates/rotation.py b/qualtran/bloqs/basic_gates/rotation.py index a724ef2d36..b6941bfbc8 100644 --- a/qualtran/bloqs/basic_gates/rotation.py +++ b/qualtran/bloqs/basic_gates/rotation.py @@ -108,7 +108,7 @@ def _z_pow() -> ZPowGate: class CZPowGate(CirqGateAsBloqBase): exponent: float = 1.0 global_shift: float = 0.0 - eps: float = 1e-11 + eps: SymbolicFloat = 1e-11 def decompose_bloq(self) -> 'CompositeBloq': raise DecomposeTypeError(f"{self} is atomic") @@ -173,7 +173,7 @@ class XPowGate(CirqGateAsBloqBase): """ exponent: Union[sympy.Expr, float] = 1.0 global_shift: float = 0.0 - eps: float = 1e-11 + eps: SymbolicFloat = 1e-11 def decompose_bloq(self) -> 'CompositeBloq': raise DecomposeTypeError(f"{self} is atomic") @@ -243,7 +243,7 @@ class YPowGate(CirqGateAsBloqBase): """ exponent: Union[sympy.Expr, float] = 1.0 global_shift: float = 0.0 - eps: float = 1e-11 + eps: SymbolicFloat = 1e-11 def decompose_bloq(self) -> 'CompositeBloq': raise DecomposeTypeError(f"{self} is atomic") @@ -311,7 +311,7 @@ def wire_symbol(self, reg: Optional[Register], idx: Tuple[int, ...] = tuple()) - @frozen class Rx(CirqGateAsBloqBase): angle: Union[sympy.Expr, float] - eps: float = 1e-11 + eps: SymbolicFloat = 1e-11 def decompose_bloq(self) -> 'CompositeBloq': raise DecomposeTypeError(f"{self} is atomic") @@ -332,7 +332,7 @@ def wire_symbol(self, reg: Optional[Register], idx: Tuple[int, ...] = tuple()) - @frozen class Ry(CirqGateAsBloqBase): angle: Union[sympy.Expr, float] - eps: float = 1e-11 + eps: SymbolicFloat = 1e-11 def decompose_bloq(self) -> 'CompositeBloq': raise DecomposeTypeError(f"{self} is atomic")