Skip to content

Commit

Permalink
Save NCRP effect in QUnit
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Jan 30, 2024
1 parent 7cfa1c6 commit f6a38de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/qunit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1435,6 +1435,8 @@ bool QUnit::ForceM(bitLenInt qubit, bool res, bool doForce, bool doApply)
return result;
}

logFidelity = log(GetUnitaryFidelity());

shard.isProbDirty = false;
shard.isPhaseDirty = false;
shard.amp0 = result ? ZERO_CMPLX : GetNonunitaryPhase();
Expand Down

0 comments on commit f6a38de

Please sign in to comment.