Grammar-Aware Question-Answering on Quantum Computers

Natural language processing (NLP) is at the forefront of great advances in contemporary AI, and it is arguably one of the most challenging areas of the field. At the same time, with the steady growth of quantum hardware and notable improvements towards implementations of quantum algorithms, we are approaching an era when quantum computers perform tasks that cannot be done on classical computers with a reasonable amount of resources. This provides a new range of opportunities for AI, and for NLP specifically. Earlier work has already demonstrated a potential quantum advantage for NLP in a number of manners: (i) algorithmic speedups for search-related or classification tasks, which are the most dominant tasks within NLP, (ii) exponentially large quantum state spaces allow for accommodating complex linguistic structures, (iii) novel models of meaning employing density matrices naturally model linguistic phenomena such as hyponymy and linguistic ambiguity, among others. In this work, we perform the first implementation of an NLP task on noisy intermediate-scale quantum (NISQ) hardware. Sentences are instantiated as parameterised quantum circuits. We encode word-meanings in quantum states and we explicitly account for grammatical structure, which even in mainstream NLP is not commonplace, by faithfully hard-wiring it as entangling operations. This makes our approach to quantum natural language processing (QNLP) particularly NISQ-friendly. Our novel QNLP model shows concrete promise for scalability as the quality of the quantum hardware improves in the near future.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
02/25/2021

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

Quantum Natural Language Processing (QNLP) deals with the design and imp...
research
12/07/2020

Foundations for Near-Term Quantum Natural Language Processing

We provide conceptual and mathematical foundations for near-term quantum...
research
03/16/2022

Application of Quantum Density Matrix in Classical Question Answering and Classical Image Classification

Quantum density matrix represents all the information of the entire quan...
research
07/31/2023

Toward Quantum Machine Translation of Syntactically Distinct Languages

The present study aims to explore the feasibility of language translatio...
research
07/02/2021

How to make qubits speak

This is a story about making quantum computers speak, and doing so in a ...
research
05/13/2022

Design and Implementation of a Quantum Kernel for Natural Language Processing

Natural language processing (NLP) is the field that attempts to make hum...
research
11/01/2022

Quantum Natural Language Generation on Near-Term Devices

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

Please sign up or login with your details

Forgot password? Click here to reset