From 4f27e46cdfe72433925fe6a726b4685726e40144 Mon Sep 17 00:00:00 2001 From: Fe-r-oz Date: Fri, 8 Nov 2024 12:23:26 +0500 Subject: [PATCH] fix typo --- src/nonclifford.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nonclifford.jl b/src/nonclifford.jl index f6b3364c9..cd700a10f 100644 --- a/src/nonclifford.jl +++ b/src/nonclifford.jl @@ -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