Guess, SWAP, Repeat : Capturing Quantum Snapshots in Classical Memory
Debarshi Kundu, Avimita Chatterjee, Swaroop Ghosh
TL;DR
The paper addresses the challenge of observing quantum states without destruction and storing them for later reuse. It introduces a fidelity-based quantum snapshot framework that uses SWAP-test feedback to non-destructively reconstruct states, with two estimation paradigms: gradient-based neural generation and gradient-free evolutionary strategies (QESwap). Real-device demonstrations on IBM hardware and extensive simulations show high fidelities for pure states (up to $\sim 1.0$) and practical robustness of the gradient-free method under noise, outlining a viable route toward classical-quantum memory and modular quantum workflows. While effective for pure states and small systems, the approach faces intrinsic limitations for mixed states due to the Hilbert-Schmidt inner product nature of the SWAP test, motivating future work on alternative fidelity estimators. Overall, the framework advances non-destructive quantum observation, circuit introspection, and memory-enabled quantum computing, with substantial implications for QRAM, debugging, and memory-assisted quantum architectures.
Abstract
We introduce a novel technique that enables observation of quantum states without direct measurement, preserving them for reuse. Our method allows multiple quantum states to be observed at different points within a single circuit, one at a time, and saved into classical memory without destruction. These saved states can be accessed on demand by downstream applications, introducing a dynamic and programmable notion of quantum memory that supports modular, non-destructive quantum workflows. We propose a hardware-agnostic, machine learning-driven framework to capture non-destructive estimates, or "snapshots," of quantum states at arbitrary points within a circuit, enabling classical storage and later reconstruction, similar to memory operations in classical computing. This capability is essential for debugging, introspection, and persistent memory in quantum systems, yet remains difficult due to the no-cloning theorem and destructive measurements. Our guess-and-check approach uses fidelity estimation via the SWAP test to guide state reconstruction. We explore both gradient-based deep neural networks and gradient-free evolutionary strategies to estimate quantum states using only fidelity as the learning signal. We demonstrate a key component of our framework on IBM quantum hardware, achieving high-fidelity (approximately 1.0) reconstructions for Hadamard and other known states. In simulation, our models achieve an average fidelity of 0.999 across 100 random quantum states. This provides a pathway toward non-volatile quantum memory, enabling long-term storage and reuse of quantum information, and laying groundwork for future quantum memory architectures.
