mlsanityData to 13 Oct 2026

Fine-Tuning Large Language Models for Quantum Reasoning

arXiv 2606.21974 ↗First posted 20 Jun 2026quant-ph cs.AIcited by 0

On the map: LLM reasoning → Reinforcement learning for reasoning

Abstract (arXiv)

Large language models (LLMs) exhibit abilities beyond natural language modelling and text generation. Recent advances in their reasoning capabilities have spurred interest in applying LLMs to complex scientific tasks requiring deep domain expertise and sophisticated reasoning. Quantum computing, as a highly specialised field with significant knowledge barriers and hardware constraints, could greatly benefit from such advancements. However, a key open question that first must be answered is: How can we develop fine-tuning pipelines that instil genuine quantum reasoning in LLMs, rather than task-specific pattern matching? We study this question through quantum circuit simulation as a training objective, where the model must predict the measurement probability distribution resulting from a sequence of quantum gate operations. We propose and compare two fine-tuning pipelines: (1) Supervised Fine-Tuning (SFT) on explicit gate-by-gate state-vector simulation traces, and (2) a two-stage SFT+Group Relative Policy Optimisation (GRPO) approach that sequentially applies SFT followed by GRPO with verifiable rewards. Our findings show that SFT achieves near-perfect in-distribution and gate-count extrapolation accuracy, significantly outperforming both the base model and the GPT-OSS-120B baseline. SFT+GRPO trades some in-distribution precision for better generalisation to larger qubit systems that SFT alone cannot handle. Both pipelines significantly outperform the baselines, demonstrating that targeted fine-tuning on explicit reasoning traces is an effective strategy for advancing quantum reasoning in LLMs.

Key facts. No citing papers in the map yet (data through 13 Oct 2026). Placed in Reinforcement learning for reasoning, one of 17 directions in LLM reasoning. Builds on 41 of its 49 references that are in the map. First posted on arXiv 20 Jun 2026.

Builds on

41 of 49 references.

Closest ancestors · 4

Same direction, newest first

  1. 2025Symbolic Analysis of Grover Search Algorithm via Chain-of-Thought Reasoning and Quantum-Native Tokenization8 May
  2. 2025Cognitive Behaviors that Enable Self-Improving Reasoners, or, Four Habits of Highly Effective STaRs3 Mar
  3. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning22 Jan
  4. 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Training22 Nov

Other references · 37

  1. 2017Attention Is All You Needcited by 60,106
  2. 2024The Llama 3 Herd of Modelscited by 14,486
  3. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,091
  4. 2025Qwen3 Technical Reportcited by 8,510
  5. 2016Overcoming catastrophic forgetting in neural networkscited by 4,753
  6. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,586
  7. 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,003
  8. 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,319
  9. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,173
  10. 2024A Survey on Large Language Models for Code Generationcited by 656
  11. 2023Alphazero-like Tree-Search can Guide Large Language Model Decoding and Trainingcited by 292
  12. 2022Exploring Length Generalization in Large Language Modelscited by 205
25 more
  1. 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 198
  2. 2025AIMO-2 Winning Solution: Building State-of-the-Art Mathematical Reasoning Models with OpenMathReasoning datasetcited by 171
  3. 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 157
  4. 2026Towards End-to-End Automation of AI Researchcited by 152
  5. 2025OpenCodeReasoning: Advancing Data Distillation for Competitive Codingcited by 112
  6. 2025Gold-medalist Performance in Solving Olympiad Geometry with AlphaGeometry2cited by 95
  7. 2025CWM: An Open-Weights LLM for Research on Code Generation with World Modelscited by 90
  8. 2024A Systematic Survey on Large Language Models for Algorithm Designcited by 69
  9. 2023Length Generalization in Arithmetic Transformerscited by 65
  10. 2024Qiskit Code Assistant: Training LLMs for generating Quantum Computing Codecited by 24
  11. 2023Bayesian Optimization of Catalysis With In-Context Learningcited by 21
  12. 2024Benchmarking Large Language Models for Molecule Prediction Taskscited by 17
  13. 2025Agent-Q: Fine-Tuning Large Language Models for Quantum Circuit Generation and Optimizationcited by 17
  14. 2025QAgent: An LLM-based Multi-Agent System for Autonomous OpenQASM programmingcited by 11
  15. 2025QUASAR: Quantum Assembly Code Generation Using Tool-Augmented LLMs via Agentic RLcited by 11
  16. 2025Enhancing LLM-based Quantum Code Generation with Multi-Agent Optimization and Quantum Error Correctioncited by 10
  17. 2024GroverGPT: A Large Language Model with 8 Billion Parameters for Quantum Searchingcited by 8
  18. 2025PennyCoder: Efficient Domain-Specific LLMs for PennyLane-Based Quantum Code Generationcited by 6
  19. 2025Quantum Verifiable Rewards for Post-Training Qiskit Code Assistantcited by 6
  20. 2025QCoder Benchmark: Bridging Language Generation and Quantum Hardware through Simulator-Based Feedbackcited by 6
  21. 2025Automating quantum feature map design via large language modelscited by 5
  22. 2025Scalable Quantum State Preparation via Large-Language-Model-Driven Discoverycited by 5
  23. 2024On Repairing Quantum Programs Using ChatGPTcited by 4
  24. 2026Automated near-term quantum algorithm discovery for molecular ground statescited by 1
  25. 2026Q-Bridge: Code Translation for Quantum Machine Learning via LLMscited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Fine-Tuning Small Reasoning Models for Quantum Field Theory
  2. 2024QuanTA: Efficient High-Rank Fine-Tuning of LLMs with Quantum-Informed Tensor Adaptation
  3. 2026Aligning Quantum Operators with Large Language Models
  4. 2025Quantum Circuit Reasoning Models: A Variational Framework for Differentiable Logical Inference
  5. 2025Large Language Model Scaling Laws for Neural Quantum States in Quantum Chemistry
  6. 2025Superpositional Gradient Descent: Harnessing Quantum Principles for Model Training
  7. 2025PEPS: Quantum-Inspired Reinforcement Learning for Coherent Reasoning Traces in LLMs
  8. 2025Quantum-Enhanced LLM Efficient Fine Tuning