acquire current State by wrapping saved context from ql.save()
(self)
| 257 | self.layers: List[DiffedState] = [] |
| 258 | |
| 259 | def save(self) -> State: |
| 260 | """ |
| 261 | acquire current State by wrapping saved context from ql.save() |
| 262 | """ |
| 263 | |
| 264 | return State(self.ql.save(reg=True, mem=True, loader=True)) |
| 265 | |
| 266 | @staticmethod |
| 267 | def snapshot(func: Callable) -> Callable: |