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

Commit

Permalink
Merge d2d282d into 8526648
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger-luo committed May 22, 2019
2 parents 8526648 + d2d282d commit 0e3c268
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/instruct.jl
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ for (G, FACTOR) in zip([:Z, :S, :T, :Sdag, :Tdag], [:(-1), :(im), :($(exp(im*π/
@eval YaoBase.instruct!(state::AbstractVecOrMat, g::Val{$(QuoteNode(G))}, locs::Tuple{Int}) =
instruct!(state, g, locs...)

# no effect (to fix ambiguity)
@eval YaoBase.instruct!(::AbstractVecOrMat, ::Val{$(QuoteNode(G))}, ::Tuple{}) = nothing

@eval function YaoBase.instruct!(state::AbstractVecOrMat{T}, ::Val{$(QuoteNode(G))}, locs::Int) where T
mask = bmask(locs)
step = 1<<(locs-1)
Expand Down

0 comments on commit 0e3c268

Please sign in to comment.