File tree 2 files changed +0
-33
lines changed
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)
221
221
end
222
222
end
223
223
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
-
256
224
"""
257
225
reduced(a, indices)
258
226
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ check_samebases(a::AbstractSuperOperator) = check_samebases(fullbasis(a))::Bool
7
7
check_samebases (a:: AbstractOperator , b:: AbstractOperator ) = check_samebases (fullbasis (a), fullbasis (b)):: Bool
8
8
check_samebases (a:: AbstractSuperOperator , b:: AbstractSuperOperator ) = check_samebases (fullbasis (a), fullbasis (b)):: Bool
9
9
10
- multiplicable (a:: AbstractOperator , b:: AbstractOperator ) = multiplicable (fullbasis (a). right, fullbasis (b). left)
11
10
dagger (a:: AbstractOperator ) = arithmetic_unary_error (" Hermitian conjugate" , a)
12
11
transpose (a:: AbstractOperator ) = arithmetic_unary_error (" Transpose" , a)
13
12
directsum (a:: AbstractOperator... ) = reduce (directsum, a)
You can’t perform that action at this time.
0 commit comments