arXiv:2609.05842quant-phSep 2026

Manuscript Offprint

arXiv:2609.05842

Do Quantum AIs Dream in Paths? Path-Integral Slow Thinking through Grover Interference

Xiansheng Cai, Xiu-Hao Deng, Kun Chen

Xiansheng Cai,¹ Xiu-Hao Deng,²,³ and Kun Chen¹,★

¹Institute of Theoretical Physics, Chinese Academy of Sciences, Beijing 100190, China ²Shenzhen International Quantum Academy, Shenzhen 518048, China ³Shenzhen Branch, Hefei National Laboratory, Shenzhen 518048, China (Dated: September 9, 2026)

Reinforcement learning with verifiable rewards enables large language models to think slowly through long chains of thought, but the same training can induce policy collapse: probability concentrates onto a few successful trajectories, and exploratory diversity erodes. We ask whether quantum AI can realize slow thinking differently. We formulate slow thinking as coherent dynamics over reasoning trajectories, a discrete path integral in which action sequences coexist in superposition and recombine before measurement. In our trainable realization, an exact verifier partitions the ensemble into collective accepted and rejected components that interfere under Grover amplitude amplification; the working resource is this ensemble-level interference. A finite Grover evolution is maximized when the success probability before amplification lies at an analytically determined value below one, so inference itself defines an interior training target and removes the monotonic pressure toward unit success. In exact statevector simulations of a 2×32 \times 3 sliding puzzle with interdependent moves, Grover training reaches accuracy 0.95 on a 32-question training set at one round, against 0.73 for the strongest classical control. On held-out questions, specialization has a cost: an untrained uniform policy read out through the same amplification remains the strongest reference on this solution-dense benchmark. Quantum training preserves far more held-out accuracy than classical training: at four rounds with matched reasoning-circuit applications, the table-based and neural quantum models reach 3.2 and 3.9 times the held-out accuracy of the strongest classical controls. For policies of fixed size trained separately at each amplification budget, the number of supported training questions grows faster with the budget than with matched classical repetition. These results establish a Grover-based realization of path-integral slow thinking, in which the interior target set by inference preserves exploratory path diversity and ensemble-level interference converts interior success probabilities into verified performance.

I. INTRODUCTION

Recent advances in large language model (LLM) reasoning have been driven in part by chain-of-thought generation [1]. Rather than producing a final answer directly, an LLM generates a sequence of intermediate tokens, with each new token conditioned on the problem and the preceding sequence. A complete reasoning sequence can therefore be viewed as a stochastic trajectory through possible intermediate steps. Because each step admits multiple continuations, increasing the sequence length expands both the depth of the computation and the space of possible reasoning trajectories. This enlarged space allows the model to compose more intermediate operations and thereby reach solutions that are inaccessible to shorter trajectories. Increasing the reasoning horizon at inference—known as test-time scaling—can therefore enable a model to solve harder problems without increasing its number of parameters [2-4]. Continued progress in coherent quantum information processing raises a natural question: could a quantum AI model acquire an analogous form of slow thinking [5] through quantum dynamical evolution? If so, how would its reasoning differ fundamentally from classical

slow thinking, how could such a model be trained, and what computational or learning advantages might coherence provide?

The first question has a natural dynamical answer. An LLM defines a statistical distribution over reasoning trajectories, from which each inference run samples one realized trajectory. A quantum model instead propagates amplitudes coherently through multiple reasoning histories and combines them by a path integral before the final measurement. Let xx be the input problem, yy a possible final answer, and γ=(z1,…,zT)\gamma = (z_1, \ldots, z_T) a complete sequence of TT intermediate reasoning states generated from xx, with ztz_t denoting the state at step tt. We write γ:x→y\gamma : x \to y when this trajectory contributes to the final answer yy. Schematically,

PLLM(y∣x)∝∑γ:x→ye−ILLM[γ∣x],PQ(y∣x)∝∣∑γ:x→yAQ[γ∣x]∣2.(1)\begin{aligned}P_{\mathrm{LLM}}(y|x)&\propto\sum_{\gamma:x\to y}e^{-I_{\mathrm{LLM}}[\gamma|x]},\\P_{\mathrm{Q}}(y|x)&\propto\left|\sum_{\gamma:x\to y}A_{\mathrm{Q}}[\gamma|x]\right|^{2}.\end{aligned} \tag{1}

