Skip to content

Commit

Permalink
fix: minor docstring update
Browse files Browse the repository at this point in the history
  • Loading branch information
changsookim committed Oct 16, 2024
1 parent 8c02e78 commit 6c77fde
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/qibo/quantum_info/entanglement.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def negativity(state, bipartition, backend=None):
state (ndarray): statevector or density matrix.
bipartition (list or tuple or ndarray): qubits in the subsystem to be traced out.
backend (:class:`qibo.backends.abstract.Backend`, optional): backend to be used
in the execution. If ``None``, it uses :class:`qibo.backends.GlobalBackend`.
in the execution. If ``None``, it uses it uses the current backend.
Defaults to ``None``.
Returns:
Expand Down
4 changes: 2 additions & 2 deletions src/qibo/quantum_info/linalg_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def partial_transpose(
partition (Union[List[int], Tuple[int, ...]]): indices of qubits to be transposed.
backend (:class:`qibo.backends.abstract.Backend`, optional): backend
to be used in the execution. If ``None``, it uses
:class:`qibo.backends.GlobalBackend`. Defaults to ``None``.
it uses the current backend. Defaults to ``None``.
Returns:
ndarray: Partially transposed operator(s) :math:`\\O^{T_{B}}`.
Expand Down Expand Up @@ -316,7 +316,7 @@ def singular_value_decomposition(matrix, backend=None):
matrix (ndarray): matrix whose SVD to calculate.
backend (:class:`qibo.backends.abstract.Backend`, optional): backend
to be used in the execution. If ``None``, it uses
:class:`qibo.backends.GlobalBackend`. Defaults to ``None``.
the current backend. Defaults to ``None``.
Returns:
ndarray, ndarray, ndarray: Singular value decomposition of :math:`A`, i.e.
Expand Down
2 changes: 1 addition & 1 deletion src/qibo/quantum_info/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def hilbert_schmidt_inner_product(operator_A, operator_B, backend=None):
operator_A (ndarray): operator :math:`A`.
operator_B (ndarray): operator :math:`B`.
backend (:class:`qibo.backends.abstract.Backend`, optional): backend to be used
in the execution. If ``None``, it uses :class:`qibo.backends.GlobalBackend`.
in the execution. If ``None``, it uses the current backend.
Defaults to ``None``.
Returns:
Expand Down

0 comments on commit 6c77fde

Please sign in to comment.