Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Nov 26, 2024
1 parent a9f0ee2 commit cf1c15b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ext/TenetYaoBlocksExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ function Tenet.Quantum(circuit::AbstractBlock)
else
content(gate)
end

# NOTE dim permutation fixes array layout of Yao
perm = collect(Iterators.flatten([m:-1:1, (2m):-1:(m + 1)]))
array = reshape(collect(mat(operator)), fill(nlevel(operator), 2 * nqubits(operator))...)

inds = (x -> collect(Iterators.flatten(zip(x...))))(
Expand Down

0 comments on commit cf1c15b

Please sign in to comment.