SPARO: Surface-code Pauli-based Architectural Resource Optimization for Fault-tolerant Quantum Computing

Shuwen Kan, Zefan Du, Chenxu Liu, Meng Wang, Yufei Ding, Ang Li, Ying Mao, Samuel SteinarXiv 2025 · DOI

Abstract

Surface codes represent a leading approach for quantum error correction (QEC), offering a path towards universal fault-tolerant quantum computing (FTQC). However, efficiently implementing algorithms, particularly using Pauli-based computation (PBC) with lattice surgery, necessitates careful resource optimization. Prior work often employs static layouts and simplified error models. These typically fail to capture the full costs and dynamic nature of active computation, leading to resource bottlenecks and suboptimal architectural designs. To address this, we introduce SPARO. SPARO features a comprehensive logical error model based on a large corpus of numerical simulations encompassing active Pauli-based computation (PBC) operations—including Pauli product measurements (PPMs), idling qubits, and patch rotations. Our numerical models are integrated within an end-to-end compilation pipeline. SPARO analyzes algorithm-specific bottlenecks arising from constraints such as limited routing areas or magic-state factory throughput. SPARO then dynamically allocates available hardware resources, balancing compute, routing, and magic-state distillation, to minimize space-time overhead and logical error rates for specific workloads. Our simulations demonstrate that SPARO effectively identifies critical resource trade-offs. When evaluated on benchmark circuits, SPARO identifies resource configurations achieving up to 51.11% logical error rate reductions for 433-qubit ADDER circuits when compared to state-of-the-art static layouts using an identical total resource budget. This dynamic approach enables effective co-optimization of PBC execution and surface-code architectures, significantly improving overall resource efficiency.

Introduction

To achieve practical fault-tolerant quantum computing (FTQC), physical qubits must be protected by quantum error correction (QEC), with the surface code serving as the primary candidate. Computations on surface codes are typically executed via Pauli-based computation (PBC) and lattice surgery. While PBC simplifies Clifford operations, it introduces complexity through multi-qubit Pauli Product Measurements (PPMs) and non-Clifford T-gates, which require resource-intensive magic-state factories.

Traditional quantum architectural design relies on static, fixed layouts that allocate a predetermined ratio of space for computation, routing, and magic-state distillation. However, quantum algorithms exhibit diverse resource requirements. A T-gate-heavy algorithm may be bottlenecked by factory throughput, leaving compute qubits idle and prone to error accumulation. Conversely, highly entangled algorithms require extensive routing; insufficient routing space forces longer ancilla paths or additional patch rotations, both of which significantly increase logical error rates. SPARO addresses these challenges by dynamically allocating surface code resources tailored to specific algorithmic needs.

Methodology: The SPARO Framework

SPARO (Surface-code Pauli-based Architectural Resource Optimization) provides an end-to-end compilation and resource allocation pipeline designed to minimize logical errors through algorithm-aware hardware configuration.

SPARO System Overview and Detailed Process Flow

The framework operates through several key stages:

  1. Comprehensive Error Modeling: Unlike passive memory benchmarks, SPARO utilizes high-speed stabilizer simulations (STIM) to model errors during active computation. This includes explicit logical error contributions from PPMs, Y-basis measurements, qubit idling, and patch rotations.
  2. Algorithm-Aware Compilation: The compiler schedules lattice-surgery operations by solving for the shortest ancilla routing paths using a classical Steiner-tree approach. Simulated annealing is employed to map logical qubits to physical tiles, minimizing overall communication distance.
  3. Dynamic Resource Allocation: Starting from a minimal layout, SPARO analyzes the execution schedule to identify dominant bottlenecks—such as time spent waiting for magic states versus routing congestion. It iteratively allocates hardware resources (e.g., additional T-factories or routing tracks) based on the marginal gain in total logical error reduction.

Key Insights: The Impact of Movement and Bottlenecks

A critical finding of this work is that ancilla paths during multi-qubit PPMs are a dominant driver of logical errors. As the movement length increases, the probability of a logical error per shot rises significantly, making smart routing as vital as minimizing idle time.

Logical Error Rate vs. Movement Length for Pauli Product Measurements

Furthermore, resource optimization is a balancing act. Addressing a single bottleneck, such as magic-state generation, often reveals a secondary bottleneck in routing or patch rotation. SPARO’s co-optimization approach ensures that hardware is not wasted on resources that do not contribute to the overall reduction of the error rate for a specific workload.

Results and Performance

SPARO was evaluated against standard quantum benchmarks, including Adders, Swap Tests, and Quantum Fourier Transforms (QFT). For a 433-qubit ADDER circuit, SPARO achieved a 51.11% reduction in logical error rates compared to state-of-the-art static layouts (such as Litinski’s Intermediate block) within the same physical qubit budget. For the 115-qubit Swap Test, an optimal 50% increase in hardware allocation resulted in a 73% reduction in error rates.

Crucially, the SPARO compiler is highly efficient. It can optimize resource allocation for massive circuits—representing over 10 million physical qubits—in approximately 10 seconds on standard consumer hardware, demonstrating its scalability for future large-scale FTQC systems.

Conclusion

SPARO demonstrates that dynamic, algorithm-specific resource allocation is essential for maximizing the efficiency of surface-code architectures. By modeling the costs of active computation and balancing compute, routing, and distillation, SPARO significantly lowers the threshold for practical fault tolerance. Future work will explore extending this co-design philosophy to other error-correcting codes, such as quantum low-density parity-check (qLDPC) codes.

Summary updated

BibTeX
@misc{kan2025sparo,
  author = {Shuwen Kan and Zefan Du and Chenxu Liu and Meng Wang and Yufei Ding and Ang Li and Ying Mao and Samuel Stein},
  title = {{SPARO: Surface-code Pauli-based Architectural Resource Optimization for Fault-tolerant Quantum Computing}},
  year = {2025},
  eprint = {2504.21854},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.21854},
  howpublished = {arXiv},
}
Figure