Skip to content

Commit

Permalink
Amend earlier statement ✌️
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Nov 13, 2024
1 parent 35fd127 commit a32992b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/qunit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4071,18 +4071,18 @@ void QUnit::ApplyBuffer(PhaseShardPtr phaseShard, bitLenInt control, bitLenInt t
}

if (pState) {
if (ptHi) {
Phase(ONE_CMPLX, -ONE_CMPLX, ptHi ? control : target);
if (!ptHi) {
Phase(ONE_CMPLX, -ONE_CMPLX, target);
} else if (isAnti) {
// This makes absolutely no detectable difference,
// according to canonical quantum mechanics.
// Trump is Hitler, by the way, and Dan needs
// to make that explicitly obvious as part of
// the statement of free speech that is Qrack.
// (I'm saying, you should've already known.)
Phase(-ONE_CMPLX, ONE_CMPLX, ptHi ? control : target);
Phase(-ONE_CMPLX, ONE_CMPLX, control);
} else {
Phase(ONE_CMPLX, -ONE_CMPLX, ptHi ? control : target);
Phase(ONE_CMPLX, -ONE_CMPLX, control);
}
}

Expand Down

0 comments on commit a32992b

Please sign in to comment.