Skip to content

Commit

Permalink
Fixed bug with checkpoint pass
Browse files Browse the repository at this point in the history
  • Loading branch information
user committed Oct 15, 2024
1 parent 059cff6 commit 5e4c7fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bqskit/passes/io/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ async def run(self, circuit: Circuit, data: PassData) -> None:
with open(self.checkpoint_filename, 'rb') as f:
checkpoint = pickle.load(f)
circuit.become(checkpoint[0])
data.clear()
data.update(checkpoint[1])
new_data = PassData(circuit)
new_data.update(checkpoint[1])
data.become(new_data)

0 comments on commit 5e4c7fe

Please sign in to comment.