

“How can quantum structures and quantum computers contribute to the effectiveness of AI?”
In previous work we have made notable advances in answering this question, and this article is based on our most recent work in the new papers [arXiv:2406.17583, arXiv:2408.06061], and most notably the experiment in [arXiv:2409.08777].
This article is one of a series that we will be publishing alongside further advances – advances that are accelerated by access to the most powerful quantum computers available.
Large language Models (LLMs) such as ChatGPT are having an impact on society across many walks of life. However, as users have become more familiar with this new technology, they have also become increasingly aware of deep-seated and systemic problems that come with AI systems built around LLM’s.
The primary problem with LLMs is that nobody knows how they work - as inscrutable “black boxes” they aren’t “interpretable”, meaning we can’t reliably or efficiently control or predict their behavior. This is unacceptable in many situations. In addition, Modern LLMs are incredibly expensive to build and run, costing serious – and potentially unsustainable –amounts of power to train and use. This is why more and more organizations, governments, and regulators are insisting on solutions.
But how can we find these solutions, when we don’t fully understand what we are dealing with now?1
At Quantinuum, we have been working on natural language processing (NLP) using quantum computers for some time now. We are excited to have recently carried out experiments [arXiv: 2409.08777] which demonstrate not only how it is possible to train a model for a quantum computer in a scalable manner, but also how to do this in a way that is interpretable for us. Moreover, we have promising theoretical indications of the usefulness of quantum computers for interpretable NLP [arXiv:2408.06061].
In order to better understand why this could be the case, one needs to understand the ways in which meanings compose together throughout a story or narrative. Our work towards capturing them in a new model of language, which we call DisCoCirc, is reported on extensively in this previous blog post from 2023.
In new work referred to in this article, we embrace “compositional interpretability” as proposed in [arXiv:2406.17583] as a solution to the problems that plague current AI. In brief, compositional interpretability boils down to being able to assign a human friendly meaning, such as natural language, to the components of a model, and then being able to understand how they fit together2.
A problem currently inherent to quantum machine learning is that of being able to train at scale. We avoid this by making use of “compositional generalization”. This means we train small, on classical computers, and then at test time evaluate much larger examples on a quantum computer. There now exist quantum computers which are impossible to simulate classically. To train models for such computers, it seems that compositional generalization currently provides the only credible path.
DisCoCirc is a circuit-based model for natural language that turns arbitrary text into “text circuits” [arXiv:1904.03478, arXiv:2301.10595, arXiv:2311.17892]. When we say that arbitrary text becomes ‘text-circuits’ we are converting the lines of text, which live in one dimension, into text-circuits which live in two-dimensions. These dimensions are the entities of the text versus the events in time.
To see how that works, consider the following story. In the beginning there is Alex and Beau. Alex meets Beau. Later, Chris shows up, and Beau marries Chris. Alex then kicks Beau.
The content of this story can be represented as the following circuit:

Such a text circuit represents how the ‘actors’ in it interact with each other, and how their states evolve by doing so. Initially, we know nothing about Alex and Beau. Once Alex meets Beau, we know something about Alex and Beau’s interaction, then Beau marries Chris, and then Alex kicks Beau, so we know quite a bit more about all three, and in particular, how they relate to each other.
Let’s now take those circuits to be quantum circuits.
In the last section we will elaborate more why this could be a very good choice. For now it’s ok to understand that we simply follow the current paradigm of using vectors for meanings, in exactly the same way that this works in LLMs. Moreover, if we then also want to faithfully represent the compositional structure in language3, we can rely on theorem 5.49 from our book Picturing Quantum Processes, which informally can be stated as follows:
If the manner in which meanings of words (represented by vectors) compose obeys linguistic structure, then those vectors compose in exactly the same way as quantum systems compose.4
In short, a quantum implementation enables us to embrace compositional interpretability, as defined in our recent paper [arXiv:2406.17583].
So, what have we done? And what does it mean?
We implemented a “question-answering” experiment on our Quantinuum quantum computers, for text circuits as described above. We know from our new paper [arXiv:2408.06061] that this is very hard to do on a classical computer due to the fact that as the size of the texts get bigger they very quickly become unrealistic to even try to do this on a classical computer, however powerful it might be. This is worth emphasizing. The experiment we have completed would scale exponentially using classical computers – to the point where the approach becomes intractable.
The experiment consisted of teaching (or training) the quantum computer to answer a question about a story, where both the story and question are presented as text-circuits. To test our model, we created longer stories in the same style as those used in training and questioned these. In our experiment, our stories were about people moving around, and we questioned the quantum computer about who was moving in the same direction at the end of the stories. A harder alternative one could imagine, would be having a murder mystery story and then asking the computer who was the murderer.
And remember - the training in our experiment constitutes the assigning of quantum states and gates to words that occur in the text.

