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

10/08/2021
by   Dimitri Kartsaklis, et al.
0

We present lambeq, the first high-level Python library for Quantum Natural Language Processing (QNLP). The open-source toolkit offers a detailed hierarchy of modules and classes implementing all stages of a pipeline for converting sentences to string diagrams, tensor networks, and quantum circuits ready to be used on a quantum computer. lambeq supports syntactic parsing, rewriting and simplification of string diagrams, ansatz creation and manipulation, as well as a number of compositional models for preparing quantum-friendly representations of sentences, employing various degrees of syntax sensitivity. We present the generic architecture and describe the most important modules in detail, demonstrating the usage with illustrative examples. Further, we test the toolkit in practice by using it to perform a number of experiments on simple NLP tasks, implementing both classical and quantum pipelines.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
12/13/2022

Categorical Tools for Natural Language Processing

This thesis develops the translation between category theory and computa...
research
12/13/2022

Category Theory for Quantum Natural Language Processing

This thesis introduces quantum natural language processing (QNLP) models...
research
03/14/2021

Diagrammatic Differentiation for Quantum Machine Learning

We introduce diagrammatic differentiation for tensor calculus by general...
research
04/12/2020

A hybrid classical-quantum workflow for natural language processing

Natural language processing (NLP) problems are ubiquitous in classical c...
research
03/04/2023

Variational Quantum Classifiers for Natural-Language Text

As part of the recent research effort on quantum natural language proces...
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-...
research
07/31/2023

Toward Quantum Machine Translation of Syntactically Distinct Languages

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

Please sign up or login with your details

Forgot password? Click here to reset