The FLuid Allocation of Surface code Qubits (FLASQ) cost model for early fault-tolerant quantum algorithms

William J. Huggins, Tanuj Khattar, Amanda Xu, Matthew P. Harrigan, Christopher Kang, Guang Hao Low, Austin Fowler, Nicholas C. Rubin, Ryan BabbusharXiv 2025 · DOI

Abstract

Holistic resource estimates are essential for guiding the development of fault-tolerant quantum algorithms and the computers they will run on. This is particularly true when we focus on highly-constrained early fault-tolerant devices. Many attempts to optimize algorithms for early fault-tolerance focus on simple metrics, such as the circuit depth or T-count. These metrics fail to capture critical overheads, such as the spacetime cost of Clifford operations and routing, or miss they key optimizations. We propose the FLuid Allocation of Surface code Qubits (FLASQ) cost model, tailored for architectures that use a two-dimensional lattice of qubits to implement the two-dimensional surface code. FLASQ abstracts away the complexity of routing by assuming that ancilla space and time can be fluidly rearranged, allowing for the tractable estimation of spacetime volume while still capturing important details neglected by simpler approaches. At the same time, it enforces constraints imposed by the circuit's measurement depth and the processor's reaction time. We apply FLASQ to analyze the cost of a standard two-dimensional lattice model simulation, finding that modern advances (such as magic state cultivation and the combination of quantum error correction and mitigation) reduce both the time and space required for this task by an order of magnitude compared with previous estimates. We also analyze the Hamming weight phasing approach to synthesizing parallel rotations, revealing that despite its low T-count, the overhead from imposing a 2D layout and from its use of additional ancilla qubits will make it challenging to benefit from in early fault-tolerance. We hope that the FLASQ cost model will help to better align early fault-tolerant algorithmic design with actual hardware realization costs without demanding excessive knowledge of quantum error correction from quantum algorithmists.

TL;DR

The FLASQ (FLuid Allocation of Surface code Qubits) cost model provides a holistic, realistic way to estimate the hardware resources needed for early fault-tolerant quantum algorithms. By accounting for the spacetime costs of routing and Clifford operations—which traditional metrics like "T-count" ignore—FLASQ reveals that classically challenging quantum simulations may require an order of magnitude fewer resources than previously thought, while exposing the hidden overheads of algorithms optimized solely for gate counts.

What Problem Does This Paper Address?

As quantum computing transitions from noisy, intermediate-scale (NISQ) devices to early fault-tolerant (EFT) systems, researchers need accurate ways to estimate how long an algorithm will take and how many physical qubits it will require. Historically, the field has relied on simple metrics like circuit depth or "T-count" (the number of expensive, non-Clifford gates).

However, EFT computers will be highly resource-constrained and likely rely on a 2D grid of qubits with only nearest-neighbor connectivity. On these architectures, moving data around (routing) and performing standard "Clifford" operations take up massive amounts of physical space and time. Cost models that ignore these architectural constraints lead to skewed conclusions, making certain algorithms look highly efficient on paper when they would actually cause massive routing traffic jams and require far too many helper (ancilla) qubits to run in practice.

Methods

The authors introduce FLASQ, a cost model tailored for 2D surface code architectures. Instead of trying to solve the incredibly complex, NP-hard problem of explicitly routing every qubit for a given circuit, FLASQ uses a clever abstraction: it treats ancilla space as a "fluid" resource.

Motivated by recent advances like "walking surface codes" (which allow logical qubits to drift across the physical lattice), FLASQ assumes that extra spacetime volume can be flexibly rearranged to where it is needed. The model works by:

  1. Assigning a "fluid ancilla volume" (a spacetime cost) to every operation in a circuit, including routing penalties based on the Manhattan distance between interacting qubits.
  2. Calculating the maximum number of qubits active at any one time to determine how much "empty" space is available to act as this fluid ancilla.
  3. Enforcing a hard "measurement depth" constraint, ensuring the model respects the physical latency (reaction time) required for classical control systems to process measurements and apply feedback.
Table of FLASQ cost assignments for basic quantum gates.

FLASQ also incorporates modern quantum compilation advances, specifically magic state cultivation (a newer, cheaper alternative to magic state distillation for creating T-gates) and hybrid error mitigation.

Datasets

While not using traditional machine learning datasets, the authors evaluate FLASQ on several benchmark quantum circuits:

  • 2D Transverse-Field Ising Model (TFIM) simulations: Circuits for 10x10 and 11x11 grids using 2nd- and 4th-order Trotter steps.
  • Hamming Weight Phasing (HWP): Circuits designed to perform parallel rotations.
  • Finite Field Multiplication: Hand-compiled arithmetic circuits used to validate FLASQ's accuracy.

Key Insights and Ideas

  • The Death of the T-Count Monopoly: Because magic state cultivation makes T-gates significantly cheaper to implement, the bottleneck for EFT algorithms shifts. Routing and Clifford operations are now the dominant costs. Optimizing solely for T-count is no longer a viable strategy for algorithm design.
  • Hybrid QEC + QEM is a Game Changer: By combining Quantum Error Correction (using a lower code distance) with Quantum Error Mitigation (like Probabilistic Error Cancellation to handle residual errors), the barrier to entry for useful quantum advantage drops dramatically.
  • Beware "Cheap" Parallelism: Techniques like Hamming Weight Phasing drastically reduce T-count by computing rotations in parallel. However, FLASQ reveals that the massive number of algorithmic ancilla qubits and complex routing required to pull this off in a 2D layout almost entirely negates the benefits.

Key Results

  • Massive Resource Reductions: For a classically challenging simulation of an 11x11 Ising model, FLASQ predicts the task can be completed using as few as ~62,000 physical qubits at a physical error rate of $10^{-3}$.
  • Order-of-Magnitude Improvement: When comparing FLASQ's estimates to a benchmark 2022 study (Beverland et al.) for a 10x10 Ising model, FLASQ predicts an order of magnitude reduction in both the time and space required, largely due to the inclusion of magic state cultivation and error mitigation.
Visualization of spacetime volume allocation comparing different resource requirements.
  • High Validation Accuracy: The authors hand-compiled the Ising model circuits to explicit 2D lattice surgery instructions. FLASQ's automated estimates matched the painstaking hand-compiled depths to within ~25%, proving it is a highly reliable proxy for true implementation costs.

Limitations and Future Work

The authors are transparent that FLASQ is a heuristic tool, not a rigorous upper or lower bound. Its core assumption—that ancilla space is perfectly "fluid"—might break down and underestimate costs if an algorithm causes severe routing congestion or if the available space is highly fragmented. Additionally, FLASQ evaluates spacetime volume and measurement depth constraints independently, which might miss bottlenecks where both constraints interact.

Future work will focus on improving the heuristics used to estimate simultaneous qubit usage, integrating FLASQ into automated compilation frameworks (like Google's Qualtran), and adapting the model to account for architectures with long-range connectivity or different error-correcting codes (like LDPC codes).

Summary updated

BibTeX
@misc{huggins2025fluid,
  author = {William J. Huggins and Tanuj Khattar and Amanda Xu and Matthew P. Harrigan and Christopher Kang and Guang Hao Low and Austin Fowler and Nicholas C. Rubin and Ryan Babbush},
  title = {{The FLuid Allocation of Surface code Qubits (FLASQ) cost model for early fault-tolerant quantum algorithms}},
  year = {2025},
  eprint = {2511.08508},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.08508},
  howpublished = {arXiv},
}
Figure