File tree Expand file tree Collapse file tree 2 files changed +0
-33
lines changed Expand file tree Collapse file tree 2 files changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -221,38 +221,6 @@ function check_samebases(b)
221221 end
222222end
223223
224-
225- """
226- multiplicable(a, b)
227-
228- Check if two objects are multiplicable.
229- """
230- multiplicable (b1:: Basis , b2:: Basis ) = b1== b2
231-
232- function multiplicable (b1:: CompositeBasis , b2:: CompositeBasis )
233- if ! equal_shape (b1. shape,b2. shape)
234- return false
235- end
236- for i= 1 : length (b1. shape)
237- if ! multiplicable (b1. bases[i], b2. bases[i])
238- return false
239- end
240- end
241- return true
242- end
243-
244- """
245- check_multiplicable(a, b)
246-
247- Throw an [`IncompatibleBases`](@ref) error if the objects are
248- not multiplicable.
249- """
250- function check_multiplicable (b1, b2)
251- if BASES_CHECK[] && ! multiplicable (b1, b2)
252- throw (IncompatibleBases ())
253- end
254- end
255-
256224"""
257225 reduced(a, indices)
258226
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ check_samebases(a::AbstractSuperOperator) = check_samebases(fullbasis(a))::Bool
77check_samebases (a:: AbstractOperator , b:: AbstractOperator ) = check_samebases (fullbasis (a), fullbasis (b)):: Bool
88check_samebases (a:: AbstractSuperOperator , b:: AbstractSuperOperator ) = check_samebases (fullbasis (a), fullbasis (b)):: Bool
99
10- multiplicable (a:: AbstractOperator , b:: AbstractOperator ) = multiplicable (fullbasis (a). right, fullbasis (b). left)
1110dagger (a:: AbstractOperator ) = arithmetic_unary_error (" Hermitian conjugate" , a)
1211transpose (a:: AbstractOperator ) = arithmetic_unary_error (" Transpose" , a)
1312directsum (a:: AbstractOperator... ) = reduce (directsum, a)
You can’t perform that action at this time.
0 commit comments