Free for humans·Paid for agents · x402
Quantum ComputingRank #8 · 2026-W50

Modeling the Classical Side of Fault Tolerance: Compilation and Cycle-Level Simulation for FTQC

arXiv:2612.05937

Fault-tolerant quantum computing (FTQC) requires fine-grained interaction between a classical host CPU and quantum controller to orchestrate real-time execution of complex programs over hundreds of thousands of qubits. In this regime, compilers and resource estimators have proven critical for uncovering optimizations and quantifying program execution costs. However, prior compilers focus on circuit optimization and scheduling, while it is unclear how best to lower circuits into an FTQC-tailored instruction set used by the classical host to drive execution on the quantum controller. Similarly, quantum resource estimation hinges on broad assumptions about logical cycle times without modeling the classical compute needed to meet these cycle times. To address these gaps, we introduce an open-source, end-to-end framework for compiling and simulating FTQC program execution. Our framework takes physical circuits describing fault-tolerant logical primitives and uses an LLVM-based compiler to lower them into executable RISC-V assembly with vector quantum instructions that directly encode the SIMD structure of FTQC primitives. Over several optimization passes, our compiler reduces program size up to 41× relative to a scalar ISA encoding. Our simulator extends gem5's RISC-V CPU model and adds a parameterized quantum controller model to simulate the new quantum instructions and fine-grained host-controller interactions cycle by cycle. We perform extensive design space explorations (DSEs) over >30,000 simulations, reducing our vector architecture's execution time up to 5.47× via iterative fine-tuning. The vector architecture speeds up execution by up to 128× relative to a DSE-optimized scalar baseline. Overall, our framework enables low-cost DSE and compiler-architecture co-design, while our results position vectorization as a powerful enabler of scalable FTQC execution.