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 bf9e875 commit 5fa1395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/instruct.jl
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ function YaoBase.instruct!(
(loc, )::Tuple{Int},
theta::Number
) where {T, N}
a, b = cos(theta / 2), sin(theta / 2)
b, a = sincos(theta / 2)
instruct_kernel(state, loc, 1 << (loc - 1), 1 << loc, a, -b, b, a)
return state
end
Expand Down

0 comments on commit 5fa1395

Please sign in to comment.