diff --git a/qiskit/circuit/library/generalized_gates/unitary.py b/qiskit/circuit/library/generalized_gates/unitary.py index b9353ab528fe..60c8dd05cfe6 100644 --- a/qiskit/circuit/library/generalized_gates/unitary.py +++ b/qiskit/circuit/library/generalized_gates/unitary.py @@ -125,7 +125,7 @@ def inverse(self, annotated: bool = False): return self.adjoint() def conjugate(self): - """Return the complex conjugate of the unitary with respect to the representation returned by ``to_matrix``.""" + """Return the complex conjugate of the unitary with respect to the representation returned by :meth:`~UnitaryGate.to_matrix`.""" return UnitaryGate(numpy.conj(self.to_matrix())) def adjoint(self): diff --git a/qiskit/quantum_info/operators/symplectic/sparse_pauli_op.py b/qiskit/quantum_info/operators/symplectic/sparse_pauli_op.py index 1719b91cc405..e98e8bfb04cc 100644 --- a/qiskit/quantum_info/operators/symplectic/sparse_pauli_op.py +++ b/qiskit/quantum_info/operators/symplectic/sparse_pauli_op.py @@ -293,7 +293,7 @@ def __setitem__(self, key, value): # --------------------------------------------------------------------- def conjugate(self): - """Return the complex conjugate with respect to the representation returned by ``to_matrix``.""" + """Return the complex conjugate with respect to the representation returned by :meth:`~SparsePauliOp.to_matrix`.""" # Conjugation conjugates phases and also Y.conj() = -Y # Hence we need to multiply conjugated coeffs by -1 # for rows with an odd number of Y terms. diff --git a/qiskit/quantum_info/states/densitymatrix.py b/qiskit/quantum_info/states/densitymatrix.py index 3e58676d8891..b3b11b0e021d 100644 --- a/qiskit/quantum_info/states/densitymatrix.py +++ b/qiskit/quantum_info/states/densitymatrix.py @@ -212,7 +212,7 @@ def to_operator(self) -> Operator: return Operator(self.data, input_dims=dims, output_dims=dims) def conjugate(self): - """Return the complex conjugate of the density matrix with respect to the basis of the vector components returned by :meth:`data`.""" + """Return the complex conjugate of the density matrix with respect to the basis of the vector components returned by :meth:`~DensityMatrix.data`.""" return DensityMatrix(np.conj(self.data), dims=self.dims()) def trace(self): diff --git a/qiskit/quantum_info/states/stabilizerstate.py b/qiskit/quantum_info/states/stabilizerstate.py index ae6253186a57..30e4eac471a1 100644 --- a/qiskit/quantum_info/states/stabilizerstate.py +++ b/qiskit/quantum_info/states/stabilizerstate.py @@ -195,7 +195,7 @@ def to_operator(self) -> Operator: def conjugate(self): """Return the complex conjugate of the underlying Clifford operator with - respect to the representation returned by the operator's ``to_matrix`` method.""" + respect to the representation returned by the operator's :meth:`~StabilizerState.to_matrix` method.""" ret = self.copy() ret._data = ret._data.conjugate() return ret diff --git a/qiskit/quantum_info/states/statevector.py b/qiskit/quantum_info/states/statevector.py index 39baa8c35101..efe12c7c2d38 100644 --- a/qiskit/quantum_info/states/statevector.py +++ b/qiskit/quantum_info/states/statevector.py @@ -254,7 +254,7 @@ def to_operator(self) -> Operator: return Operator(mat, input_dims=self.dims(), output_dims=self.dims()) def conjugate(self) -> Statevector: - """Return the complex conjugate of the state vector with respect to the basis of the vector components returned by :meth:`data`.""" + """Return the complex conjugate of the state vector with respect to the basis of the vector components returned by :meth:`~StateVector.data`.""" return Statevector(np.conj(self.data), dims=self.dims()) def trace(self) -> np.float64: