Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Fe-r-oz committed Nov 8, 2024
1 parent 306423b commit 4f27e46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nonclifford.jl
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ end
# is derived from (S, D) through the traditional stabilizer update, and χ' represents the
# updated density matrix.
function _proj(sm::GeneralizedStabilizer, p::PauliOperator)
state', res = projectrand!(sm.stab, p)
updatestate, res = projectrand!(sm.stab, p)
# sm'.stab' is derived from sm.stab through the traditional stabilizer update.
sm.stab = state' # in-place
sm.stab = updatestate # in-place
# χ' = expect(p, sm) represents the updated density matrix.
# Note: The density of χ does not increase, as χ′ after measurement is never more sparse than χ before measurement; thus, Λ(χ′) ≤ Λ(χ).
sm.destabweights[([0], [0])] = expect(p, sm) # in-place
Expand Down

0 comments on commit 4f27e46

Please sign in to comment.