From 5fa1395545a3bc9435795c6f46e3f287bcfa05e2 Mon Sep 17 00:00:00 2001 From: Rogerluo Date: Sat, 26 Sep 2020 17:21:55 -0400 Subject: [PATCH] Update src/instruct.jl Co-authored-by: Leo --- src/instruct.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/instruct.jl b/src/instruct.jl index 509ad48..6638728 100644 --- a/src/instruct.jl +++ b/src/instruct.jl @@ -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