Washington | 24°C (clear sky)
When Shallow Quantum Circuits Outpace Large Language Models

New research shows theoretical tasks where constant‑depth quantum circuits beat modern LLMs

IBM researchers prove that, for certain function‑computing and sampling problems, ultra‑shallow quantum circuits can provably do better than today's transformer‑based language models.

One of the big, lingering questions in theoretical computer science is simple in wording but huge in impact: for which problems will a quantum computer actually beat a classical one, and by how much? It’s a puzzle that’s been around for decades, yet we still only have a handful of solid answers.

Proving limits for “classical” models is notoriously hard because, in theory, a sufficiently powerful classical machine can simulate any Turing‑complete system given enough time and memory. So researchers have taken a different tack: line up quantum computers against restricted classical models, see where the quantum side can pull ahead, and then tighten the classical side step by step.

That line of work has a long history with shallow quantum circuits – circuits whose depth stays constant even as we add more qubits. A landmark 2018 Science paper by IBM’s Sergey Bravyi, David Gosset, and Robert König showed that a particular family of constant‑depth quantum circuits could solve a search problem that no comparable constant‑depth classical circuit could touch. Since then, the classical opponent has been beefed up over and over, while the quantum side has stubbornly stayed shallow.

Enter today’s headline act: the sprawling, transformer‑driven world of large language models (LLMs). From chatbots to code assistants, these models dominate a lot of what we call “computational tasks” nowadays. It was natural to ask – can a constant‑depth quantum circuit still beat an LLM that’s been trained on billions of tokens?

We focused on two very different flavors of problems that LLMs routinely handle.

Functional separations – Think of a classic function evaluation: give the model an input, and it should spit out the exact right answer. In practice that’s everything from searching a database to answering a factual question.

Sampling separations – Here the goal isn’t a single right answer but a distribution of possible answers. Image generation with diffusion models, or text generation that respects a probability distribution, are prime examples.

For the functional side we zeroed in on the iterated index problem – a bit of a mind‑bender that’s been used before to showcase transformer limits. Picture a chain of index cards: the first points to a second, the second points to a third, and so on. Starting from the first card, you keep following the arrows until you land somewhere far down the line. Formally, given a list of bits, you repeatedly look up the bit indicated by the current value. Prior work already proved that a decoder‑only transformer (the architecture behind GPT, Claude, Llama, etc.) needs a lot of computational depth to solve this.

What we added was the quantum half of the story: a near‑constant‑depth circuit – essentially a shallow quantum net plus a single classical AND gate – can compute the iterated index with dramatically less depth. Moreover, we showed you can’t squeeze the depth down to truly constant; the bound we hit is essentially optimal.

Switching gears to sampling, we examined diffusion language models (DLMs), the text‑centric cousins of image‑generation diffusion models like DALL·E. DLMs work by taking a clean sentence, corrupting it with random noise, and then learning how to reverse that corruption step‑by‑step. At generation time they start from noise and gradually “denoise” until a coherent sentence emerges.

We borrowed a classic problem from the quantum‑vs‑classical literature called parity‑sampling: given a random string of 0s and 1s, output a bit indicating whether the number of 1s is even or odd. It’s a simple thing to state, but it’s provably hard for shallow diffusion models. On the quantum side, a constant‑depth circuit can decide parity by exploiting entanglement and interference – a trick that dates back to the original Bravyi‑Gosset‑König separation.

Putting the pieces together, our arXiv paper demonstrates one concrete functional problem and one concrete distributional problem where shallow quantum circuits have a theoretical edge over LLMs. The results are not about building a quantum chatbot tomorrow – current quantum hardware is noisy and tiny compared to the massive GPU farms that run GPT‑4. Still, they give a glimpse of a future landscape where quantum devices could be benchmarked against AI models on tasks that are provably hard for one but easy for the other.

We hope these separations will inspire a new class of benchmarks, letting the community test real quantum processors against cutting‑edge language models as the technology matures.

Comments 0
Please login to post a comment. Login
No approved comments yet.

Editorial note: Nishadil may use AI assistance for news drafting and formatting. Readers can report issues from this page, and material corrections are reviewed under our editorial standards.