Variational Quantum Transformer Architecture for Synthetic Language Generation

Julian Hager, Michael Kölle, Gerhard Stenzel, Tobias Rohe, Jonas Stein +1 more
9/16/2026
quant-phcs.CLcs.LG
transformer-attention

No confident code implementation found for this paper.

Abstract

We propose a compact NISQ-compatible quantum transformer architecture for synthetic QNLP sequence modelling. The model preserves the autoregressive next-token interface of a classical transformer, but replaces attention and feed-forward sublayers with variational quantum encoder blocks, connector circuits, decoder blocks and a direct two-qubit measurement readout.

Show full abstract

Token contexts are angle-encoded into small quantum registers, processed by parallel variational heads and encoder integration circuits and conditioned through decoder ancillae to produce a distribution over a four-token vocabulary. We evaluate several architecture variants on deterministic and lexicographic grammar-generation tasks against a compact classical transformer baseline. The quantum models are trainable end-to-end and learn nontrivial grammar structure, including perfect deterministic generation in individual runs and high lexicographic validity in the strongest variant. The classical baseline remains more accurate and stable and the quantum models are sensitive to initialization. The contribution is therefore not a claim of quantum advantage, but a concrete architecture and evaluation of transformer-inspired QNLP sequence modelling under near-term quantum constraints.

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{hager2026variational,
  title  = {Variational Quantum Transformer Architecture for Synthetic Language Generation},
  author = {Julian Hager and Michael Kölle and Gerhard Stenzel and Tobias Rohe and Jonas Stein and Claudia Linnhoff-Popien},
  year   = {2026},
  eprint = {2609.18565},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.18565v1}
}

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/2609.18565.svg)](https://codeofpaper.com/paper/2609.18565)

Discussion