QNLP in Practice: Running Compositional Models of Meaning on a Quantum Computer
Robin Lorenz, Anna Pearson, Konstantinos Meichanetzidis, Dimitri, Kartsaklis, Bob Coecke

TL;DR
This paper demonstrates the first NLP experiments on NISQ quantum computers using compositional models of meaning, showing successful training and convergence on simple sentence classification tasks, and aims to guide AI researchers in quantum NLP.
Contribution
It introduces a quantum-compatible sentence representation based on compositional models, enabling NLP tasks on quantum hardware and providing a practical framework for future quantum NLP research.
Findings
Models converge smoothly in simulations and on quantum hardware.
Syntax-sensitive models outperform syntax-agnostic baselines.
Quantum models successfully classify simple sentences.
Abstract
Quantum Natural Language Processing (QNLP) deals with the design and implementation of NLP models intended to be run on quantum hardware. In this paper, we present results on the first NLP experiments conducted on Noisy Intermediate-Scale Quantum (NISQ) computers for datasets of size greater than 100 sentences. Exploiting the formal similarity of the compositional model of meaning by Coecke, Sadrzadeh and Clark (2010) with quantum theory, we create representations for sentences that have a natural mapping to quantum circuits. We use these representations to implement and successfully train NLP models that solve simple sentence classification tasks on quantum hardware. We conduct quantum simulations that compare the syntax-sensitive model of Coecke et al. with two baselines that use less or no syntax; specifically, we implement the quantum analogues of a "bag-of-words" model, where…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Text Analysis Techniques · Advanced Database Systems and Queries · Distributed systems and fault tolerance
