Medusa: Detecting and Removing Failures for Scalable Quantum Computing
Karoliina Oksanen, Quan Hoang, Alexandru Paler
TL;DR
Medusa addresses scalable quantum error correction by automating flag-based fault tolerance during circuit compilation. It introduces a failure-rate framework based on stabilizer comparisons between noisy and noiseless ICM circuits and a scalable heuristic to insert unique weight flags, plus a method to upper-bound FR with perfect flags and to tune flag reliability via an error multiplier $m$ using binary search. The approach is evaluated on adder-like circuits, showing that a small number of well-placed, partially protected flags can make large circuits perform like smaller ones, and that flag placement and fault-tolerance tuning influence resource requirements. By mapping the required flag reliability to surface-code distances and qubit counts, Medusa provides practical hardware estimates and highlights a cost-effective alternative to fully fault-tolerant syndrome extraction. The work lays groundwork for adapting to zoned architectures and extending to multi-flag gadgets.
Abstract
Quantum circuits will experience failures that lead to computational errors. We introduce Medusa, an automated compilation method for lowering a circuit's failure rate. Medusa uses flags to predict the absence of high-weight errors. Our method can numerically upper bound the failure rate of a circuit in the presence of flags, and fine tune the fault-tolerance of the flags in order to reach this bound. We assume the flags can have an increased fault-tolerance as a result of applying surface QECs to the gates interacting with them. We use circuit level depolarizing noise to evaluate the effectiveness of these flags in revealing the absence of the high-weight stabilizers. Medusa reduces the cost of quantum-error-correction (QEC) because the underlying circuit has a lower failure rate. We benchmark our approach using structured quantum circuits representative of ripple-carry adders. In particular, our flag scheme demonstrates that for adder-like circuits, the failure rate of large-scale implementations can be lowered to fit the failure rates of smaller-scale circuits. We show numerically that a slight improvement in the local fault-tolerance of the flag-qubits can lead to a reduction in the overall failure rate of the entire quantum circuit.