The major reason for our excitement is that the training of our circuits enjoys compositional generalization. That is, we can do the training on small-scale ordinary computers, and do the testing, or asking the important questions, on quantum computers that can operate in ways not possible classically. Figure 4 shows how, despite only being trained on stories with up to 8 actors, the test accuracy remains high, even for much longer stories involving up to 30 actors.
Training large circuits directly in quantum machine learning, leads to difficulties which in many cases undo the potential advantage. Critically - compositional generalization allows us to bypass these issues.

We can compare the results of our experiment on a quantum computer, to the success of a classical LLM ChatGPT (GPT-4) when asked the same questions.
What we are considering here is a story about a collection of characters that walk in a number of different directions, and sometimes follow each other. These are just some initial test examples, but it does show that this kind of reasoning is not particularly easy for LLMs.
The input to ChatGPT was:

What we got from ChatGPT:

Can you see where ChatGPT went wrong?
ChatGPT’s score (in terms of accuracy) oscillated around 50% (equivalent to random guessing). Our text circuits consistently outperformed ChatGPT on these tasks. Future work in this area would involve looking at prompt engineering – for example how the phrasing of the instructions can affect the output, and therefore the overall score.
Of course, we note that ChatGPT and other LLM’s will issue new versions that may or may not be marginally better with ‘question-answering’ tasks, and we also note that our own work may become far more effective as quantum computers rapidly become more powerful.
We have now turned our attention to work that will show that using vectors to represent meaning and requiring compositional interpretability for natural language takes us mathematically natively into the quantum formalism. This does not mean that there doesn't exist an efficient classical method for solving specific tasks, and it may be hard to prove traditional hardness results whenever there is some machine learning involved. This could be something we might have to come to terms with, just as in classical machine learning.
At Quantinuum we possess the most powerful quantum computers currently available. Our recently published roadmap is going to deliver more computationally powerful quantum computers in the short and medium term, as we extend our lead and push towards universal, fault tolerant quantum computers by the end of the decade. We expect to show even better (and larger scale) results when implementing our work on those machines. In short, we foresee a period of rapid innovation as powerful quantum computers that cannot be classically simulated become more readily available. This will likely be disruptive, as more and more use cases, including ones that we might not be currently thinking about, come into play.
Interestingly and intriguingly, we are also pioneering the use of powerful quantum computers in a hybrid system that has been described as a ‘quantum supercomputer’ where quantum computers, HPC and AI work together in an integrated fashion and look forward to using these systems to advance our work in language processing that can help solve the problem with LLM’s that we highlighted at the start of this article.
1 And where do we go next, when we don’t even understand what we are dealing with now? On previous occasions in the history of science and technology, when efficient models without a clear interpretation have been developed, such as the Babylonian lunar theory or Ptolemy’s model of epicycles, these initially highly successful technologies vanished, making way for something else.
2 Note that our conception of compositionality is more general than the usual one adopted in linguistics, which is due to Frege. A discussion can be found in [arXiv: 2110.05327].
3 For example, using pregroups here as linguistic structure, which are the cups and caps of PQP.
4 That is, using the tensor product of the corresponding vector spaces.
Quantinuum, the world’s largest integrated quantum company, pioneers powerful quantum computers and advanced software solutions. Quantinuum’s technology drives breakthroughs in materials discovery, cybersecurity, and next-gen quantum AI. With over 500 employees, including 370+ scientists and engineers, Quantinuum leads the quantum computing revolution across continents.
Nuclear magnetic resonance (NMR) spectroscopy is one of the most powerful analytical techniques in modern science. From identifying drug candidates to understanding battery materials, it allows researchers to probe the local atomic structure of molecules and materials with remarkable precision.
Interpreting NMR experiments often requires simulations that are just as challenging as the experiments themselves. As the number of interacting nuclear spins grows, the computational cost of simulating these systems increases exponentially on classical computers. Quantum computers, which naturally represent and evolve quantum states, offer a fundamentally different approach.
In our latest work, we demonstrate the most accurate large-scale digital NMR simulation performed on quantum hardware to date. Using Quantinuum's System Model H2, we carried out an end-to-end simulation of a classically challenging NMR experiment, reproducing key spectral features that previous hardware demonstrations were unable to capture.
NMR is a cornerstone of chemical analysis. Researchers use it to determine molecular structures, characterize new compounds, and study how atoms interact with one another.
These capabilities make NMR indispensable across industry. In pharmaceutical research, NMR helps identify and characterize drug candidates. In materials science, it reveals the local atomic environments that determine material properties. Battery researchers, for example, use NMR to study cathode materials such as lithium cobalt oxide, allowing them to monitor how the material changes during charging and discharging and ultimately improve battery performance.
In many cases, the experimental spectrum is only part of the story. Simulations help scientists interpret complex spectra by revealing which atomic interactions give rise to the observed peaks. They provide the link between an experimental measurement and the underlying molecular structure.
The difficulty lies in the physics.
An NMR experiment measures the dynamics of interacting nuclear spins. Every additional spin rapidly increases the size of the quantum state that must be represented (in the case of a spin-½ particle, every spin doubles the state). As a result, exact classical simulations become exponentially more expensive as the system size grows.
Today's best classical methods are remarkably sophisticated. Exact simulations are typically limited to systems of around 25 interacting spins, while advanced approximation techniques can often extend calculations to roughly 40–50 spins for many practical problems.
Those approximations have made classical NMR software extraordinarily effective for conventional liquid-state spectroscopy. In fact, our collaborators on this project are developing one of the leading classical simulation packages and noted that, despite the success of our quantum experiment, the current spectral resolution is still insufficient for routine use by practicing spectroscopists. Resolving the fine structure needed for many real-world analyses would require substantially longer simulations—and therefore much deeper quantum circuits than current hardware can yet support.
This highlights both the progress and the remaining challenge. Quantum computers are beginning to produce meaningful NMR spectra, but practical utility will require larger quantum computers and increased simulation depth.
In the longer term, interacting spin systems are among the most natural applications for quantum computers. Instead of storing the exponentially large quantum state explicitly, a quantum computer represents it directly in its physical qubits. For spin-½ nuclei, the mapping is particularly efficient: each nuclear spin corresponds directly to a single qubit. Higher-spin nuclei require only a small number of additional qubits.
This does not eliminate every computational challenge—longer simulations still require deeper quantum circuits—but it avoids the exponential memory bottleneck that limits classical simulation.
For NMR, this makes quantum simulation an especially compelling long-term application.
Working with collaborators at HQS Quantum Simulations, we implemented a complete quantum workflow for simulating an NMR experiment on Quantinuum's H2 trapped-ion quantum computer.
Rather than stopping at Hamiltonian simulation alone, we reproduced the entire computational pipeline:
The benchmark molecule, 1,2-di-tert-butyl-diphosphane, is a well-known challenge for NMR simulation. After applying hardware-efficient model reduction, we simulated an effective 21-spin Hamiltonian using a 42-qubit (21 system qubits and 21 ancilla qubits) computation on System Model H2.
Our deepest circuits reached over 1,400 two-qubit gates and simulated 70 Trotter steps, corresponding to approximately 29 ms of physical evolution time.
Most importantly, the resulting spectrum reproduced the key benchmark features of the classical reference calculation, including a characteristic double-peak structure that previous quantum hardware demonstrations had failed to recover.
This represents the most complete hardware demonstration of digital NMR simulation reported to date.
Achieving this result depended not only on the quantum algorithm but also on the underlying hardware.
Large Hamiltonian simulations require long, high-fidelity quantum circuits. Quantinuum's trapped-ion architecture provides all-to-all qubit connectivity, high-fidelity gates, and effective error-suppression techniques that allowed us to preserve the spectroscopic features throughout the computation.
The close agreement between hardware, emulator, and classical reference calculations demonstrates that deep quantum simulations of chemically meaningful systems are becoming increasingly feasible on today's hardware.
To make quantum NMR genuinely useful for practicing spectroscopists, future systems will need substantially deeper circuits.
Our experiment simulated approximately 29 ms of evolution time, producing spectral features with a resolution of roughly 0.07 ppm, a very promising start.
Reaching that scale will require continued improvements in hardware fidelity, error correction, and quantum algorithms.
Nevertheless, this work demonstrates that digital quantum simulation of realistic NMR experiments is no longer purely theoretical. It establishes a practical end-to-end workflow, validates key algorithmic techniques, and shows that quantum computers can already reproduce chemically meaningful spectral signatures.
As quantum hardware continues to improve, applications such as molecular spectroscopy, materials characterization, and chemical simulation are becoming increasingly realistic targets for practical quantum computing.
1 Based on a study of existing literature
The demands of fault tolerance are bringing Quantinuum’s advantages into sharper focus.
In a new independent study from the Jülich Supercomputing Centre, Quantinuum’s Helios demonstrated an approximately order-of-magnitude advantage over superconducting hardware in tests of operations essential to quantum error correction. More precisely, Helios’ effective hardware error was approximately 13 times lower at 30 data qubits and eight times lower at 50 data qubits than the comparable superconducting result.
The advantage extended to architectural flexibility. Quantinuum’s systems supported tests across three error-correcting code families, while connectivity and control restrictions limited implementation to only one on the superconducting devices evaluated.
These findings build on earlier independent research by the same organization highlighting Quantinuum’s physical-level performance. As we have argued, the NISQ era is coming to an end. The demands of error correction are bringing our architectural differences into sharper focus—and this study provides further evidence of Quantinuum’s advantage.
A fault-tolerant quantum computer must repeatedly detect and correct errors to protect the computation in progress. That requires reliable mid-circuit measurements, conditional operations, and real-time coordinated scheduling.
In a direct comparison, introducing mid-circuit measurement caused substantially greater degradation on the superconducting processors compared to the Quantinuum systems.
That difference matters. Mid-circuit measurement must be repeated throughout fault-tolerant computations. Their (potential) performance penalty directly affects how much computation a machine can sustain.
Helios demonstrated strong performance under those demands, extending its advantage beyond the physical layer into circuits exercising essential error-correction capabilities.
The study also highlighted how architectural restrictions affect which error-correction structures hardware can implement directly.
On Quantinuum’s systems, researchers ran tests exploring the surface-code, triangular color-code, and a bivariate-bicycle qLDPC code. In contrast, the superconducting devices evaluated were only able to explore the surface code due to device constraints.
This is because Quantinuum’s QCCD architecture offers greater flexibility: mobile qubits enable codes that require higher connectivity than is allowed on traditional superconducting processors. Ultimately, this gives researchers more freedom to explore multiple codes—and more opportunities to reduce the qubit and time overheads of fault tolerance.
The Jülich study provides independent evidence that Quantinuum’s architectural choices deliver advantages for operations essential to fault tolerance. It also reveals performance and implementation gaps in the superconducting systems tested.
We intend to extend that lead. Our investments in fidelity, flexible connectivity, and integrated control are foundations for increasingly capable machines.
As error-correction workloads become more demanding, those capabilities become more consequential. Quantinuum is building to meet that challenge—and to keep raising the performance bar.
Thirty participants gathered at Newnham College, Cambridge, for an intensive five-day programme exploring how quantum computers can be used to model chemical systems.
By: Duncan Gowland, Senior Advanced R&D Scientist at Quantinuum
For 30 researchers who gathered at Newnham College, Cambridge this September, that question shaped an intensive five-day programme.
Quantinuum’s first InQuanto Summer School, supported by the UK’s National Quantum Computing Centre (NQCC), combined lectures, hands-on workshops, and mini-projects to help participants connect fundamental concepts with practical research. By the end of the week, participants were applying those ideas to problems ranging from molecular electronic structure to quantum state-preparation circuits.
Applying quantum computing to chemistry can be challenging because it draws on expertise from a broad range of areas, including electronic structure theory, quantum algorithms, software, hardware, noise modelling, and resource estimation. Researchers often enter the field with deep knowledge of one or two of these areas but less familiarity with the others.
A key objective of the course was to help researchers from computational chemistry and quantum computing build stronger foundations, develop a shared language, and deepen their understanding of adjacent disciplines.
For researchers beginning work at this intersection, that shared understanding can make it easier to identify where to start, which assumptions to challenge, and when to seek expertise from another discipline.
The programme began with lectures on the foundations of quantum computing, followed by pen-and-paper and computational exercises in the afternoon. On Day 2, lectures and workshops introduced the electronic structure problem: how quantum chemists describe the behaviour of electrons in molecules.
Students then brought these two foundations together by studying fermion-to-qubit mappings, which translate chemistry problems into a form that quantum computers can process, before moving on to the measurement of chemistry observables and the construction of quantum algorithms.
Learners were given free access to InQuanto, Quantinuum’s quantum chemistry software platform designed to accelerate research in fields such as chemistry and condensed matter physics using quantum computers. InQuanto supported the lectures as a broad, well-documented, and thoroughly tested platform that enabled students to explore and reinforce complex concepts through hands-on experience.
Later in the week, attention shifted to state-of-the-art considerations: how to build useful chemical models, make the best use of current quantum devices, and think about how quantum algorithms for chemistry might develop over the next five to ten years.
The students, who travelled from around the world to Cambridge, brought a remarkable range of backgrounds and experience. The material was pitched at roughly first-year doctoral level, for participants with at least a year of experience in one core area and some Python skills. Even with this experience, participants benefited from exposure to other disciplines and from the practical expertise of Quantinuum’s quantum chemistry team—which brings years of experience working with industrial including BMW Group, TotalEnergies, NVIDIA, and Pfizer.
Throughout the week, participants were highly engaged in lectures and brought a thoughtful, collaborative approach to the workshop exercises. Discussions continued throughout the week, from coffee breaks to lunches and dinners, creating valuable opportunities to exchange ideas and experiences.
A particular highlight was the mini-project work. In just a day and a half, participants tackled a wide range of problems and produced impressive prototype solutions. The projects concluded with a poster-style session, where the quality of discussion was exceptional. Examples included state-preparation programmes using mid-circuit measurement in Guppy; investigations of active-space selection and quantum-selected configuration interaction (QSCI) for the chromium dimer; and the use of the atomic valence active space (AVAS) approach to identify active spaces and perform resource estimation for myoglobin.
One participant reimplemented their research on efficient state-preparation circuits based on orbital entanglement in InQuanto and compared the performance of those circuits with the platform’s efficient ansatz methods on the Helios emulator. It was rewarding to see participants apply these tools to their own research challenges and explore new approaches to quantum chemistry.

This rewarding week was made possible through the support of the UK’s National Quantum Computing Centre, whose partnership helped bring the programme to life, and by the contributions of colleagues across Quantinuum. The teaching team brought together experts from our quantum chemistry, compiler, and error-correction teams, who developed the course materials, delivered lectures, and led the workshops.
Above all, the programme demonstrated the value of bringing researchers together around a shared foundation, practical tools, and opportunities to learn from one another. We look forward to seeing how participants build on these ideas in their future research.
Interested in future training opportunities, workshops, and community events from Quantinuum? Join QNET to stay connected with the latest updates, resources, and opportunities to engage with the quantum computing community.