π€ AI Summary
To address inefficient memory management and poor scalability in large-scale quantum program compilation, this paper proposes a dynamic qubit reuse compilation method grounded in control-flow graph modeling and topologically ordered scheduling. The method innovatively integrates topological sorting with divide-and-conquer subproblem decomposition to automatically identify parallelizable substructures, thereby substantially reducing compilation overhead. It departs from conventional static qubit allocation by enabling flexible, width-depth trade-offβdriven dynamic reuse strategies. Experimental evaluation on large quantum circuits demonstrates significant reductions in compilation time and marked improvements in qubit reuse efficiency. This work establishes a scalable memory optimization foundation for high-level quantum programming languages and practical quantum compilers.
π Abstract
As quantum computing technology advances, the complexity of quantum algorithms increases, necessitating a shift from low-level circuit descriptions to high-level programming paradigms. This paper addresses the challenges of developing a compilation algorithm that optimizes memory management and scales well for bigger, more complex circuits. Our approach models the high-level quantum code as a control flow graph and presents a workflow that searches for a topological sort that maximizes opportunities for qubit reuse. Various heuristics for qubit reuse strategies handle the trade-off between circuit width and depth. We also explore scalability issues in large circuits, suggesting methods to mitigate compilation bottlenecks. By analyzing the structure of the circuit, we are able to identify sub-problems that can be solved separately, without a significant effect on circuit quality, while reducing runtime significantly. This method lays the groundwork for future advancements in quantum programming and compiler optimization by incorporating scalability into quantum memory management.