Skip to main navigation Skip to search Skip to main content

Dynamic transitive closure-based static analysis through the lens of quantum search

  • Jiawei Ren
  • , Yulei Sui
  • , Xiao Cheng
  • , Yuan Feng
  • , Jianjun Zhao

Research output: Contribution to journal › Article › peer-review

Abstract

Many existing static analysis algorithms suffer from cubic bottlenecks because of the need to compute a dynamic transitive closure (DTC). For the first time, this article studies the quantum speedups on searching subtasks in DTC-based static analysis algorithms using quantum search (e.g., Grover's algorithm). We first introduce our oracle implementation in Grover's algorithm for DTC-based static analysis and illustrate our quantum search subroutine. Then, we take two typical DTC-based analysis algorithms: context-free-language reachability and set constraint-based analysis, and show that our quantum approach can reduce the time complexity of these two algorithms to truly subcubic (O(N2√Npolylog(N)))), yielding better results than the upper bound (O(N3/log N)) of existing classical algorithms. Finally, we conducted a classical simulation of Grover's search to validate our theoretical approach, due to the current quantum hardware limitation of lacking a practical, large-scale, noise-free quantum machine. We evaluated the correctness and efficiency of our approach using IBM Qiskit on nine open-source projects and randomly generated edge-labeled graphs/constraints. The results demonstrate the effectiveness of our approach and shed light on the promising direction of applying quantum algorithms to address the general challenges in static analysis.

Original languageEnglish
Article number119
Pages (from-to)1-29
Number of pages29
JournalACM Transactions on Software Engineering and Methodology
Volume33
Issue number5
DOIs
Publication statusPublished - Jun 2024
Externally publishedYes

Keywords

  • CFL-reachability
  • set constraint-based analysis
  • grover's search

Fingerprint

Dive into the research topics of 'Dynamic transitive closure-based static analysis through the lens of quantum search'. Together they form a unique fingerprint.

Cite this