Modeling the Classical Side of Fault Tolerance: Compilation and Cycle-Level Simulation for FTQC
Alexander Knapen, Yuewen Hou, Michael J. Keiser, Chad Rigetti, Gokul Subramanian Ravi
Abstract
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.
Create a lesson
Metadata
- Categories
- quant-ph, cs.AR, cs.ET
- Comments
- 14 pages, 14 figures
Related papers
Constructive examples of superadditivity of classical communication via quantum error correcting codes
Shared title terminologyquant-phPeixue Wu
Quantum entropies violate classical entropy inequalities without entanglement
Shared title terminologyquant-phMarco Fanizza
An Out-of-Lamb-Dicke Optimization Scheme for Multi-Level Trapped-Ion Gates
Shared title terminologyquant-phAgustin Valdes Martinez, Kyle DeBry, Alexandra Plocki et al.
Two-photon resonance cascade in a driven particle in a box: Emergent three-level universality
Shared title terminologyquant-phVijay Ganesh Sadhasivam, Stuart C. Althorpe
Quantum computer simulation of critical mean-field systems: Third-order exceptional point and Kibble-Zurek mechanism
Shared title terminologyquant-phRicardo Puebla, Fernando J. Gómez-Ruiz, Erik Torrontegui
Gate-Level Implementation of the Quantum Pathwise Lasso
Shared title terminologyquant-phNausherwan Malik, Muhammad Faryad, Tushar Vaidya