Skip to content

Missing tensor() method for SuperOperator type #138

@ba2tripleO

Description

@ba2tripleO

Hi! I was trying to compute a tensor product for two superoperators but it looks like we don't have dispatch for tensor() that applies to ::SparseSuperOpType

using QuantumOpticsBase
sOp1 = spre(create(FockBasis(1)))
sOp2 = spost(create(FockBasis(1)))
julia> sOp1sOp2
ERROR: MethodError: no method matching tensor(::SparseSuperOpType{Tuple{FockBasis{Int64}, FockBasis{Int64}}, Tuple{FockBasis{Int64}, FockBasis{Int64}}, SparseArrays.SparseMatrixCSC{ComplexF64, Int64}}, ::SparseSuperOpType{Tuple{FockBasis{Int64}, FockBasis{Int64}}, Tuple{FockBasis{Int64}, FockBasis{Int64}}, SparseArrays.SparseMatrixCSC{ComplexF64, Int64}})
Stacktrace:
 [1] top-level scope
   @ REPL[1]:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions