Skip to content

Commit

Permalink
address question 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Fe-r-oz committed Dec 21, 2024
1 parent 7bd1681 commit 52e5e54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nonclifford.jl
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,9 @@ function projectrand!(sm::GeneralizedStabilizer, p::PauliOperator)
end
end
sm.destabweights = newdict # in-place
return sm, nothing # In the same basis, so no need to update (S, D) (Eq. 17)
state, res = projectrand!(stab, p)
sm.stab = state # in-place
return sm, res # the stabilizer basis (S, D) is not updated (Eq. 17)
else
# (Eq. 18-26)
k = _create_k(b)
Expand Down

0 comments on commit 52e5e54

Please sign in to comment.