Here ILLM[γ∣x]I_{\mathrm{LLM}}[\gamma|x] is the surprisal of a reasoning trajectory, whereas AQ[γ∣x]=∣AQ[γ∣x]∣eiSQ[γ∣x]/ℏA_{\mathrm{Q}}[\gamma|x] = |A_{\mathrm{Q}}[\gamma|x]|e^{iS_{\mathrm{Q}}[\gamma|x]/\hbar} is the corresponding quantum trajectory amplitude. The effective phase action SQS_{\mathrm{Q}} is defined modulo 2πℏ2\pi\hbar, and ℏ\hbar fixes the unit in which the phase is measured and may be set to one. The proportionality signs suppress normalization

and readout-dependent factors. The first expression is a statistical sum: an individual run realizes one trajectory. The second is a path integral over complex amplitudes, in which multiple histories coexist in superposition and can interfere before measurement. Increasing the reasoning horizon enlarges the space of histories in both cases, but only the quantum dynamics can recombine their amplitudes coherently. This distinction suggests that a longer reasoning horizon could enlarge the available reasoning space while interference selects the final answer without first collapsing onto one trajectory. This is not yet an advantage: coherence alone neither selects useful interference nor explains how a model should preserve and exploit a large space of reasoning trajectories. To formulate this problem, we first examine how classical systems convert additional inference time into a search over possible trajectories.

AlphaGo provides a canonical state-based realization of this idea. Here a policy is a parameterized rule that assigns probabilities to available actions, whereas a value network estimates the expected future outcome of a state. AlphaGo combined these learned networks with Monte Carlo tree search (MCTS) [6, 7]. Because Go supplies explicit board states, legal actions, and known transitions, MCTS can repeatedly expand a persistent tree, evaluate possible continuations, and propagate their outcomes backward. This construction separates learning from slow thinking: reinforcement learning improves the policy and value networks that guide the search, whereas MCTS converts additional inference-time computation into deeper and broader exploration without changing the network parameters. Reasoning LLMs pursue the same objective under a different constraint. Their effective state is the complete token history rather than a compact, task-defined state with a known transition graph, making persistent tree construction and state reuse substantially more difficult. Modern reasoning models therefore commonly use trajectory-level reinforcement learning with verifiable rewards (RLVR): complete reasoning trajectories are sampled, a verifier scores their final answers, and sequence probabilities are updated without constructing a persistent tree of explicit intermediate states. DeepSeekMath introduced group relative policy optimization (GRPO), a method that estimates each trajectory's relative advantage from other trajectories sampled for the same problem, without a separately trained value model (often called a critic) [8]. DeepSeek-R1 showed that GRPO-based RLVR can produce long reasoning sequences, self-correction, and strategy changes without labelled intermediate steps [2].

This trajectory-level training is powerful, but it has an intrinsic tendency to improve single-attempt accuracy at the expense of exploratory diversity. Suppose that a model initially possesses two distinct strategies for solving the same problem, each with modest success probability. Early reward fluctuations may favor one strategy. Reinforcement then increases its probability, causing it to be sampled and rewarded still more frequently,

while the competing strategy gradually disappears. The resulting model may achieve high single-attempt accuracy by exploiting the dominant strategy, yet lose the diversity required to explore alternative solutions. Additional test-time computation then produces variations of essentially the same reasoning path rather than opening new ones [9–11]. This phenomenon is known as policy collapse. MCTS controls an analogous loss of exploration through an explicit exploration term: branches with high estimated value are favored, but less-visited branches continue to be sampled. Trajectory-level RLVR has no direct analogue of this node-wise visitation information because it updates a global distribution over complete sequences. Entropy regularization and confidence constraints can slow the collapse [11, 12], but no general mechanism currently combines reliable outcome optimization with sustained diversity of reasoning trajectories. This leaves the training question posed above: can a coherent inference map optimize verified outcomes without erasing the path diversity on which it acts?

Existing quantum AI provides important ingredients for this question, but it does not yet realize slow thinking as test-time scaling of a learned reasoning model. Quantum projective-simulation agents use quantum walks to accelerate deliberation over an episodic-memory network [13–15]; parametrized quantum circuits serve as trainable policies over observed states [16]; and amplitude amplification accelerates inference in trained quantum generative models [17] and reward discovery in episodic reinforcement learning, in theory and in a photonic experiment [18, 19], where the policy being learned remains classical. Closest to our setting, quantum Markov decision processes propagate coherent superpositions of multistep state-action trajectories and amplify those with high returns [20, 21]. These approaches provide important ingredients, but leave unresolved the central question of quantum slow thinking: can a fixed-size learned quantum model turn extra coherent inference computation into greater verified problem-solving capability while avoiding the policy-collapse trade-off of classical trajectory-level RLVR—the concentration of probability on only a few successful reasoning trajectories?

