We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cffd492 commit 13933afCopy full SHA for 13933af
src/linalg.jl
@@ -8,18 +8,5 @@ directsum(a::AbstractOperator...) = reduce(directsum, a)
8
ptrace(a::AbstractOperator, index) = arithmetic_unary_error("Partial trace", a)
9
_index_complement(b::CompositeBasis, indices) = complement(length(b.bases), indices)
10
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
18
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
25
anticommutator(A::AbstractOperator, B::AbstractOperator) = A*B + B*A
0 commit comments