Skip to content

Commit a52bd84

Browse files
committed
Remove casting in PauliString.__mul__
1 parent 0ba3672 commit a52bd84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cirq-core/cirq/ops/pauli_string.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def __mul__(self, other: complex) -> cirq.PauliString[TKey]:
268268
def __mul__(self, other):
269269
if isinstance(other, (PauliString, numbers.Number)):
270270
return PauliString(
271-
cast(PAULI_STRING_LIKE, other),
271+
other,
272272
qubit_pauli_map=self._qubit_pauli_map,
273273
coefficient=self.coefficient,
274274
)

0 commit comments

Comments
 (0)