# Quantum Natural Language Processing on Near-Term Quantum Computers

근단기 양자 컴퓨터에서의 양자 자연어 처리

Konstantinos Meichanetzidis, Stefano Gogioso, Giovanni de Felice, Nicolò Chiappori, Alexis Toumi, Bob Coecke · arXiv · 2020년 5월 8일

- **연구 문제** DisCoCat 문장 다이어그램을 NISQ 장치에서 실행할 변분 양자 회로로 옮기는 방법을 제시합니다.
- **연구 방법** 파싱된 다이어그램을 bigraph method 또는 snake\_removal method로 재작성한 뒤 CNOT+U(3) 또는 IQP 앤사츠를 단어에 대응시킵니다.
- **주요 결과** Basil paints Dorian 예시에서 명사 차원 4, 문장 차원 2, depth-one IQP 앤사츠로 회로를 구성하는 과정을 보여 줍니다.

## DisCoCat 다이어그램을 NISQ 회로로 옮기는 문제

이 논문은 DisCoCat 모델로 표현한 문장의 문법 구조를 NISQ 장치에서 실행할 수 있는 변분 양자 회로로 옮기는 문제를 다룹니다. 기존 Zeng-Coecke 알고리즘은 일부 응용에서 양자 랜덤 액세스 메모리(QRAM)를 필요로 하며, 이는 내결함성 있는 대규모 양자 컴퓨터 없이는 효율적으로 구현되기 어렵다고 원문은 짚습니다. 이 논문은 QRAM 없이 고전 앤사츠의 매개변수로 분포적 임베딩을 표현하는 방향을 택합니다.

문장은 먼저 파싱되어 문법 구조를 담은 다이어그램이 되며, 이 다이어그램은 회로로 바꾸기 전에 더 단순한 다이어그램으로 다듬어야 합니다. 논문은 이 파싱 단계를 파이프라인의 입력으로 가정합니다.

## 피레그룹 문법과 다이어그램 의미

DisCoCat에서 문법은 피레그룹 문법으로 주어지며, 단어에는 피레그룹 타입이 부여됩니다. 축약(cup)과 확장(cap)으로 문장 타입 s로 환원되는 과정이 문법성의 증거가 되고, 이를 그래픽 계산법으로 그리면 중첩된 캡 패턴이 됩니다.

의미는 이 문법 구조를 컴팩트 닫힌 범주 fHilb로 보내는 모노이드 함수자로 주어집니다. 각 원자 타입은 유한차원 힐베르트 공간에 대응하고, 단어는 그 타입의 공간에 있는 벡터로 대응합니다. 따라서 문법적 축약은 텐서 수축으로 해석됩니다.

## 두 가지 다이어그램 재작성 방법

논문은 회로 폭과 깊이를 줄이기 위해 두 재작성 방법을 제시합니다. 첫째, bigraph method는 뿌리 단어에서 거리가 짝수인 단어는 상태로, 홀수인 단어는 전치하여 효과로 바꾸어 이분 그래프를 만듭니다. 이때 선 교차가 생기면 SWAP 비용이 커지므로, 단어의 선형 순서를 바꿔 교차를 줄입니다. 이분 그래프에서 교차를 최소화하는 문제는 NP-완전이라 원문은 특정 알고리즘을 규정하지 않습니다.

둘째, snake\_removal method는 각 단어를 오토노미제이션한 뒤 뱀 모양 선을 당겨(yanking) 컵과 캡이 없는 다이어그램을 얻습니다. 이 방법은 모든 선형 사상을 필요로 하므로 비유니터리 사상을 구현하려면 보조 큐빗과 사후 선택이 필요하다고 원문은 밝힙니다.

## CNOT+U(3)와 IQP 앤사츠

