Grover's Algorithm for Question Answering

06/09/2021
by   A. D. Correia, et al.
0

Grover's algorithm, a well-know quantum search algorithm, allows one to find the correct item in a database, with quadratic speedup. In this paper we adapt Grover's algorithm to the problem of finding a correct answer to a natural language question in English, thus contributing to the growing field of Quantum Natural Language Processing. Using a grammar that can be interpreted as tensor contractions, each word is represented as a quantum state that serves as input to the quantum circuit. We here introduce a quantum measurement to contract the representations of words, resulting in the representation of larger text fragments. Using this framework, a representation for the question is found that contains all the possible answers in equal quantum superposition, and allows for the building of an oracle that can detect a correct answer, being agnostic to the specific question. Furthermore, we show that our construction can deal with certain types of ambiguous phrases by keeping the various different meanings in quantum superposition.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
02/02/2021

Parametrized Quantum Circuits of Synonymous Sentences in Quantum Natural Language Processing

In this paper, we develop a compositional vector-based semantics of posi...
research
08/04/2016

Quantum Algorithms for Compositional Natural Language Processing

We propose a new application of quantum computing to the field of natura...
research
07/19/2021

On the Quantum-like Contextuality of Ambiguous Phrases

Language is contextual as meanings of words are dependent on their conte...
research
05/12/2023

Implications of Deep Circuits in Improving Quality of Quantum Question Answering

Question Answering (QA) has proved to be an arduous challenge in the are...
research
01/25/2020

Intent Classification in Question-Answering Using LSTM Architectures

Question-answering (QA) is certainly the best known and probably also on...
research
07/16/2023

Fast Quantum Algorithm for Attention Computation

Large language models (LLMs) have demonstrated exceptional performance a...
research
03/30/2018

The Training of Neuromodels for Machine Comprehension of Text. Brain2Text Algorithm

Nowadays, the Internet represents a vast informational space, growing ex...

Please sign up or login with your details

Forgot password? Click here to reset