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 f2b1ba3 commit baecfc3
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 @@ -345,8 +345,8 @@ end # for
(loc, )::Tuple{Int},
theta::Number
) where {T, N}
a, b = cos(theta / 2), -im*sin(theta / 2)
instruct_kernel(state, loc, 1 << (loc - 1), 1 << loc, a, b, b, a)
b, a = sincos(theta / 2)
instruct_kernel(state, loc, 1 << (loc - 1), 1 << loc, a, -im*b, -im*b, a)
return state
end

Expand Down

0 comments on commit baecfc3

Please sign in to comment.