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

Commit

Permalink
Update src/instruct.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Leo <cacate0129@gmail.com>
  • Loading branch information
Roger-luo and GiggleLiu committed Sep 26, 2020
1 parent baecfc3 commit bf9e875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/instruct.jl
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,8 @@ function YaoBase.instruct!(
(loc, )::Tuple{Int},
theta::Number
) where {T, N}
a, d = exp(-im * theta / 2), exp(im * theta / 2)
instruct_kernel(state, loc, 1 << (loc - 1), 1 << loc, a, zero(T), zero(T), d)
a = exp(-im * theta / 2)
instruct_kernel(state, loc, 1 << (loc - 1), 1 << loc, a, zero(T), zero(T), a')
return state
end

Expand Down

0 comments on commit bf9e875

Please sign in to comment.