Abstract
Automatic text processing is now a mature discipline in computer science, and so attempts at advancements using quantum computation have emerged as the new frontier, often under the term of quantum natural language processing. The main challenges consist in finding the most adequate ways of encoding words and their interactions on a quantum computer, considering hardware constraints, as well as building algorithms that take advantage of quantum architectures, so as to show improvement on the performance of natural language tasks. In this paper, we introduce a new framework that starts from a grammar that can be interpreted by means of tensor contraction, to build word representations as quantum states that serve as input to a quantum algorithm. We start by introducing an operator measurement to contract the representations of words, resulting in the representation of larger fragments of text. We then go on to develop pipelines for the tasks of sentence meaning disambiguation and question answering that take advantage of quantum features. For the first task, we show that our contraction scheme deals with syntactically ambiguous phrases storing the various different meanings in quantum superposition, a solution not available on a classical setting. For the second task, we obtain a question representation that contains all possible answers in equal quantum superposition, and we implement Grover's quantum search algorithm to find the correct answer, agnostic to the specific question, an implementation with the potential of delivering a result with quadratic speedup.
Original language | English |
---|---|
Article number | 126 |
Number of pages | 25 |
Journal | Quantum Information Processing |
Volume | 21 |
Issue number | 4 |
DOIs | |
Publication status | Published - 30 Mar 2022 |
Funding
We would like to thank the anonymous referees for the helpful comments. This work is supported by the Utrecht University's Complex Systems Fund, with special thanks to Peter Koeze, and the D-ITP consortium, a program of the Netherlands Organization for Scientific Research (NWO) that is funded by the Dutch Ministry of Education, Culture and Science (OCW).
Funders | Funder number |
---|---|
Utrecht University's Complex Systems Fund | |
Dutch Ministry of Education, Culture and Science (OCW) |
Keywords
- Grover's algorithm
- Quantum natural language processing
- Quantum search
- Question answering
- Syntactic ambiguities