Skip to content

Commit

Permalink
docs: clarify method purpose (#13312) (#13321)
Browse files Browse the repository at this point in the history
* docs: clarify method

* docs: improve comment

(cherry picked from commit efdcb75)

Co-authored-by: J. Harte <13206585+boonware@users.noreply.github.com>
  • Loading branch information
mergify[bot] and boonware authored Oct 14, 2024
1 parent 654cdc3 commit 93decc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit/quantum_info/operators/symplectic/base_pauli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 the Pauli with respect to the Z basis."""
complex_phase = np.mod(self._phase, 2)
if np.all(complex_phase == 0):
return self
Expand Down

0 comments on commit 93decc8

Please sign in to comment.