See here:
|
samebases(a::AbstractOperator) = samebases(a.basis_l, a.basis_r)::Bool |
|
samebases(a::AbstractOperator, b::AbstractOperator) = samebases(a.basis_l, b.basis_l)::Bool && samebases(a.basis_r, b.basis_r)::Bool |
|
check_samebases(a::Union{AbstractOperator, AbstractSuperOperator}) = check_samebases(a.basis_l, a.basis_r) |
Assuming that these structures internally have .basis fields breaks in many important cases. This should instead just use formalized interfaces like calls to basis.
This is a special case of issue #12
See here:
QuantumInterface.jl/src/linalg.jl
Lines 1 to 3 in d385ebe
Assuming that these structures internally have
.basisfields breaks in many important cases. This should instead just use formalized interfaces like calls tobasis.This is a special case of issue #12