Skip to content

Commit

Permalink
fix non tensor input
Browse files Browse the repository at this point in the history
  • Loading branch information
refraction-ray committed May 30, 2024
1 parent d76df7d commit 54bd507
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tensorcircuit/quantum.py
Original file line number Diff line number Diff line change
Expand Up @@ -1426,7 +1426,8 @@ def PauliString2COO(l: Sequence[int], weight: Optional[float] = None) -> Tensor:
:rtype: Tensor
"""
n = len(l)
l = backend.cast(l, dtype="int64")
l = num_to_tensor(l, dtype="int64")
# l = backend.cast(l, dtype="int64")
one = num_to_tensor(0b1, dtype="int64")
idx_x = num_to_tensor(0b0, dtype="int64")
idx_y = num_to_tensor(0b0, dtype="int64")
Expand Down

0 comments on commit 54bd507

Please sign in to comment.