단어 앤사츠는 두 계열로 제시됩니다. CNOT+U(3) 계열은 단일 큐빗 Pauli Z와 X 회전 층과 CNOT 층을 번갈아 쌓은 유니터리 회로입니다. 상태 앤사츠는 이 회로를 0 상태에 적용하여 얻고, 효과 앤사츠는 전치한 뒤 ⟨0\|에 대한 사후 선택으로 얻습니다.

IQP 계열은 아다마르 층과 매개변수화된 제어-Z 회전 사다리를 쌓은 순간적 양자 다항식 회로입니다. 원문은 이 두 계열이 모두 단위 큐빗 앤사츠에서 유도된다고 설명합니다.

## Basil paints Dorian 예시

논문은 단순한 문장 Basil paints Dorian을 예로 들어 파이프라인을 보여 줍니다. 여기서 명사 공간 차원은 dn = 4, 문장 공간 차원은 ds = 2로 설정되고, 단어에는 depth-one IQP 앤사츠가 사용됩니다. 다이어그램은 bigraph method로 재구성된 뒤 회로로 바뀝니다.

동사 paints의 매개변수는 α로, 두 명사 Basil과 Dorian의 매개변수는 각각 β와 γ로 표기되며 제어-Z 회전의 각도로 쓰입니다. 문장 상태를 얻기 위해 사후 선택이 필요하다고 원문은 밝힙니다. 이 결과는 하나의 소형 예시이며 데이터셋이나 학습 성능 평가가 아닙니다.

## 적용 범위와 남은 과제

저자들은 이 연구를 NISQ 구현을 위한 첫 단계로 해석합니다. 최적화 방법은 큐빗이 선형으로 배열된다는 가정에 묶여 있으며, 기계별 큐빗 위상과 교차 최소화는 장치별 트랜스파일러나 t\|ket⟩ 같은 컴파일러에 맡겨집니다. 원문은 큐빗 위상을 고려한 교차 최소화를 향후 과제로 남깁니다.

또한 논문은 파싱 자체가 본 파이프라인에서는 해결된 입력으로 취급된다고 명시합니다. 문맥 민감 문법이나 혼합 상태 의미로의 확장도 미래 과제로 제시됩니다.

## 논문 정보

