QNLP in Practice: Running Compositional Models of Meaning on a Quantum Computer

by   Robin Lorenz, et al.

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 >= 100 sentences. Exploiting the formal similarity of the compositional model of meaning by Coecke et al. (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 two NLP models that solve simple sentence classification tasks on quantum hardware. We describe in detail the main principles, the process and challenges of these experiments, in a way accessible to NLP researchers, thus paving the way for practical Quantum Natural Language Processing.


page 1

page 2

page 3

page 4


A gentle introduction to Quantum Natural Language Processing

The main goal of this master's thesis is to introduce Quantum Natural La...

Grammar-Aware Question-Answering on Quantum Computers

Natural language processing (NLP) is at the forefront of great advances ...

Design and Implementation of a Quantum Kernel for Natural Language Processing

Natural language processing (NLP) is the field that attempts to make hum...

Quantum Natural Language Generation on Near-Term Devices

The emergence of noisy medium-scale quantum devices has led to proof-of-...

Toward Quantum Machine Translation of Syntactically Distinct Languages

The present study aims to explore the feasibility of language translatio...

How to make qubits speak

This is a story about making quantum computers speak, and doing so in a ...

Learning to SMILE(S)

This paper shows how one can directly apply natural language processing ...

Code Repositories


Code and resources for the Lorenz et al. (2021) QMLP paper

view repo

Please sign up or login with your details

Forgot password? Click here to reset