In this Article, we formulate quantum slow thinking as a discrete path integral over reasoning trajectories, realized as coherent dynamics in a trainable quantum reasoning network. We realize this framework with coined quantum walks in two forms [22–24]. The first, QuCoNet, is a table-based quantum extension of the concept-network model (CoNet), an effective network description of multistep reasoning [25, 26]: each problem state carries a directly optimized local unitary that distributes amplitude among the allowed next actions. The second is a neural quantum AI model in which a parameter-sharing network generates this local unitary from the question and the preceding action sequence. In both models, a trainable reasoning circuit Aθ\mathcal{A}_\theta, with θ\theta denoting the model parameters, prepares a coherent ensemble of action sequences. A verifier separates this en-

Figure

… M steps, one fresh path-record register each

Figure

FIG. 1. Coherent inference preserves multiple reasoning trajectories. (a) The table-based quantum concept-network model (QuCoNet) records each move in a fresh auxiliary register, called a which-path register. Measuring these records reduces the reasoning circuit to the corresponding classical Markov chain, whose probabilities are computed exactly; retaining the records coherently prepares all trajectories for Grover amplification in Fig. 4(a) (Supplemental Material). (b),(c) Routing for one training question (training-set size B=32B = 32, question-pool seed 1; start, green circle; target, purple star). Nodes are ordered by distance from the start, and edge width gives the success-probability flow through that edge. Single-attempt training concentrates the classical walker on one route. Grover-based training retains a branching ensemble of paths distinguished by orthogonal which-path records at the interior target. The inverse participation ratio (IPR) is the effective number of paths; panel (c) shows a favorable case, while the accuracy-weighted mean IPR is 1.6 at q=3q = 3, where qq counts reasoning-circuit applications. The panels show path weights, not interference between the displayed paths.

semble into collective accepted and rejected components, and Grover reflections recombine them [27–29]. After a finite coherent evolution, the final success probability peaks when the success probability before interference reaches an analytically determined nonunit value. Training toward this interior target, a preferred probability strictly between zero and one, can improve the final result while retaining multiple reasoning paths, thereby mitigating policy collapse in this setting.

We train and evaluate both models on a 2×32 \times 3 sliding puzzle [Fig. 2], a slow-thinking benchmark introduced in Ref. [26], in which solving a question requires a sequence of interdependent moves. The target configuration is supplied, but the model must discover a valid trajectory that reaches it, so an exact verifier can evaluate every candidate trajectory. Generic question answering would instead require a learned verifier or value model to mark candidate outcomes coherently. The trained models retain branching ensembles of reasoning paths [Fig. 1(b),(c)]. For a matched comparison of inference computation, the quantum and classical methods receive the same number of applications of the reasoning circuit: the classical method uses them to sample independent trajectories, whereas the quantum method uses them for state preparation and Grover interference. At four Grover rounds, QuCoNet and the neural quantum AI model achieve respectively 3.2 and 3.9 times the held-out accuracy of the strongest classical controls, where held-out accuracy is the mean success probability on question-

answer pairs that were not used for training. Over the tested range, the number of question-answer pairs supported by a policy of fixed size, trained separately at each budget, also grows faster with the amplification budget (the number of reasoning-circuit applications) than with matched classical repetition. These results establish a trainable, Grover-based realization of path-integral slow thinking, in which the interior target defined by Grover inference preserves multiple reasoning paths while the amplification improves verified performance.

In the present framework, quantum dynamics is the trainable reasoning process itself. Running more Grover rounds increases the inference computation per question, and a policy of fixed size trained for a larger round budget supports more question-answer pairs. The training objective is the same quantity computed during inference: the success probability after a chosen number of rounds. Grover interference is therefore not appended after training to a policy optimized for direct measurement: the policy is trained to prepare the trajectory distribution on which its later coherent reasoning will act.

The remainder of this Article is organized as follows. Section II develops the statistical-trajectory and path-integral descriptions of classical and quantum reasoning. Section III introduces the sliding-puzzle benchmark and the table-based and neural quantum AI models. Sections IV and V explain RLVR and policy collapse, then construct quantum RLVR through Grover interference and derive its finite-depth training target. Section VI compares the training objectives, held-out performance, path diversity, and scaling with inference depth. Section VII concludes with extensions to learned verifiers and the requirements for physical realization.