Skip to content

Commit 06f4b93

Browse files
committed
Replace np.float128 with np.longdouble
1 parent 8512deb commit 06f4b93

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

qualtran/rotation_synthesis/lattice/geometry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def from_bounds(start, end) -> "Range":
4545
elif all(rst.is_int(x) for x in sides):
4646
dtype = int
4747
elif any(isinstance(x, np.number) for x in sides):
48-
dtype = np.float128
48+
dtype = np.longdouble
4949
else:
5050
dtype = float
5151
return Range(*map(dtype, sides))

qualtran/rotation_synthesis/math_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def arcsin(self, x: Real) -> Real:
9191
lambda x: int(np.ceil(x)),
9292
np.arctan2,
9393
np.arcsin,
94-
np.float128,
94+
np.longdouble,
9595
)
9696

9797

0 commit comments

Comments
 (0)