← Latest papers
⚛️ quantum physics

Distance Prediction for Quantum Codes

This paper introduces BB-Net, an attention-based neural network that significantly outperforms state-of-the-art heuristics in predicting the distance of Bivariate Bicycle quantum codes with high accuracy and minimal computational cost, thereby accelerating the discovery of optimal quantum error-correcting codes.

Original authors: Nadav Schneider, Eliya Nachmani

Published 2026-10-14
📖 5 min read🧠 Deep dive

Original authors: Nadav Schneider, Eliya Nachmani

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Quantum computers promise to solve problems that would take classical machines thousands of years, from cracking unbreakable codes to simulating complex molecules. Yet, the physical building blocks of these machines, known as qubits, are incredibly fragile. They are so sensitive to heat, vibration, and electromagnetic noise that they lose their information almost instantly, a phenomenon called decoherence. To build a useful machine, scientists must wrap these delicate qubits in layers of protection, a system known as quantum error correction. This system works by spreading a single piece of information across many physical qubits, creating a safety net that can detect and fix mistakes without destroying the data. The strength of this safety net is measured by a single number called the "distance." Think of this distance as the number of independent errors a code can withstand before the information becomes unrecoverable. A higher distance means a more robust code, capable of running longer and more complex calculations.

Finding the best codes is a massive search problem. Scientists have developed families of codes, such as those based on bivariate bicycle structures, which offer a promising balance between efficiency and protection. However, determining the exact distance of a specific code is notoriously difficult. It is a computational puzzle so complex that even the most powerful supercomputers struggle to solve it for large codes. Researchers currently rely on two main approaches: exact solvers that guarantee a correct answer but take days or weeks to run, or faster heuristic searches that provide a best-guess estimate but can sometimes miss the true limit. This bottleneck slows down the discovery of better codes, as researchers cannot quickly screen the millions of potential designs to find the few that are truly exceptional.

In a new study, researchers Nadav Schneider and Eliya Nachmani from Ben-Gurion University of the Negev have introduced a different way forward. Instead of trying to solve the distance puzzle from scratch every time, they trained an artificial intelligence to predict the answer. They built a dataset of nearly 59,000 quantum codes, calculating the distance for each one using expensive, high-budget computer searches. These calculations served as the "answers" for a machine learning model they named BB-Net. The model was designed to look at the mathematical blueprint of a code—specifically the arrangement of its protective rules—and learn the patterns that correlate with high or low distances. By analyzing the structure of the code directly, rather than running a slow simulation, the AI learned to make rapid predictions.

The results show that this approach is remarkably effective. When tested on a set of codes it had never seen before, BB-Net predicted the distance with an accuracy of 96.39 percent. This performance was achieved in a fraction of a second per code. In contrast, the best existing computer methods, which are allowed to run for up to ten thousand times longer, reached an accuracy of only 94.86 percent. On a smaller subset of codes where the exact distance was known with absolute certainty, the AI's accuracy climbed to 98.94 percent. The study demonstrates that the AI can outperform traditional, computationally heavy methods while using a tiny fraction of the time. This speed allows researchers to screen vast numbers of potential codes almost instantly, filtering out the weak ones and saving the expensive, slow calculations for only the most promising candidates.

The researchers did not just rely on raw speed; they also engineered the way the computer "reads" the code to make the task easier for the AI. They developed a method to translate the complex algebraic description of a code into a compact list of tokens, similar to how a sentence is broken down into words. They created two different views of the code: one that looks at the local connections between the rules, and another that looks at the global, repeating patterns of the entire structure. By combining these two perspectives, the model learned a deep understanding of what makes a code strong. They also taught the model to recognize that shifting the starting point of a code does not change its strength, ensuring it focused on the essential properties rather than arbitrary details.

This work represents a significant shift in how scientists approach the design of quantum error-correcting codes. For years, the field has been limited by the time it takes to verify a code's strength. By introducing a tool that can predict this strength with high confidence in milliseconds, the researchers have removed a major barrier to discovery. The study confirms that machine learning can learn the hidden rules of quantum error correction from data, offering a practical alternative to repeated, expensive computations. While the AI provides estimates rather than absolute mathematical proofs for every single case, its ability to quickly identify high-quality codes accelerates the search for the robust, scalable systems needed to build the quantum computers of the future. The code for this new tool is now available to the public, inviting other scientists to use it to explore the vast landscape of quantum possibilities.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →