Abstract: Quantum computing is regarded as a promising paradigm that may overcome the current computational power bottlenecks in the post-Moore era. The increasing maturity of quantum processors, especially superconducting ones, provides more possibilities for the development and implementation of quantum algorithms. As the crucial stages for quantum algorithm implementation, the logic circuit design and quantum compiling have also received significant attention, which covers key technologies such as quantum logic circuit synthesis (also widely known as quantum architecture search) and optimization, as well as qubit mapping and routing. Recent studies suggest that the scale and precision of related algorithms are steadily increasing, especially with the integration of artificial intelligence methods. In this survey, we systematically review and summarize a vast body of literature, exploring the feasibility of an integrated design and optimization scheme that spans from the algorithmic level to quantum hardware, combining the steps of logic circuit design and compilation optimization. Leveraging the exceptional cognitive and learning capabilities of AI algorithms, one can reduce manual design costs, enhance the precision and efficiency of execution, and facilitate the implementation and validation of the superiority of quantum algorithms on hardware.
The Quantum Compilation Stack
Turning an abstract quantum algorithm into a sequence of pulses that a physical quantum processor can execute is a multi-stage process known as the quantum compilation stack. This transition involves bridging the gap between high-level mathematical operations and the messy reality of physical hardware.
What Problem Does This Paper Address?
Quantum algorithms are typically written as abstract mathematical operations, often represented as unitary matrices. However, real-world quantum hardware faces significant constraints: limited "coherence time" (where qubits lose their state quickly), high error rates, and restricted connectivity between physical qubits.
The gap between "math" and "machine" is currently bridged by a fragmented pipeline:
- Synthesis: Converting a unitary matrix into a circuit of basic, hardware-compatible gates.
- Optimization: Reducing the circuit's gate count and depth to minimize errors and execution time.
- Compilation: Mapping logical qubits to physical ones and routing signals around hardware bottlenecks using techniques like SWAP gate insertion.
Traditionally, these steps are handled independently using hand-crafted heuristics. This paper argues for a more integrated, automated approach—specifically leveraging Machine Learning (ML) to discover optimization patterns that human engineers might overlook.
Methods and Representations
The authors categorize the state-of-the-art across several dimensions, emphasizing that the choice of mathematical abstraction is critical for effective optimization.
- Circuit Representations: Beyond the standard "gate model," researchers use Directed Acyclic Graphs (DAGs) for dependency analysis, Phase Polynomials for T-gate optimization, and ZX-Diagrams, a powerful graphical calculus that allows for radical circuit simplifications.
- Quantum Architecture Search (QAS): There is a notable shift from Genetic Algorithms toward Reinforcement Learning (RL) and Differentiable Search. RL agents can be trained to "play" the circuit design process like a game, receiving rewards for reducing gate counts or improving fidelity.
- AI-Driven Mapping: Graph Neural Networks (GNNs) and A* search are increasingly used to solve the "Qubit Routing" problem—deciding where to place SWAP gates to satisfy hardware topology with minimal overhead.
Key Insights and Results
The survey highlights several transformative ideas in the field:
- Integrated Synthesis and Compilation: The most significant insight is that synthesis and compilation should not be separate. A compiler that understands the specific noise profile of a chip at the moment of execution can synthesize a more robust circuit than a generic one.
- AI as a Discovery Tool: RL-based optimizers have spontaneously discovered novel gate-cancellation patterns previously unknown to researchers, particularly for complex multi-qubit gates.
- Efficiency Gains: RL-based synthesis frameworks (like Quarl) have generated circuits for ground-state energy estimation that are significantly shallower than those designed by human experts.
- T-Count Reduction: Using ZX-calculus and phase polynomial optimization, researchers have successfully reduced the T-gate count of large-scale circuits (up to 72 qubits) by orders of magnitude. This is crucial for the future Fault-Tolerant (FTQC) era, where T-gates represent a massive computational bottleneck.
Limitations and Future Work
Despite these advances, challenges remain. Most AI-driven synthesis methods struggle with circuits beyond 20-30 qubits due to the exponential growth of the state space. Furthermore, the classical computational "cost" of running deep RL models can sometimes exceed the benefits of the resulting optimization.
The authors propose a move toward "End-to-End AI4Science"—a unified compiler that takes a high-level physics problem and outputs pulse-level instructions directly, bypassing the intermediate "gate" layer entirely to minimize noise and maximize hardware performance.
Summary updated