qiskit/releasenotes/notes/0.19/pauli-op-permute-fix-d244a1...

11 lines
318 B
YAML

---
fixes:
- |
Fixed a bug in :meth:`.PauliSumOp.permute` causing the error::
QiskitError: 'Pauli string label "" is not valid.'
if the permutation had the same number of Pauli terms. Calling
``permute([2, 1, 0])`` on ``X ^ Y ^ Z`` no longer raises an error, and now
returns ``Z ^ Y ^ X``.