← Latest papers
⚛️ quantum physics

Quantum codes from classical annealing

This paper introduces an adaptive simulated annealing algorithm that successfully discovers state-of-the-art CSS and "self-dual with equivalent logicals" (SWEL) quantum error-correcting codes with high encoding rates and large distances, offering promising candidates for both fault-tolerant architectures and near-term hardware demonstrations.

Original authors: Michael A. Perlin, Matthew Steinberg, Ben Criger

Published 2026-07-23
📖 6 min read🧠 Deep dive

Original authors: Michael A. Perlin, Matthew Steinberg, Ben Criger

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

Imagine you are trying to build a library that can survive a hurricane. In the world of quantum computing, this "library" is a collection of fragile bits of information called qubits. Unlike the sturdy books on your shelf, qubits are like soap bubbles; the slightest touch from heat, noise, or a stray electromagnetic wave can pop them, destroying the data inside. To stop this, scientists use a trick called Quantum Error Correction. Instead of writing a story on one fragile bubble, they spread the story across many bubbles in a special pattern. If one bubble pops, the pattern allows you to reconstruct the story from the remaining ones.

However, there is a catch: the more bubbles you use to protect the story, the fewer stories you can tell at once. This is the trade-off between reliability (how well the code protects against errors) and efficiency (how much useful information you can store). Scientists have been hunting for "magic codes"—patterns that offer the best of both worlds: high protection without wasting too many bubbles. This paper dives into that hunt, using a clever computer search to find new, highly efficient patterns that could help build the quantum computers of the future.


The Great Code Hunt: Finding the Perfect Shield

Think of designing a quantum error-correcting code like trying to find the perfect lock for a treasure chest. You want a lock that is incredibly hard to pick (high distance, meaning it can withstand many errors) but also light enough to carry around (high encoding rate, meaning it doesn't waste too much space). For a long time, scientists have known that such locks should exist, based on mathematical theories, but actually finding the specific blueprints for them has been like looking for a needle in a haystack the size of a galaxy.

The authors of this paper, researchers from JPMorgan Chase and Quantinuum, decided to stop looking for the needle by hand and instead built a robotic search engine to do the work for them. They used a technique called simulated annealing. To understand this, imagine you are trying to find the lowest point in a vast, foggy mountain range. If you just walk downhill, you might get stuck in a small valley and think you've reached the bottom. But if you occasionally jump uphill (simulating heat), you can escape those small valleys and keep searching until you find the deepest, most perfect valley. In this case, the "valleys" are good quantum codes, and the "height" is how many errors the code can handle.

The team focused on two specific types of codes, which they call CSS codes and SWEL codes.

  • CSS codes are like a double-layered shield. They use one pattern to catch "X-type" errors (flips) and another to catch "Z-type" errors (phase shifts). They are popular because they are relatively easy to work with.
  • SWEL codes (Self-Dual with Equivalent Logicals) are a special, fancy version of CSS codes. They are "self-dual," meaning the X and Z layers are mirror images of each other. This symmetry is a superpower: it allows certain quantum operations (gates) to be performed simply by applying the same action to every physical qubit at once. This makes them much easier to use in real, fault-tolerant quantum computers.

The researchers set their search engine loose on codes with up to 50 physical qubits (the bubbles) and at least 4 logical qubits (the actual stories being told). They didn't just look for any code; they looked for ones that beat the theoretical "Gilbert-Varshamov bound." Think of this bound as a speed limit sign on the highway of quantum coding. It tells you the fastest speed (best distance) you should be able to go for a given number of qubits. The authors' search found codes that frequently met or even exceeded this speed limit, meaning they found shields that are better than the standard mathematical predictions suggested were possible for these sizes.

One of the smartest parts of their method was how they measured "goodness." Usually, you just count how many errors a code can fix. But the researchers realized that two codes might fix the same number of errors, yet one might be much more likely to fail in a real-world scenario because it has more "weak spots." To fix this, they created a custom "energy function" that acted like a super-sensitive detector. It didn't just count errors; it counted the number of ways a code could fail at its weakest point. This helped their search engine avoid getting stuck on "flat plateaus" where many codes looked the same, guiding it instead toward the truly superior designs.

After running their simulations, the team produced a list of the best codes they found, which are detailed in the paper's appendices. These aren't just theoretical musings; they are concrete blueprints. For example, they found a code using 20 physical qubits to store 6 logical qubits with a distance of 4, and another using 50 physical qubits to store 6 logical qubits with a distance of 8. Many of these codes have fewer "minimum-weight logical operators" (weak spots) than previous records, making them more robust.

The paper also highlights that these codes are particularly promising for "near-term" quantum hardware. While massive, perfect quantum computers are still years away, today's machines are small and noisy. These new codes offer a way to squeeze more useful work out of these small, imperfect machines. Furthermore, because the SWEL codes allow for special "transversal" gates (operations that don't need complex wiring), they could be the key to building fault-tolerant gate sets, which are essential for running complex algorithms without the computer crashing.

In short, this paper doesn't claim to have solved the entire mystery of quantum error correction. Instead, it provides a powerful new map and a set of high-quality tools. By using an adaptive search algorithm, the authors have discovered a collection of "seed codes" that are ready to be used in future quantum architectures. They show that even with the limitations of current hardware, we can find highly efficient, robust ways to protect quantum information, bringing us one step closer to the day when quantum computers can tackle problems that are impossible for today's supercomputers.

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 →