Skip to content

Commit

Permalink
Merge pull request #76 from adamglos92/master
Browse files Browse the repository at this point in the history
applychannel on UnitaryChannel and AbstractVector fixed
  • Loading branch information
pgawron committed Aug 30, 2019
2 parents ddfe3ec + fe2ec84 commit 54a8e75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/channels/applications.jl
Expand Up @@ -69,7 +69,7 @@ end

function applychannel::UnitaryChannel{<:AbstractMatrix{<:Number}}, ψ::AbstractVector{<:Number})
# TODO: promote type
Φ*ψ
Φ.matrix*ψ
end

function applychannel::IdentityChannel{<:AbstractMatrix{<:Number}}, ψ::AbstractVector{<:Number})
Expand Down Expand Up @@ -99,4 +99,4 @@ for qop in (:KrausOperators, :SuperOperator, :DynamicalMatrix, :Stinespring,
applychannel(Φ, ρ)
end
end
end
end

0 comments on commit 54a8e75

Please sign in to comment.