Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
anurudhp committed Aug 20, 2024
1 parent e852fbe commit 8efdb70
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions qualtran/bloqs/basic_gates/rotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand All @@ -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")
Expand Down

0 comments on commit 8efdb70

Please sign in to comment.