Skip to content

Commit

Permalink
Better restoring the clifford state without the swap, because I need …
Browse files Browse the repository at this point in the history
…to restore it multiple times
  • Loading branch information
aromanro committed Nov 13, 2024
1 parent 41716ac commit bba2cec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions QCSim/Clifford.h
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ namespace QC {

void RestoreSavedState()
{
destabilizerGenerators.swap(savedDestabilizerGenerators);
stabilizerGenerators.swap(savedStabilizerGenerators);
destabilizerGenerators = savedDestabilizerGenerators;
stabilizerGenerators = savedStabilizerGenerators;
}

void ClearSavedState()
Expand Down

0 comments on commit bba2cec

Please sign in to comment.