Hybrid Quantum Transformer for Language Generation

Desheng Kong, Xiangshuo Cui, Jiaying Jin, Jing Xu, Donglin Wang
11/2/2025
cs.CLcs.AIquant-ph

No confident code implementation found for this paper.

Abstract

Although quantum computing has been increasingly applied to replace classical computation, most existing quantum or hybrid models remain confined to simple tasks, with no successful application to large-scale natural language generation to date. In this work, we present the first hybrid quantum-classical large language model (LLM) for natural language generation, HyQuT, capable of performing coherent and context-aware dialogue. The proposed architecture integrates variational quantum circuits (VQCs) into the Transformer framework at both 8M and 150M parameter scales. Experimental results show that a minimal number of qubits (10 qubits with 80 quantum gates) can replace about 10% of the classical parameters in the 150M-parameter model, while achieving comparable convergence stability and generation quality. This study provides an early demonstration of the feasibility of integrating quantum computing to large-scale generative language models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kong2025hybrid,
  title  = {Hybrid Quantum Transformer for Language Generation},
  author = {Desheng Kong and Xiangshuo Cui and Jiaying Jin and Jing Xu and Donglin Wang},
  year   = {2025},
  eprint = {2511.10653},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.10653v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.10653.svg)](https://codeofpaper.com/paper/2511.10653)

Discussion