Skip to content
This repository has been archived by the owner on Dec 18, 2021. It is now read-only.

Commit

Permalink
fix batched_kron!
Browse files Browse the repository at this point in the history
  • Loading branch information
GiggleLiu committed Aug 30, 2019
1 parent 86d74bd commit 17ec5df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,9 @@ end
end
state
end

#### Yao Base patch ####
using YaoBase
function YaoBase.batched_kron!(C::Array{T, 3}, A::AbstractArray{T1, 3}, B::AbstractArray{T2, 3}) where {T, T1, T2}
YaoBase.batched_kron!(C, convert(Array{T,3}, A), convert(Array{T,3}, B))
end

0 comments on commit 17ec5df

Please sign in to comment.