Log In Sign Up

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-...

Attention-based Quantum Tomography

With rapid progress across platforms for quantum systems, the problem of...

How to make qubits speak

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

lambeq: An Efficient High-Level Python Library for Quantum NLP

We present lambeq, the first high-level Python library for Quantum Natur...

Code Repositories


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

view repo