SQUWALS: A Szegedy QUantum WALks Simulator
Sergio A. Ortega, Miguel A. Martin-Delgado
TL;DR
The paper presents SQUWALS, a memory-efficient classical simulator for Szegedy's quantum walk that scales as $\mathcal{O}(N^2)$ in both time and memory, enabling accurate simulation on arbitrary graphs with dense transition matrices. It introduces a matrix-state representation and building-block operators (reflections, swaps, and oracles) to implement Szegedy-like unitaries efficiently, including extensions with complex phases and semiclassical/mixed-state dynamics. The authors provide a detailed methodology for simulating semiclassical Szegedy walks and mixed states, and they demonstrate the library's capabilities with high-level applications such as quantum PageRank. The work offers practical impact by enabling error-free classical testing of Szegedy-based algorithms and facilitating scalable exploration of quantum-walk-inspired optimization and learning tasks, with future plans for GPU acceleration and expanded algorithms.
Abstract
Szegedy's quantum walk is an algorithm for quantizing a general Markov chain. It has plenty of applications such as many variants of optimizations. In order to check its properties in an error-free environment, it is important to have a classical simulator. However, the current simulation algorithms require a great deal of memory due to the particular formulation of this quantum walk. In this paper we propose a memory-saving algorithm that scales as $\mathcal{O}(N^2)$ with the size $N$ of the graph. We provide additional procedures for simulating Szegedy's quantum walk over mixed states and also the Semiclassical Szegedy walk. With these techniques we have built a classical simulator in Python called SQUWALS. We show that our simulator scales as $\mathcal{O}(N^2)$ in both time and memory resources. This package provides some high-level applications for algorithms based on Szegedy's quantum walk, as for example the quantum PageRank.
