@@ -109,7 +109,7 @@ mul!(result::Bra{B2},b::Bra{B1},M::SparseOpPureType{B1,B2},alpha,beta) where {B1
109109- (op1:: EyeOpType{BL,BR} ,op2:: SparseOpType{BL,BR} ) where {BL,BR} = sparse (op1) - op2
110110+ (op1:: SparseOpType{BL,BR} ,op2:: EyeOpType{BL,BR} ) where {BL,BR} = sparse (op2) + op1
111111- (op2:: SparseOpType{BL,BR} ,op1:: EyeOpType{BL,BR} ) where {BL,BR} = op2 - sparse (op1)
112- + (op1:: EyeOpType{BL,BR} ,op2:: EyeOpType{BL,BR} ) where {BL,BR} = sparse (op1) + sparse (op1 )
112+ + (op1:: EyeOpType{BL,BR} ,op2:: EyeOpType{BL,BR} ) where {BL,BR} = sparse (op1) + sparse (op2 )
113113- (op2:: EyeOpType{BL,BR} ,op1:: EyeOpType{BL,BR} ) where {BL,BR} = sparse (op2) - sparse (op1)
114114- (op:: EyeOpType ) = - sparse (op)
115115* (op:: EyeOpType ,a:: T ) where {T<: Number } = a* sparse (op)
@@ -118,3 +118,4 @@ mul!(result::Bra{B2},b::Bra{B1},M::SparseOpPureType{B1,B2},alpha,beta) where {B1
118118tensor (a:: EyeOpType , b:: SparseOpType ) = tensor (sparse (a),b)
119119tensor (a:: SparseOpType , b:: EyeOpType ) = tensor (a,sparse (b))
120120tensor (a:: EyeOpType , b:: EyeOpType ) = tensor (sparse (a),sparse (b))
121+ dagger (a:: EyeOpType ) = dagger (sparse (a))
0 commit comments