Abstract
Quantum computing holds the promise of solving problems intractable for classical computers, but practical large-scale quantum computation requires error correction to protect against errors. Fault-tolerant quantum computing (FTQC) enables reliable execution of quantum algorithms, yet they often demand substantial physical qubit overhead. Resource-efficient FTQC architectures minimize the number of physical qubits required, saving more than half compared to other architectures, but impose constraints that introduce up to 4.7$\times$ higher runtime overhead. In this paper, we present TQC, a Tableau-based Quantum Compiler framework that minimizes FTQC runtime overhead without requiring additional physical qubits. By leveraging operation reorderability and latency hiding through parallel execution, TQC reduces FTQC runtime overhead by 2.57$\times$ on average. Furthermore, FTQC circuits often contain millions of gates, leading to substantial compilation overhead. To address this, we optimize the core data structure, the tableau, used in stabilizer formalism. We provide two tailored versions of the Tableau data type, each designed for different usage scenarios. These optimizations yield an overall performance improvement of more than 1000$\times$ compared to state-of-the-art FTQC optimization tools.
The Challenge of Fault-Tolerant Overhead
Building a large-scale quantum computer involves significant trade-offs. To mitigate noise, Fault-Tolerant Quantum Computing (FTQC) is employed, which typically requires a massive number of physical qubits. To make hardware requirements more manageable, "resource-efficient" architectures have been developed. These architectures save physical qubits by restricting access to only one logical basis (either $X$ or $Z$) at a time.
However, this "single-edge access" introduces a significant bottleneck: if an operation requires the $Y$ basis or the non-exposed basis, the system must perform a "basis alignment" rotation. These rotations are time-consuming and can increase the total runtime by up to 4.7$\times$.
Furthermore, traditional compilers rely on Directed Acyclic Graphs (DAGs) to represent circuits. While intuitive, DAGs suffer from irregular memory access and poor scalability. Optimizing circuits with millions of gates—common in practical quantum algorithms—can take hours using DAG-based approaches.
The TQC Framework
The authors introduce TQC (Tableau-based Quantum Compiler), which shifts the compilation paradigm from DAGs to the stabilizer formalism using Tableaus. A Tableau is a compact binary matrix representing quantum states and operations. The TQC workflow transforms an input circuit into an optimized, layered structure ready for execution.
The framework introduces three core optimizations:
- Specialized Tableau Structures:
- VTab (Vertical Tableau): Bits are packed column-wise to optimize "Circuit Transformation," where the compiler queries bits for individual qubits across many operations.
- HTab (Horizontal Tableau): Bits are packed row-wise to optimize "Commutation Checks," allowing for fast bitwise XOR operations to compare entire Pauli strings.
- Earliest-Fit Layering: TQC uses an algorithm that pushes operations to the earliest possible "commuting layer," maximizing parallel execution opportunities rather than relying on a simple greedy approach.
- Basis-Aware Reordering & Latency Hiding: TQC reorders operations within layers to minimize basis rotations. It schedules necessary rotations to occur in the background while other qubits perform operations, effectively hiding latency.
Key Results and Scalability
TQC demonstrates significant improvements in both quantum execution efficiency and classical compilation speed:
- Quantum Runtime Reduction: TQC reduced execution time (measured in QEC rounds) by an average of 2.57$\times$. Some benchmarks, such as
qft_n18, saw improvements as high as 12.23$\times$. - Compilation Speed: By tailoring memory layouts (VTab and HTab) to specific access patterns, TQC eliminates costly bit-unpacking overhead. For the
hwb10benchmark, it achieved a 2891$\times$ speedup over state-of-the-art tools like PHAGE and TOHPE. - Scalability: TQC successfully processed a 500-qubit circuit with 4.8 million gates in just 17.7 seconds using 8 processes via MPI (Message Passing Interface). Traditional tools often time out on circuits of this scale.
Conclusion
TQC addresses the critical bottlenecks of runtime overhead and compilation time in resource-efficient FTQC. By leveraging optimized Tableau data structures and parallel execution strategies, it enables the efficient optimization of large-scale quantum circuits. Future work may involve deeper integration with physical-level decoders and exploring applications for other error-correcting codes like QLDPC.
Summary updated