Automating quantum feature map design via large language models
Kenya Sakka, Kosuke Mitarai, Keisuke Fujii
TL;DR
This work tackles the challenge of designing practical quantum feature maps for QSVM-based classification by introducing an agentic, LLM-driven framework that automates idea generation, validation, evaluation, and refinement of quantum feature maps. The system incorporates retrieval-augmented knowledge, code generation, and empirical kernel-based evaluation on MNIST-like data, demonstrating that dataset-adaptive feature maps can outperform several quantum baselines and approach classical kernel performance on multiple benchmarks. Key contributions include a full five-component loop (Generation, Storage, Validation, Evaluation, Review) enabling iterative improvement without internal training, and the demonstration that high-performing maps can be discovered autonomously with competitive results on MNIST, Fashion-MNIST, and CIFAR-10. The findings highlight the potential of automated quantum algorithm design to bridge theoretical promise and practical deployment, while outlining future work toward incorporating trainable components and extending to broader quantum algorithms beyond feature maps. (Mathematical relation: the quantum kernel is K(x, x') = |⟨Φ(x)|Φ(x')⟩|^2, derived from density operators ρ(x) = U(x)|0⟩⟨0|U(x)†.)
Abstract
Quantum feature maps are a key component of quantum machine learning, encoding classical data into quantum states to exploit the expressive power of high-dimensional Hilbert spaces. Despite their theoretical promise, designing quantum feature maps that offer practical advantages over classical methods remains an open challenge. In this work, we propose an agentic system that autonomously generates, evaluates, and refines quantum feature maps using large language models. The system consists of five component: Generation, Storage, Validation, Evaluation, and Review. Using these components, it iteratively improves quantum feature maps. Experiments on the MNIST dataset show that it can successfully discover and refine feature maps without human intervention. The best feature map generated outperforms existing quantum baselines and achieves competitive accuracy compared to classical kernels across MNIST, Fashion-MNIST, and CIFAR-10. Our approach provides a framework for exploring dataset-adaptive quantum features and highlights the potential of LLM-driven automation in quantum algorithm design.
