Skip to content

Commit 13933af

Browse files
authored
minor cleanup of commutator/anticommutator docstrings
1 parent cffd492 commit 13933af

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/linalg.jl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,5 @@ directsum(a::AbstractOperator...) = reduce(directsum, a)
88
ptrace(a::AbstractOperator, index) = arithmetic_unary_error("Partial trace", a)
99
_index_complement(b::CompositeBasis, indices) = complement(length(b.bases), indices)
1010
reduced(a, indices) = ptrace(a, _index_complement(basis(a), indices))
11-
12-
# Commutator and anticommutator operations
13-
"""
14-
commutator(A, B)
15-
16-
Compute the commutator `[A, B] = AB - BA` of two operators.
17-
"""
1811
commutator(A::AbstractOperator, B::AbstractOperator) = A*B - B*A
19-
20-
"""
21-
anticommutator(A, B)
22-
23-
Compute the anticommutator `{A, B} = AB + BA` of two operators.
24-
"""
2512
anticommutator(A::AbstractOperator, B::AbstractOperator) = A*B + B*A

0 commit comments

Comments
 (0)