Skip to content

Commit

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

* docs: improve comment
  • Loading branch information
boonware authored Oct 14, 2024
1 parent 99397c4 commit efdcb75
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 efdcb75

Please sign in to comment.