Iterative Matrix Product State Simulation for Scalable Grover's Algorithm
Mei Ian Sam, Tzu-Ling Kuo, Tai-Yue Li
TL;DR
This work tackles the challenge of classically simulating Grover's algorithm at scale on hardware-limited platforms. It introduces an Iterative Grover circuit implemented with a Matrix Product State (MPS) backend, updating the state with a single Grover gate per iteration to avoid deep circuit construction and achieve memory efficiency of O(nχ^2) with χ_max = 64. Empirically, the Iterative MPS method delivers up to about 3–4× speedups over state-vector backends and up to 15× over common MPS at n = 29, while maintaining amplitude fidelity with FP64 precision; low-shot measurements remain reliable for n ≥ 13, reducing measurement costs. These results demonstrate a scalable, accurate framework for large-scale Grover simulations on classical hardware, enabling practical benchmarking and hardware assessment for quantum search implementations.
Abstract
Grover's algorithm is a cornerstone of quantum search algorithm, offering quadratic speedup for unstructured problems. However, limited qubit counts and noise in today's noisy intermediate-scale quantum (NISQ) devices hinder large-scale hardware validation, making efficient classical simulation essential for algorithm development and hardware assessment. We present an iterative Grover simulation framework based on matrix product states (MPS) to efficiently simulate large-scale Grover's algorithm. Within the NVIDIA CUDA-Q environment, we compare iterative and common (non-iterative) Grover's circuits across statevector and MPS backends. On the MPS backend at 29 qubits, the iterative Grover's circuit runs about 15x faster than the common (non-iterative) Grover's circuit, and about 3-4x faster than the statevector backend. In sampling experiments, Grover's circuits demonstrate strong low-shot stability: as the qubit number increases beyond 13, a single-shot measurement still closely mirrors the results from 4,096 shots, indicating reliable estimates with minimal sampling and significant potential to cut measurement costs. Overall, an iterative MPS design delivers speed and scalability for Grover's circuit simulation, enabling practical large-scale implementations.
