Skip to content

Commit

Permalink
channel basis stub
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Gawron committed Aug 20, 2019
1 parent 8e03266 commit 119012d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/matrixbases.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ end

abstract type AbstractBasis end
abstract type AbstractMatrixBasis{T} <: AbstractBasis where T<:AbstractMatrix{<:Number} end
abstract type AbstractChannelBasis{T} <: AbstractBasis where T<:AbstractMatrix{<:Number} end

struct HermitianBasis{T} <: AbstractMatrixBasis{T}
iterator::HermitianBasisIterator{T}
Expand Down Expand Up @@ -57,4 +58,11 @@ end

function combine(basis::T, v::Vector{<:Number}) where T<:AbstractMatrixBasis
sum(basis.iterator .* v)
end

function represent(basis, Φ::AbstractQuantumOperation{T}) where T<: AbstractMatrix{<:Number}
J = convert(DynamicalMatrix{T}, Φ)
J.idim
J.odim
J.matrix
end

0 comments on commit 119012d

Please sign in to comment.