Classical program analysis techniques, such as abstract interpretation and symbolic execution, are essential for ensuring software correctness, optimizing performance, and enabling compiler optimizations. However, these techniques face computational limitations when analyzing programs with large or exponential state spaces, limiting their effectiveness in ensuring system reliability. Quantum computing, with its parallelism and ability to process superposed states, offers a promising solution to these challenges. In this work, we present QEX, a design that uses quantum computing to analyze classical programs. By synthesizing quantum circuits that encode program states in superposition and trace data dependency between program variables through entanglement, QEX enables the simultaneous exploration of program behaviors, significantly improving scalability and precision. This advancement has broad applications, from debugging and security verification to optimizing compilers for next-generation hardware. As a proof-of-concept, we evaluated QEX on 22 benchmark programs, demonstrating its effectiveness in analyzing program states. To support more language features and make QEX realized sooner in Fault-Tolerant Quantum Computing (FTQC), we propose QEX-H which hybridizes QEX with classical analysis techniques. To our knowledge, this work is the first proposal to use quantum computing for classical program analysis.
Introducing the Quantum Research Kernels: Lessons from Classical Parallel Computing
量子计算代表了计算的范式转变,需要全新的计算机体系结构。然而,从传统的经典计算机工程中可以学到很多东西。在本文中,我们描述了并行研究内核(Parallel Research Kernels),这是一个非常有用的工具,用于设计经典的并行计算系统。这些内核是简单的内核,用来暴露限制经典并行计算性能的瓶颈。我们假设一个类似的量子计算工具,量子研究内核(QRK),可以类似地帮助量子计算系统的软件和硬件的协同设计,我们给出了一些代表性的QRK的例子。
Programming tools for Analogue Quantum Computing in the High-Performance Computing Context -- A Review
Hartree Centre, Science and Technology Facilities Council (STFC), UK Research and Innovation (UKRI)(哈特中心,科学与技术设施委员会(STFC),英国研究与创新署(UKRI));EPCC, The University of Edinburgh(爱丁堡大学计算物理与化学工程中心)