@@ -4,7 +4,7 @@ function QuantumOpticsBase.:+(a::LazyTensor{B1,B2},b::LazyTensor{B1,B2}) where {
44end
55
66function QuantumOpticsBase.:- (a:: LazyTensor{B1,B2} ,b:: LazyTensor{B1,B2} ) where {B1,B2}
7- LazySum ([ 1 ,- 1 ],[ a,b] )
7+ LazySum (( 1 ,- 1 ),( a,b) )
88end
99
1010function QuantumOpticsBase.:+ (a:: LazyTensor{B1,B2} ,b:: Operator{B1,B2} ) where {B1,B2}
3535function QuantumOpticsBase.:⊗ (a:: LazyTensor ,b:: Operator )
3636 if isequal (b,identityoperator (basis (b)))
3737 btotal = basis (a) ⊗ basis (b)
38- LazyTensor (btotal,btotal,[ a. indices... ] ,(a. operators... ,),a. factor)
38+ LazyTensor (btotal,btotal,( a. indices... ,) ,(a. operators... ,),a. factor)
3939 else
4040 a ⊗ LazyTensor (b. basis_l,b. basis_r,[1 ],(b,),1 )
4141 end
4444function QuantumOpticsBase.:⊗ (a:: Operator ,b:: LazyTensor )
4545 if isequal (a,identityoperator (basis (a)))
4646 btotal = basis (a) ⊗ basis (b)
47- LazyTensor (btotal,btotal,[ b. indices... ] . + 1 ,(b. operators... ,),b. factor)
47+ LazyTensor (btotal,btotal,( b. indices... ,) . + 1 ,(b. operators... ,),b. factor)
4848 else
4949 LazyTensor (a. basis_l,a. basis_r,[1 ],(a,),1 ) ⊗ b
5050 end
0 commit comments