- **저자**: Konstantinos Meichanetzidis, Stefano Gogioso, Giovanni de Felice, Nicolò Chiappori, Alexis Toumi, Bob Coecke
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2020년 5월 8일
- **등록일**: 2026년 11월 6일
- **수정일**: 2021년 9월 6일
- **버전**: v2
- **arXiv**: 2005.04147
- **DOI**: 10.4204/eptcs.340.11
- **분류**: cs.CL · quant-ph
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2005.04147v2) · [원문 PDF ↗](https://arxiv.org/pdf/2005.04147v2)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

In this work, we describe a full-stack pipeline for natural language processing on near-term quantum computers, aka QNLP. The language-modelling framework we employ is that of compositional distributional semantics (DisCoCat), which extends and complements the compositional structure of pregroup grammars. Within this model, the grammatical reduction of a sentence is interpreted as a diagram, encoding a specific interaction of words according to the grammar. It is this interaction which, together with a specific choice of word embedding, realises the meaning (or "semantics") of a sentence. Building on the formal quantum-like nature of such interactions, we present a method for mapping DisCoCat diagrams to quantum circuits. Our methodology is compatible both with NISQ devices and with established Quantum Machine Learning techniques, paving the way to near-term applications of quantum technology to natural language processing.

## 원문 인용

Konstantinos Meichanetzidis, Stefano Gogioso, Giovanni de Felice, Nicolò Chiappori, Alexis Toumi, Bob Coecke (2020). Quantum Natural Language Processing on Near-Term Quantum Computers. arXiv:2005.04147v2. https://doi.org/10.4204/eptcs.340.11

**BibTeX**

```
@article{meichanetzidis2020quantum,
  title = {{Quantum Natural Language Processing on Near-Term Quantum Computers}},
  author = {Konstantinos Meichanetzidis and Stefano Gogioso and Giovanni de Felice and Nicolò Chiappori and Alexis Toumi and Bob Coecke},
  year = {2020},
  eprint = {2005.04147},
  archivePrefix = {arXiv},
  doi = {10.4204/eptcs.340.11},
  url = {https://arxiv.org/abs/2005.04147v2}
}
```

## 이 논문의 용어

- [variational quantum circuits](https://refivu.com/terms/09864fa94196-variational-quantum-circuits)
- [quantum random access memory](https://refivu.com/terms/15a15ca7155d-quantum-random-access-memory)

## 다른 논문 해설

- [Sentiment Analysis Based on Deep Learning: A Comparative Study](https://refivu.com/papers/01238de6-5a95-42bc-adff-3e5385ae4ea6-sentiment-analysis-based-on-deep-learning-a-comparative.md)
- [Synchronous Bidirectional Neural Machine Translation](https://refivu.com/papers/a9d42360-cea4-402b-be66-54c6fcbb997b-synchronous-bidirectional-neural-machine-translation.md)
- [Embedding Projection for Targeted Cross-Lingual Sentiment: Model Comparisons and a Real-World Study](https://refivu.com/papers/14ebfd4f-6ac8-4737-851d-03108b88fa3b-embedding-projection-for-targeted-cross-lingual-sentiment.md)
- [Word Similarity Datasets for Thai: Construction and Evaluation](https://refivu.com/papers/79a699ae-0739-4d3a-a58f-925cc30c3e07-word-similarity-datasets-for-thai-construction-and.md)
- [Machine Reading Comprehension for Answer Re-Ranking in Customer Support Chatbots](https://refivu.com/papers/3cb52c93-8dda-462e-9b98-2cbe67557aa2-machine-reading-comprehension-for-answer-re-ranking-in.md)
- [NMT-Keras: a Very Flexible Toolkit with a Focus on Interactive NMT and Online Learning](https://refivu.com/papers/1f71471f-1b41-4c8e-923d-0d64f05ab69e-nmt-keras-a-very-flexible-toolkit-with-a.md)
- [Multimodal Estimation of End Point Force During Quasi-dynamic and Dynamic Muscle Contractions Using Deep Learning](https://refivu.com/papers/44d8cc2f-7867-4bec-bbd5-9d74e6f5b2fe-multimodal-estimation-of-end-point-force-during-quasi.md)
- [A Generalized Deep Learning Framework for Whole-Slide Image Segmentation and Analysis](https://refivu.com/papers/17229723-709e-4a8a-9857-8cd6f0d14883-a-generalized-deep-learning-framework-for-whole-slide.md)
- [Zero-shot Medical Image Translation via Frequency-Guided Diffusion Models](https://refivu.com/papers/0a4cebef-e107-4672-a068-5d0a66cdb2ef-zero-shot-medical-image-translation-via-frequency-guided.md)
- [A Survey on Physics Informed Reinforcement Learning: Review and Open Problems](https://refivu.com/papers/9f1c1f2a-797f-4e3b-9dbc-724a65fcef78-a-survey-on-physics-informed-reinforcement-learning-review.md)
- [Generation of Asset Administration Shell with Large Language Model Agents: Toward Semantic Interoperability in Digital Twins in the Context of Industry 4.0](https://refivu.com/papers/ac36066d-cd3b-4dd8-8de7-e7ccd61ed42d-generation-of-asset-administration-shell-with-large-language.md)
- [Expectable Motion Unit: Avoiding Hazards From Human Involuntary Motions in Human-Robot Interaction](https://refivu.com/papers/e1e3aa7c-7fd1-4d36-8d2d-626a81c8c855-expectable-motion-unit-avoiding-hazards-from-human.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/fe5936a3-c668-4b3d-809d-b9e9f3f18d2e-quantum-natural-language-processing-on-near-term-quantum)
