From 5fdedd3691b0f721cf8e32dba81c5b4c33edcacc Mon Sep 17 00:00:00 2001 From: "J. Harte" <13206585+boonware@users.noreply.github.com> Date: Fri, 11 Oct 2024 13:02:17 +0100 Subject: [PATCH 1/2] docs: clarify method --- qiskit/quantum_info/operators/symplectic/base_pauli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qiskit/quantum_info/operators/symplectic/base_pauli.py b/qiskit/quantum_info/operators/symplectic/base_pauli.py index 38e471f0b0a6..9e12e583548f 100644 --- a/qiskit/quantum_info/operators/symplectic/base_pauli.py +++ b/qiskit/quantum_info/operators/symplectic/base_pauli.py @@ -184,7 +184,7 @@ def _multiply(self, other): return BasePauli(self._z, self._x, np.mod(self._phase + phase, 4)) def conjugate(self): - """Return the conjugate of each Pauli in the list.""" + """Return the complex conjugate of each Pauli in the list.""" complex_phase = np.mod(self._phase, 2) if np.all(complex_phase == 0): return self From 1c313bd9b01ada2b44e7e3f1a6fee5c0fb2f43a4 Mon Sep 17 00:00:00 2001 From: "J. Harte" <13206585+boonware@users.noreply.github.com> Date: Mon, 14 Oct 2024 17:18:57 +0100 Subject: [PATCH 2/2] docs: improve comment --- qiskit/quantum_info/operators/symplectic/base_pauli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qiskit/quantum_info/operators/symplectic/base_pauli.py b/qiskit/quantum_info/operators/symplectic/base_pauli.py index 9e12e583548f..1d9e88929b2d 100644 --- a/qiskit/quantum_info/operators/symplectic/base_pauli.py +++ b/qiskit/quantum_info/operators/symplectic/base_pauli.py @@ -184,7 +184,7 @@ def _multiply(self, other): return BasePauli(self._z, self._x, np.mod(self._phase + phase, 4)) def conjugate(self): - """Return the complex conjugate of each Pauli in the list.""" + """Return the complex conjugate of the Pauli with respect to the Z basis.""" complex_phase = np.mod(self._phase, 2) if np.all(complex_phase == 0): return self