Skip to content

Commit

Permalink
index error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
J-C-Q committed Jan 20, 2025
1 parent c970b6a commit 44ad1bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/randoms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ function random_destabilizer(rng::AbstractRNG, n::Int, memory::RandDestabMemory;
perm = memory.perm
_quantum_mallows!(rng, hadamard, perm, memory.arr)
had_idxs = memory.had_idxs
j = 0
j = 1
for i in eachindex(hadamard)
@inbounds if hadamard[i]
@inbounds had_idxs[j] = i
Expand Down

0 comments on commit 44ad1bc

Please sign in to comment.