MITS: A Quantum Sorcerer Stone For Designing Surface Codes
Avimita Chatterjee, Debarshi Kundu, Swaroop Ghosh
TL;DR
This paper tackles the challenge of selecting optimal surface-code parameters under hardware-specific noise by introducing MITS, an inverse-modeling framework that uses STIM-generated data to predict the minimal code distance $d$ and rounds $r$ needed to achieve a target logical error rate $TLER$. It builds a large STIM-based dataset (about $8.64k$ experiments) across four error channels and employs a two-stage predictive model where $d$ is predicted with XGBoost and $r$ with Random Forest, applying rounding rules to ensure practical, robust parameter choices. The results show near-perfect Pearson correlations ($\approx$0.986 for $d$ and $\approx$0.967 for $r$ in raw form; $\approx$0.968 and $\approx$0.964 after rounding) and demonstrate that MITS can reduce simulation time from hours to approximately $11\pm3$ milliseconds per prediction, while reliably achieving the target $TLER$. The approach offers a practical, hardware-aware pathway to optimize surface-code implementations, enabling faster calibration and more efficient quantum error correction in real devices, with code available on public repositories.
Abstract
In the evolving landscape of quantum computing, determining the most efficient parameters for Quantum Error Correction (QEC) is paramount. Various quantum computers possess varied types and amounts of physical noise. Traditionally, simulators operate in a forward paradigm, taking parameters such as distance, rounds, and physical error to output a logical error rate. However, usage of maximum distance and rounds of the surface code might waste resources. An approach that relies on trial and error to fine-tune QEC code parameters using simulation tools like STIM can be exceedingly time-consuming. Additionally, daily fluctuations in quantum error rates can alter the ideal QEC settings needed. As a result, there is a crucial need for an automated solution that can rapidly determine the appropriate QEC parameters tailored to the current conditions. To bridge this gap, we present MITS, a tool designed to reverse-engineer the well-known simulator STIM for designing QEC codes. MITS accepts the specific noise model of a quantum computer and a target logical error rate as input and outputs the optimal surface code rounds and code distances. This guarantees minimal qubit and gate usage, harmonizing the desired logical error rate with the existing hardware limitations on qubit numbers and gate fidelity. We explored and compared multiple heuristics and machine learning models for training/designing MITS and concluded that XGBoost and Random Forest regression were most effective, with Pearson correlation coefficients of 0.98 and 0.96 respectively.
