From 7bc2bfd4f8dcc436aec5f85641e3ec07be15eb01 Mon Sep 17 00:00:00 2001 From: Ryuhei Yoshida Date: Fri, 18 Aug 2023 19:09:24 +0900 Subject: [PATCH] Fix error message at class SparsePauliOp (#10664) --- qiskit/quantum_info/operators/symplectic/sparse_pauli_op.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qiskit/quantum_info/operators/symplectic/sparse_pauli_op.py b/qiskit/quantum_info/operators/symplectic/sparse_pauli_op.py index cee5300049e4..f42d730c837d 100644 --- a/qiskit/quantum_info/operators/symplectic/sparse_pauli_op.py +++ b/qiskit/quantum_info/operators/symplectic/sparse_pauli_op.py @@ -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: