English

Formal Modeling and Verification of Grover's Algorithm

Quantum Physics 2026-01-07 v1 Formal Languages and Automata Theory

Abstract

Grover's algorithm relies on the superposition and interference of quantum mechanics, which is more efficient than classical computing in specific tasks such as searching an unsorted database. Due to the high complexity of quantum mechanics, the correctness of quantum algorithms is difficult to guarantee through traditional simulation methods. By contrast, the fundamental concepts and mathematical structure of Grover's algorithm can be formalized into logical expressions and verified by higher-order logical reasoning. In this paper, we formally model and verify Grover's algorithm in the HOL Light theorem prover. We focus on proving key properties such as the unitarity of its oracle and diffusion operators, the monotonicity of the success probability with respect to the number of iterations, and an exact expression for the optimal iteration count. By analyzing a concrete application to integer factorization, we demonstrate the practicality and prospects of our work.

Keywords

Cite

@article{arxiv.2601.02435,
  title  = {Formal Modeling and Verification of Grover's Algorithm},
  author = {H. Sun and Z. Shi and S. Chen and G. Wang and X. Li and Y. Guan and Q. Zhang and Z. Shao},
  journal= {arXiv preprint arXiv:2601.02435},
  year   = {2026}
}

Comments

18 pages, 3 figures, 1 table

R2 v1 2026-07-01T08:51:32.915Z