Vectorized Attention with Learnable Encoding for Quantum Transformer

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Guo, Ziqing, Pan, Ziwen, Khan, Alex, Balewski, Jan
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914019961470976
author Guo, Ziqing
Pan, Ziwen
Khan, Alex
Balewski, Jan
author_facet Guo, Ziqing
Pan, Ziwen
Khan, Alex
Balewski, Jan
contents Vectorized quantum block encoding provides a way to embed classical data into Hilbert space, offering a pathway for quantum models, such as Quantum Transformers (QT), that replace classical self-attention with quantum circuit simulations to operate more efficiently. Current QTs rely on deep parameterized quantum circuits (PQCs), rendering them vulnerable to QPU noise, and thus hindering their practical performance. In this paper, we propose the Vectorized Quantum Transformer (VQT), a model that supports ideal masked attention matrix computation through quantum approximation simulation and efficient training via vectorized nonlinear quantum encoder, yielding shot-efficient and gradient-free quantum circuit simulation (QCS) and reduced classical sampling overhead. In addition, we demonstrate an accuracy comparison for IBM and IonQ in quantum circuit simulation and competitive results in benchmarking natural language processing tasks on IBM state-of-the-art and high-fidelity Kingston QPU. Our noise intermediate-scale quantum friendly VQT approach unlocks a novel architecture for end-to-end machine learning in quantum computing.
format Preprint
id arxiv_https___arxiv_org_abs_2508_18464
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Vectorized Attention with Learnable Encoding for Quantum Transformer
Guo, Ziqing
Pan, Ziwen
Khan, Alex
Balewski, Jan
Quantum Physics
Artificial Intelligence
Machine Learning
Vectorized quantum block encoding provides a way to embed classical data into Hilbert space, offering a pathway for quantum models, such as Quantum Transformers (QT), that replace classical self-attention with quantum circuit simulations to operate more efficiently. Current QTs rely on deep parameterized quantum circuits (PQCs), rendering them vulnerable to QPU noise, and thus hindering their practical performance. In this paper, we propose the Vectorized Quantum Transformer (VQT), a model that supports ideal masked attention matrix computation through quantum approximation simulation and efficient training via vectorized nonlinear quantum encoder, yielding shot-efficient and gradient-free quantum circuit simulation (QCS) and reduced classical sampling overhead. In addition, we demonstrate an accuracy comparison for IBM and IonQ in quantum circuit simulation and competitive results in benchmarking natural language processing tasks on IBM state-of-the-art and high-fidelity Kingston QPU. Our noise intermediate-scale quantum friendly VQT approach unlocks a novel architecture for end-to-end machine learning in quantum computing.
title Vectorized Attention with Learnable Encoding for Quantum Transformer
topic Quantum Physics
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2508.18464