Skip to content

Commit

Permalink
Debug classical shadows 😩
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Nov 13, 2024
1 parent be06a18 commit bc1d5d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qunit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4059,7 +4059,7 @@ void QUnit::ApplyBuffer(PhaseShardPtr phaseShard, bitLenInt control, bitLenInt t
H(target);

const real1_f pth = Prob(target);
pc = ONE_R1_F - pc;
pc = isAnti ? pc : (ONE_R1_F - pc);
ptHi = pth > pc;
pHi = ptHi ? pth : pc;
pLo = ptHi ? pc : pth;
Expand Down

0 comments on commit bc1d5d8

Please sign in to comment.