by: Kevin Broløs
Once you have a personal
QLattice, you can also create and restore
snapshots of your
QLattice whenever you feel like it.
This is useful if you're running experiments from a specific state you want to restore from, if you accidentally reset it or ended up in a state you're unsatisfied with and want to take a few steps back.sfied with.
This can be done programmatically like so:
from feyn import connect_qlattice ql = connect_qlattice() # Returns a snapshot object containing your note, time of snapshotting and id snapshot = ql.snapshots.capture("A little note") # List all snapshots: for s in ql.snapshots: print(s.id, s.when, s.note) # Restore using the id of the snapshot. The instance of the snapshot from previously also works. ql.snapshots.restore(snapshot.id)
Theoretically this also works with the
Community QLattice, however, since it is temporary, you will not be able to restore after it has been disposed.