Closed Roger-luo closed 4 years ago
currently this stack overflows
@device function qft(l::Int, n::Int) l => H for k in l:n control(k, l=>Shift(2π/2^(k-l))) end if n > l l+1:n => qft(l+1, n) end end @device qft(n::Int) = 1:n => qft(1, n)
currently this stack overflows