Skip to content

Commit

Permalink
Fix error message at class SparsePauliOp (#10664)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshida-ryuhei authored Aug 18, 2023
1 parent e6c431e commit 7bc2bfd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def __init__(
QiskitError: If the input data or coeffs are invalid.
"""
if ignore_pauli_phase and not isinstance(data, PauliList):
raise QiskitError("ignore_pauli_list=True is only valid with PauliList data")
raise QiskitError("ignore_pauli_phase=True is only valid with PauliList data")

if isinstance(data, SparsePauliOp):
if coeffs is None:
Expand Down

0 comments on commit 7bc2bfd

Please sign in to comment.