Manuscript Offprint
arXiv:2609.05842Do Quantum AIs Dream in Paths? Path-Integral Slow Thinking through Grover Interference
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 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 be the input problem, a possible final answer, and a complete sequence of intermediate reasoning states generated from , with denoting the state at step . We write when this trajectory contributes to the final answer . Schematically,
Here is the surprisal of a reasoning trajectory, whereas is the corresponding quantum trajectory amplitude. The effective phase action is defined modulo , and 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 , with denoting the model parameters, prepares a coherent ensemble of action sequences. A verifier separates this en-

… M steps, one fresh path-record register each

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 , 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 , where 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 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.
Here is the normalized conditional probability of the next reasoning state, and is the complete prefix. Thus is a dimensionless information action, or trajectory surprisal. Equation (2) makes no Markov approximation: each conditional may depend on the complete prefix. A quantum reasoning circuit associates a complex transition amplitude with each conditional, so the path amplitude is , whose phase is written schematically as . Let denote the basis state that records the complete trajectory, and let be the element of a positive operator-valued measure (POVM) associated with answer . The answer probability is then
The terms form a classical mixture of histories; nonzero off-diagonal terms permit interference whenever the measurement coherently recombines the corresponding histories. In the Grover realization studied here, fresh which-path records keep individual trajectories orthogonal. No pairwise interference between these records contributes to the success probability or to the path statistics reported below. Instead, the verifier reflection and the reflection about the prepared state act coherently on the collective accepted and rejected components, as described below.
III. SLIDING-PUZZLE BENCHMARK AND QUANTUM REASONING MODELS
We make the trajectory framework concrete by turning a goal-directed sliding puzzle [26] into a finite configuration network [Fig. 2]. Each allowed arrangement of the five numbered tiles and one hole is a node, and each reversible move is an edge. We restrict the hole to the middle column and define three moves: exchanges the two central cells, whereas and carry the hole around the left or right corners through three elementary tile
slides. Each complete or cycle counts as one action and hence one network edge. Restricting the tile permutation to one parity class produces a 3-regular graph with nodes and available actions at every node (construction in the Supplemental Material).
A question-answer pair is a pair of nodes in this network: is the start configuration and is the target configuration, chosen at graph distance 3–6 from . The target is supplied to the model; the nontrivial output is an ordered trajectory with a prefix that carries the configuration from to . We allow at most actions, and an exact binary verifier accepts a trajectory on its first arrival at within this horizon. The four-action example in Fig. 2 makes the slow-thinking character explicit: the answer can be obtained only through a sequence of interdependent actions, not from any single intermediate state. For each question pool, the first question-answer pairs form the training set and 64 pairs disjoint from the training set form the held-out set; model snapshots are selected using the training set only. Throughout, accuracy denotes the mean final success probability over the specified set of question-answer pairs.
This network abstraction is not specific to sliding puzzles. Many multistep tasks can be represented as navigation through an implicit state network: nodes may denote partial mathematical derivations, partial proofs, intermediate programs, or physical configurations, while edges denote valid algebraic transformations, inference rules, code edits, or control actions. Such networks are generally enormous, history dependent, and not explicitly available to the model. They nevertheless share the ingredients isolated here: a starting condition, branching sequences of actions, delayed verification, and potentially many trajectories to the same outcome. The sliding puzzle is therefore a controlled benchmark of AI reasoning: it retains these structural features while providing exact transitions and an exact verifier, so trajectory exploration, policy collapse, and interference can be measured without ambiguity.
This state-network view defines the concept-network model (CoNet) [Fig. 3]. CoNet was introduced in the Learning-at-Criticality framework as a minimal dynamical model for studying learning transitions and generalization in LLMs [25]. Its original construction coarse-grained the nearly deterministic, low-entropy token sequences into concept nodes, represented the high-entropy choices between them by learnable links, and assumed Markovian dynamics among the resulting nodes. A reasoning episode was then a walk from a question node to an answer node, with reinforcement learning updating the local transition probabilities.
The subsequent work of Ref. [26] applied and extended this framework to explain how RLVR can produce long chains of thought and emergent slow thinking. That analysis associated the onset of slow thinking with an inverse-tree-freezing transition, in which reinforcement stabilizes extended multistep trajectories. It also placed

FIG. 2. The sliding puzzle as a network benchmark for slow thinking. Top: the three reversible graph moves. V swaps the two central cells; L and R move the hole through the left or right corners using three elementary tile slides. Each complete L or R cycle counts as one action and one edge of the configuration graph. Restricting the hole to the middle column and the tile permutation to one parity class gives reachable configurations, each with available actions. Bottom: a question-answer pair specifies start and target nodes in this graph. The target is supplied to the model, whose output is a trajectory connecting the two nodes. The example requires four actions. The verifier accepts on first arrival at the target within the reasoning horizon ; the node numbers label graph configurations.
System 2: a trajectory of hops reaches the answer

FIG. 3. Slow thinking as a walk on a concept network. Nodes denote coarse-grained concepts, later given an operational definition as effective predictive states, and directed edges denote learnable local transitions. A single hop is a fast System-1 operation [5]. Repeatedly applying the same local dynamics constructs a trajectory from a question Q through intermediate states to an answer, realizing System-2 slow thinking as evolution in time. Red arrows highlight one such trajectory.
the concept-state construction on an operational footing through predictive state variables (PSVs). Two token histories belong to the same PSV when they induce in-
distinguishable conditional distributions over future continuations. The resulting equivalence classes are effective states on which the dynamics is Markovian, replacing the earlier coarse-graining assumption with an operational definition. CoNet is therefore not an LLM architecture, but an effective dynamical description of reasoning unfolded in time.
Here we use the finite configuration network above as a concrete CoNet and promote its stochastic routing dynamics to coherent quantum dynamics. This extension provides a minimal quantum AI model for studying quantum RLVR. Its table-based realization, QuCoNet, replaces the local probability vector by a trainable unitary, called the coin operator. Each step of the resulting coined quantum walk alternates this local redistribution of amplitude with a reversible shift to the selected neighboring state, thereby propagating amplitudes coherently over action sequences [30]. The neural quantum AI model instead uses a parameter-sharing network to generate the coin from the question and the preceding action sequence. This removes the need for a separate parameter table at every node and allows the local quantum dynamics to depend on the complete reasoning prefix. The classical CoNet and both quantum models route weight through intermediate reasoning states; they differ in how the trajectory distribution is represented, evolved, and measured.
In either quantum model, each move is recorded in a fresh auxiliary register, called a which-path register
[Fig. 1(a)]. The trainable reasoning circuit then prepares a coherent superposition over all action sequences. Here denotes the initialized circuit registers, and the dependence of on question is implicit. Let project onto the trajectories accepted by the verifier for question . Their total weight before interference is
where is the set of accepted trajectories and is the path weight obtained by measuring the which-path records before amplification. Measuring these records samples the corresponding classical distribution; retaining them coherently allows the accepted and rejected components to be recombined before measurement. In the present study, we evaluate Eq. (4) and its gradients by exact classical enumeration, thereby isolating coherent inference as the quantum resource rather than conflating it with faster training. Full-state propagation in the -dimensional Hilbert space of positions and path records independently verifies the coherent circuit construction (Supplemental Material).
IV. RLVR AND POLICY COLLAPSE
Equation (4) provides the interface between the reasoning model and its training objective. For each training pair , the parameters determine the weights of all reasoning trajectories, the verifier identifies the accepted trajectories, and their total weight gives . Training then differentiates a loss constructed from these success probabilities and updates the same parameters:
This procedure applies to all three trainable policies: the transition weights of classical CoNet, the local coin tables of QuCoNet, and the shared parameters of the neural quantum AI model. In our calculations, every and its gradient are evaluated exactly, so the comparison below differs in the training objective and the subsequent inference dynamics, not in the accuracy of a sampling-based gradient estimate.
One widely used practical realization of RLVR is group relative policy optimization (GRPO) [8]. GRPO samples several complete trajectories for the same question and compares each terminal reward with the mean reward of the group. Trajectories scoring above the group mean are made more probable, while those scoring below it are made less probable. The group therefore supplies the reference value without a separately trained value model, or critic.
In practical GRPO, this learning signal is estimated from sampled groups of trajectories. Because the present benchmark has a finite trajectory space, we can instead compute the complete sum over trajectories and its gradient exactly. Assigning unit reward to an accepted trajectory and zero to a rejected one makes this sum, , the expected reward of a single inference attempt, so training minimizes
The loss decreases whenever any increases and therefore pushes every training question toward unit success. It depends only on the total accepted weight and is indifferent to how that weight is divided among distinct successful trajectories. Consequently, it supplies no counter-pressure when one successful route grows at the expense of alternatives.
This indifference becomes a tendency toward policy collapse when a shared policy with finite capacity must serve many questions. Increasing the probability of an already successful route can improve the reward more easily than maintaining several weakly sampled alternatives. In practical RLVR, sampling adds further positive feedback: routes that succeed early are observed and reinforced more often, whereas competing routes receive fewer updates. Training can therefore obtain high single-attempt accuracy while losing the diversity needed to explore unfamiliar problems. The loss does not mathematically force the policy to place all probability on a single trajectory; rather, it contains no mechanism that protects alternative paths. The collapse observed under exact evaluation in Fig. 4(b) also shows that the effect in our benchmark is not solely a finite-sampling artifact.
Classical test-time repetition improves the probability of finding an answer but does not change this training pressure. If each independent attempt succeeds with probability p, at least one of k attempts succeeds with probability
This success probability is still monotonic in p. Training for repeated sampling therefore continues to favor the largest possible single-attempt success probability and creates no interior point at which the policy should stop concentrating its probability. The same statement applies to adaptive procedures that observe only the final binary verdict of each completed trajectory (Supplemental Material). It does not apply to methods that inspect intermediate states, modify the policy between attempts, or explicitly reward diversity. Within this outcome-only setting, changing a classical policy into a quantum parameterization is insufficient: if the prepared quantum state is measured directly, the measurement samples the same trajectory probabilities and the objective is the same monotonic one. A different training pressure therefore requires a coherent operation that changes the success probability before measurement.
V. QUANTUM RLVR THROUGH GROVER INTERFERENCE
Quantum reinforcement learning has used quantum dynamics in several distinct roles. Quantum projective simulation replaces a stochastic walk through the agent's episodic memory by a quantum walk, making coherence part of the agent's internal deliberation before it selects an action [13–15]. Parametrized quantum circuits instead learn a map from an observed state to an action distribution [16], following earlier quantum reinforcement-learning frameworks [31]. Other algorithms use amplitude estimation or Grover search to accelerate policy evaluation, policy improvement, or inference [17, 32]. Recent quantum Markov decision processes go further by coherently generating multistep state-action trajectories, computing their returns, and amplifying the high-return sector [20, 21]. These works are direct precursors: quantum deliberation, trainable quantum policies, coherent trajectory propagation, and amplitude-amplified selection all existed before the present study.
Our distinction is therefore not the mere presence of a quantum policy or a multistep coherent process. We ask whether a learned model of fixed size can convert additional coherent inference time into increased reasoning capacity, in direct analogy with test-time scaling in LLMs. The policy first prepares a superposition of complete reasoning trajectories, which undergoes verifier-controlled Grover evolution before any outcome is measured. The number of Grover rounds is then an inference-time resource: it changes the computation performed at inference rather than the number of trainable parameters. Crucially, the same finite-depth dynamics also defines the training objective. The model is not optimized for the directly measured base probability and then accelerated by a quantum subroutine; it is optimized for the composite success map that will determine its success at inference. Coherence thus changes both how the model reasons and what trajectory distribution it is trained to represent. This joint dependence of inference and training is what we call quantum slow thinking.
The essential step is to postpone measurement until the verifier has acted coherently. Operationally, one inference run begins when the reasoning circuit prepares a superposition of complete reasoning trajectories. Each Grover round then performs two operations. First, a coherent verifier applies a minus sign to trajectories whose final outcomes are accepted, without revealing which outcome occurred. Second, the sequence , then a phase flip about the initial state , then reflects the state about the prepared superposition. The verifier alone changes no probability; the second reflection converts its phase contrast into amplitude transferred from the rejected sector to the accepted sector. Measurement is performed only after the chosen number of complete rounds.
This sequence is Grover amplitude amplification applied to reasoning [27, 28]. For one question, we suppress the index i and decompose the state prepared by into collective components in the two orthogonal subspaces, or sectors, accepted and rejected by the verifier,
(7)
where and are the normalized collective components, and p is the success probability before interference. The verifier reflection gives the two components opposite phases but does not by itself change their probabilities. Reflection about the prepared state, , converts this phase difference into a redistribution of accepted and rejected weight. Together the two reflections form one Grover round. Which-path records keep individual trajectories orthogonal, while the complete Grover round coherently rotates the collective accepted and rejected components. No pairwise interference between individual path records is required. This is a two-sector coarse graining of the path integral in Eq. (3): all accepted histories form one sector, all rejected histories form the other, and their relative phase becomes observable when the two sectors are coherently recombined.
Geometrically, the evolution remains in the two-dimensional plane spanned by and . If the initial accepted amplitude is , each complete Grover round rotates the state by toward the accepted sector. After rounds, the accepted amplitude is therefore .
These rounds involve applications of the reasoning circuit or its inverse : one application prepares the state, and each round adds one application in each direction. The final success probability is
Unlike , this map is not monotonic. Its first maximum reached from occurs at the nonunit base probability
Below this value, increasing p improves the final result; immediately above it, the Grover rotation overshoots and the gradient reverses. The inference dynamics therefore supplies an interior training target rather than pushing p monotonically toward one.
Training proceeds exactly as in the classical loop above, except that the verifiable reward is evaluated after coherent inference rather than directly after state preparation. This is the sense in which the procedure is quantum RLVR: the correctness criterion is still a terminal verifier, but quantum dynamics transforms the success probability on which the policy is trained. When at most q applications of the reasoning circuit are available, we stop at the Grover round nearest the first maximum and denote the resulting probability by ; the exact rule is given in the Supplemental Material. We then minimize
The gradient passes through to the same table or neural parameters as before. Unlike Eq. (5), however, Eq. (10) trains each question toward . The reasoning policy need only place this finite weight on accepted trajectories; the subsequent coherent evolution amplifies it to unit success. Thus the inference dynamics determines both what the model learns and how the learned trajectory weights are converted into an answer.
A longer coherent evolution can amplify a smaller initial accepted weight: for small , . Reaching constant success consequently requires coherent applications of the reasoning circuit, whereas independent verified sampling requires attempts. Here and below, these are query counts in the small- limit, rather than total hardware costs. This quadratic relation explains why a longer coherent evolution can support a smaller initial success probability. This scaling also marks the scope of the present mechanism: the interior target follows specifically from Grover interference, coherent access to and , and a verifier that can mark accepted trajectories without measurement. Other coherent inference maps may generate different training objectives. Exact classical evaluation in the present experiments isolates this coupling between training and inference; implementing the same loop on quantum hardware additionally requires coherent evaluation of the verifier and a suitable method for estimating gradients.
VI. RESULTS
A. Grover-based training preserves path diversity
We first tested whether training produced the interior success probability predicted by Eq. (9). Under the classical single-attempt objective, the distribution of the pre-amplification success probability became bimodal. Questions that were learned accumulated near , whereas the remaining questions accumulated near [Fig. 4(b)]. The same behavior occurred in CoNet and in both quantum models, showing that quantum parameterization alone did not prevent policy collapse. Training with the Grover objective instead produced a peak near the predicted value for every tested inference depth . Thus the analytic optimum of the Grover dynamics was also a stable target of the training dynamics.
To diagnose the training objective, we used the adaptive rule , which allowed at most circuit applications and stopped at the Grover round nearest the first maximum for each question. It yielded mean training
accuracy above 0.95 at every tested . All held-out comparisons below instead used a fixed-depth protocol that applied the full circuit operations without question-specific stopping. Applying this fixed depth to the training set reduced its accuracy to 0.77 at , because questions with a larger initial reached their maximum earlier and were then rotated past it (Supplemental Material).
The two objectives also produced different ensembles of successful paths. Classical single-attempt training concentrated most of the successful probability on one route [Fig. 1(b)]. Grover-based training retained several routes [Fig. 1(c)]. The accuracy-weighted inverse participation ratio (IPR), which counts the effective number of successful paths, increased from 1.6 at to 5.7 at for (Supplemental Material). This quantity measures path diversity, not pairwise interference between the recorded paths. The control analysis below traces this retention to the interior target itself: a classical loss trained toward the same target preserves at least as much diversity.
B. Performance at matched inference cost
We compared quantum and classical inference using the same number of applications of the reasoning circuit . A quantum inference with Grover rounds used applications: one for state preparation and two per round. The matched classical method used the same applications for independent trajectories. Thus counts forward or inverse uses of the reasoning circuit; verifier evaluations and reflections are reported separately in the Supplemental Material. This comparison isolates the inference mechanism; it does not include the hardware costs of reversible computation, trajectory memory, or fault tolerance.
The performance difference increased with inference depth [Table I]. For and , corresponding to four Grover rounds, table-based QuCoNet reached held-out accuracy 0.407, and the neural quantum AI model reached 0.496. The strongest classical control reached 0.126 at the same inference cost. The two quantum AI models therefore achieved 3.2 and 3.9 times the held-out accuracy of the classical control. At , QuCoNet remained below the classical control; from onward both quantum models were higher.
Each entry in Table I used the same fixed value of for every question and did not use to choose when to stop. The increase was a property of training, rather than only of applying a deeper circuit: when models trained at different values of were evaluated at a common depth, the held-out accuracy still increased with the value of used during training (Supplemental Material).
We next asked whether a longer coherent evolution allows a policy of the same size to support more question-answer pairs. Figure 5 summarizes this capacity comparison; its quantitative interpretation follows after the

FIG. 4. Grover-based training produces an interior success target and preserves accuracy at matched inference cost. (a) The classical single-attempt objective increases monotonically with the pre-amplification success probability . The Grover success probability instead reaches its first maximum at ; arrows show the corresponding training directions. (b) Distributions of for , computed exactly over 32 question-pool seeds. Classical single-attempt training drives both classical and quantum models toward or 1, whereas Grover-based training concentrates them near . Curves are smoothed histograms of the displayed data. (c) Mean training accuracy versus the number of training question-answer pairs at . Grover-based training exceeds the best result among 27 classical controls granted the same three circuit applications, at every tested . Bands span the minimum and maximum values across question-pool seeds; control definitions and plotting details are given in the Supplemental Material.
TABLE I. Held-out accuracy at matched inference cost. The learned systems were trained on question-answer pairs and evaluated with circuit applications. Entries are means over independent replicas; parentheses give replica-to-replica standard deviations in the last digits. The two quantum-model rows use 32 replicas. For the tabular models, replicas vary the question pools while fixing the optimization seed; for the neural model, the question-pool and model-initialization seeds vary together. The classical row reports the best result among 27 classical controls at each and data split, using 32 replicas per control. Each quantum model used the same fixed for every question. The uniform-policy row provides a diversity-preserving reference rather than a learned solution. Complete control definitions and training-set results are given in the Supplemental Material.
| applications | 3 | 5 | 7 | 9 |
|---|---|---|---|---|
| QuCoNet | 0.042(20) | 0.147(34) | 0.272(39) | 0.407(45) |
| neural quantum AI | 0.073(17) | 0.193(25) | 0.340(30) | 0.496(43) |
| best classical | 0.071(23) | 0.091(27) | 0.109(24) | 0.126(25) |
| uniform policy + Grover | 0.077(4) | 0.204(9) | 0.367(15) | 0.544(20) |
control analysis below.
C. Controls isolate joint training and interference
At each value of , the classical reference in Table I was the best result among 27 training and inference controls. These included single-attempt and repeated-sampling objectives, entropy regularization, and controls using the same table-based policy as QuCoNet (Supplemental Material). All of these controls observe only the final verified outcome of complete trajectories, whether estimated from sampled verdicts or computed as its ex-
act expectation (Supplemental Material); classical algorithms that exploit the known transition graph, such as breadth-first search, solve this benchmark exactly and lie outside the access model compared here. At and , Grover-trained QuCoNet reached training accuracy 0.953, compared with 0.729 for the strongest classical control [Fig. 4(c)]. A control applying Grover amplification only after classical training reached 0.919. Its trained probabilities spread around the interior value instead of concentrating on it, so the single round converted them imperfectly.
We also asked whether a classical loss could train the policy directly toward the same numerical target. A capped loss stopped rewarding a question once exceeded , but did not penalize probabilities that moved above the target. After one fixed-depth Grover round, this control reached training accuracy 0.706 (Supplemental Material). A symmetric loss that penalized deviations on both sides of reproduced the held-out accuracies of Grover-based training when it was paired with the same coherent inference. It also preserved at least as much path diversity, with accuracy-weighted IPR 9.3 against 5.8 at on shared question pools (Supplemental Material), so the retained diversity follows from the interior target rather than from the Grover form of the loss. Thus classical optimization could reproduce the numerical target, but the final performance still required the quantum amplification associated with that target. For example, three independent samples at succeed with probability 0.578, whereas one Grover round reaches unit success. Further controls are reported in the Supplemental Material.
The untrained uniform table policy provided a reference for the path diversity removed by training [Table I, last row]. Followed by Grover amplification, it reached

b
FIG. 5. Coherent inference increases the number of question-answer pairs supported by a policy of fixed size trained at each budget. (a) Mean training accuracy versus the number of training question-answer pairs at matched values of . Solid curves show Grover-based training and inference; dashed curves show classical best-of- (the matched protocol using independent trajectories) training and inference with the same 720-parameter table-based policy. The dotted line at 0.95 defines as the largest supported training-set size. Error bars are central 68% bootstrap intervals from 16 shared question pools. Panel (a) shows ; all six odd values from to 13 are used in panel (b). (b) The extracted values and finite-range power-law fits. The coherent result approximately follows , whereas the classical capacity increases more slowly. Complete sampling and fitting procedures are given in the Supplemental Material.
the highest held-out accuracy because it had not specialized to the training questions. However, it performed nearly identically on the training and held-out sets and therefore represented no learned solution. Its success probabilities also lie so deep in the small- tail that no question reaches its Grover maximum within the tested budgets, so this reference cannot bring any designated question set to the near-unit accuracy that trained policies reach at (Supplemental Material). At , the trained quantum models retained 75–91% of this reference accuracy on held-out questions. The strongest matched classical control retained just under a quarter.
These comparisons were insensitive to the stopping convention and persisted across the full range of and on a second random-regular graph family. At , allowing the stopping rule to use changed the held-out values in Table I by less than 0.012. In a size scan, the untrained model's lead over Grover-trained QuCoNet decreased from at to within question-pool variation at , while the trained model's lead over the classical control increased. On the harder distance-7, questions, the trained neural quantum AI model matched the untrained reference (Supplemental Material).
D. Reasoning capacity
The smaller target at larger q reduced the pre-amplification success probability required for each training question. We therefore tested whether policies of this
fixed size, trained separately at each budget , could support more question-answer pairs as that budget increased. For each , we defined as the largest training-set size for which the mean accuracy after adaptive Grover inference () remained above 0.95 [Fig. 5(a)]. This capacity increased from at to at . It approximately followed , and a finite-range fit gave [Fig. 5(b)]. The fitted exponent depends on the threshold and on the inference protocol: at a 0.90 threshold, where the fixed-depth protocol of Table I also yields a complete ladder, the adaptive and fixed-depth exponents are 2.07 and 1.69, a gap confirmed on the four audit pools measured under both protocols (2.04 against 1.69), while the 0.95 criterion is not reliably attainable under fixed depth (Supplemental Material). The scale of these fits verifies the mechanism expectation that capacity tracks , which grows as at large .
For the matched classical best-of- control with the same table-based policy, the corresponding capacity increased only from 11 to 28 question-answer pairs and fitted . The fitted exponents differed by 1.12, with a 95% bootstrap interval of [0.98, 1.31]; the classical protocol involves no stopping choice, and a gap of about one unit persists under the unified fixed-depth comparison at the 0.90 threshold (Supplemental Material). Thus, over the measured range, the coherent amplification budget increased the number of questions supported by a fixed-size policy trained at that budget substantially faster than classical repetition. These are finite-range empirical fits, not asymptotic complexity ex-ponents.
11
VII. CONCLUSION AND OUTLOOK
Slow thinking can be viewed as dynamics over reasoning trajectories. An autoregressive LLM defines a statistical distribution over possible action sequences, but each inference run follows only one sampled sequence. A quantum AI model can instead evolve a coherent superposition of many sequences. In a general quantum readout, different histories can interfere when their amplitudes are recombined; in the Grover realization studied here, this recombination acts on the collective accepted and rejected components. Quantum slow thinking is therefore a discrete path integral over reasoning trajectories: the reasoning horizon sets the space of histories, while interference determines how strongly different answers are represented.
Here we make this idea trainable using Grover amplitude amplification. Classical RLVR rewards sampled trajectories that reach the correct answer. Once one strategy succeeds more often, training repeatedly reinforces it and may gradually suppress competing strategies. With a finite number of Grover rounds, by contrast, the highest final success can occur while the success probability before interference is still below one. Training therefore need not force every problem to be solved almost certainly before the quantum evolution begins. In our models, this altered training pressure preserves multiple successful routes while increasing the probability of obtaining the correct answer. The essential mechanism is not the use of quantum parameters alone: the same quantum models undergo policy collapse when trained with the classical single-attempt objective. It is the joint design of training and quantum interference that mitigates policy collapse. Notably, the gain requires only this coarsest, ensemble-level interference: no phase relation between individual reasoning paths is used anywhere in the construction.
We demonstrate this mechanism on a sliding-puzzle benchmark, in which the target configuration is known but the sequence of moves leading to it must be discovered. Both the table-based QuCoNet and the parameter-sharing neural quantum AI model retain branching ensembles of reasoning paths. At four Grover rounds, corresponding to nine applications of the reasoning circuit, they achieve 3.2 and 3.9 times the held-out accuracy of the strongest matched classical controls, respectively, and retain 75–91% of the held-out accuracy of the untrained diversity-preserving reference, which none of the trained policies surpasses on the held-out questions of this solution-dense benchmark. If q denotes the number of applications of the reasoning circuit, the number of question-answer pairs supported by a policy of fixed size, trained at each budget, grows approximately as under coherent quantum inference over the tested range, compared with under classical repetition. These results establish quantum slow thinking as a trainable inference paradigm: the interior target set by Grover inference preserves exploratory diversity, and the interference converts interior success probabilities into verified performance.
The known-target benchmark allows every completed trajectory to be checked by an exact verifier. In generic question answering, however, the correct answer is not supplied in advance. A learned verifier or value model would then estimate the correctness of candidate answers and coherently convert this estimate into a phase, without measuring or destroying the superposition of reasoning paths. Learning this evaluator jointly with the reasoning policy is a direct route from the present construction toward general quantum reasoning. On the readout side, general non-diagonal measurements and learned path-sensitive verifiers would engage interference between individual reasoning paths, a resource the present two-sector mechanism leaves untouched and a natural place to look for further advantages. A physical realization will additionally require coherent memory, reversible implementation of the learned evaluator, and control of noise and of fault-tolerance costs.
Classical slow thinking converts additional inference time into more numerous or longer sampled trajectories. Quantum slow thinking converts the same resource into longer coherent evolution over a superposition of reasoning histories. Because these histories remain coherent until their amplitudes are recombined, exploration and selection become parts of the same quantum dynamics. On the benchmark studied here, this two-sector interference architecture enables quantum slow thinking to maintain high verified accuracy without collapsing the diversity of reasoning paths, while substantially outperforming matched classical slow-thinking baselines. Quantum-AI architectures with richer interference may yield further advantages, either by preserving still more trajectory diversity or by improving performance along other dimensions; determining what these architectures can achieve remains an open direction for future work.
ACKNOWLEDGMENTS
X.C. and K.C. are supported by the Strategic Priority Research Program of the Chinese Academy of Sciences under Grant No. XDB1680102, the National Key Research and Development Program of China under Grant No. 2024YFA1408604, and the National Natural Science Foundation of China under Grants No. 12474245 and No. 12447103. X.C. is also supported by the China Postdoctoral Science Foundation under Grant No. 2026M793770. X.-H.D. thanks the Shenzhen Science and Technology Program (KQTD20200820113010023) and the Innovation Program for Quantum Science and Technology (2024ZD0300400).
[1] J. Wei, X. Wang, D. Schuurmans, M. Bosma, B. Ichter, F. Xia, E. H. Chi, Q. V. Le, and D. Zhou, Chain-of-thought prompting elicits reasoning in large language models, in Advances in Neural Information Processing Systems, Vol. 35 (2022) pp. 24824–24837.
[2] D. Guo, D. Yang, H. Zhang, et al., DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning, Nature 645, 633 (2025).
[3] C. Snell, J. Lee, K. Xu, and A. Kumar, Scaling LLM test-time compute optimally can be more effective than scaling model parameters, arXiv:2408.03314 (2024), arXiv:2408.03314.
[4] B. Brown, J. Juravsky, R. Ehrlich, R. Clark, Q. V. Le, C. Ré, and A. Mirhoseini, Large language monkeys: Scaling inference compute with repeated sampling, arXiv:2407.21787 (2024), arXiv:2407.21787.
[5] D. Kahneman, Thinking, Fast and Slow (Farrar, Straus and Giroux, New York, 2011).
[6] D. Silver, A. Huang, C. J. Maddison, et al., Mastering the game of Go with deep neural networks and tree search, Nature 529, 484 (2016).
[7] C. B. Browne, E. Powley, D. Whitehouse, et al., A survey of monte carlo tree search methods, IEEE Transactions on Computational Intelligence and AI in Games 4, 1 (2012).
[8] Z. Shao, P. Wang, Q. Zhu, R. Xu, J. Song, X. Bi, H. Zhang, M. Zhang, Y. K. Li, Y. Wu, and D. Guo, DeepSeekMath: Pushing the limits of mathematical reasoning in open language models, arXiv:2402.03300 (2024), arXiv:2402.03300.
[9] Y. Yue, Z. Chen, R. Lu, A. Zhao, Z. Wang, Y. Yue, S. Song, and G. Huang, Does reinforcement learning really incentivize reasoning capacity in LLMs beyond the base model?, in Advances in Neural Information Processing Systems (NeurIPS), Vol. 38 (2025) arXiv:2504.13837.
[10] S. Yuan, J. Chen, J. Zheng, M. Li, L. Feng, D. Wang, T. Xiang, T. Liu, and B. An, Understanding diversity collapse in RLVR via the lens of overtraining, arXiv:2606.15455 (2026), arXiv:2606.15455.
[11] G. Cui, Y. Zhang, J. Chen, L. Yuan, et al., The entropy mechanism of reinforcement learning for reasoning language models, arXiv:2505.22617 (2025), arXiv:2505.22617.
[12] F. Chen, A. Raventós, N. Cheng, S. Ganguli, and S. Druckmann, Rethinking fine-tuning when scaling test-time compute: Limiting confidence improves mathematical reasoning, arXiv:2502.07154 (2025), arXiv:2502.07154.
[13] G. D. Paparo, V. Dunjko, A. Makmal, M. A. Martin-Delgado, and H. J. Briegel, Quantum speedup for active learning agents, Physical Review X 4, 031002 (2014).
[14] A. Katabarwa and N. Karimatari, Quantum projective simulation with Hamiltonian evolution: A study in reinforcement learning, arXiv:1708.00123 (2017), arXiv:1708.00123.
[15] G. Franceschetto and A. Ricou, Demonstration of quantum projective simulation on a single-photon-based quantum computer, Physical Review A 110, 062613 (2024).
[16] S. Jerbi, C. Gyurik, S. Marshall, H. J. Briegel, and V. Dunjko, Parametrized quantum policies for reinforcement learning, in Advances in Neural Information Pro-
cessing Systems, Vol. 34 (2021) arXiv:2103.05577.
[17] J. Zeng, Y. Wu, J.-G. Liu, L. Wang, and J. Hu, Learning and inference on generative adversarial quantum circuits, Physical Review A 99, 052306 (2019).
[18] A. Hamann and S. Wölk, Performance analysis of a hybrid agent for quantum-accessible reinforcement learning, New Journal of Physics 24, 033044 (2022).
[19] V. Saggio, B. E. Asenbeck, A. Hamann, et al., Experimental quantum speed-up in reinforcement learning agents, Nature 591, 229 (2021).
[20] T. H. Su, S. Shresthamali, and M. Kondo, Quantum framework for reinforcement learning: Integrating Markov decision process, quantum arithmetic, and trajectory search, Physical Review A 111, 062421 (2025), arXiv:2412.18208.
[21] T. H. Su, S. Shresthamali, and M. Kondo, Scalable quantum reinforcement learning on NISQ devices with dynamic-circuit qubit reuse and Grover optimization, arXiv:2509.16002 (2025), arXiv:2509.16002.
[22] Y. Aharonov, L. Davidovich, and N. Zagury, Quantum random walks, Physical Review A 48, 1687 (1993).
[23] A. Ambainis, E. Bach, A. Nayak, A. Vishwanath, and J. Watrous, One-dimensional quantum walks, in Proceedings of the 33rd Annual ACM Symposium on Theory of Computing (STOC) (2001) pp. 37–49.
[24] J. Kempe, Quantum random walks: an introductory overview, Contemporary Physics 44, 307 (2003).
[25] X. Cai, S. Hu, T. Wang, Y. Huang, P. Zhang, Y. Deng, and K. Chen, Learning-at-criticality in large language models for quantum field theory and beyond, Chinese Physics Letters 42, 120002 (2025).
[26] S. Hu, X. Cai, Y. Huang, Z. Yao, L. Zhang, P. Zhang, Y. Deng, and K. Chen, Emergent slow thinking in LLMs as inverse tree freezing, arXiv:2509.23629 (2025), arXiv:2509.23629.
[27] L. K. Grover, A fast quantum mechanical algorithm for database search, in Proceedings of the 28th Annual ACM Symposium on Theory of Computing (1996) pp. 212–219.
[28] G. Brassard, P. Høyer, M. Mosca, and A. Tapp, Quantum amplitude amplification and estimation, Contemporary Mathematics 305, 53 (2002).
[29] M. Boyer, G. Brassard, P. Høyer, and A. Tapp, Tight bounds on quantum searching, Fortschritte der Physik 46, 493 (1998).
[30] S. Dernbach, A. Mohseni-Kabir, S. Pal, M. Gepner, and D. Towsley, Quantum walk neural networks with feature-dependent coins, Applied Network Science 4, 76 (2019).
[31] D. Dong, C. Chen, H. Li, and T.-J. Tarn, Quantum reinforcement learning, IEEE Transactions on Systems, Man, and Cybernetics, Part B 38, 1207 (2008).
[32] S. Wiedemann, D. Hein, S. Udluft, and C. B. Mendl, Quantum policy iteration via amplitude estimation and Grover search – towards quantum advantage for reinforcement learning, Transactions on Machine Learning Research (2023), arXiv:2206.04741.
[33] R. M. Wilson, Graph puzzles, homotopy, and the alternating group, Journal of Combinatorial Theory, Series B 16, 86 (1974).
[34] R. J. Williams, Simple statistical gradient-following algorithms for connectionist reinforcement learning, Machine Learning 8, 229 (1992).
[35] Y. Chow, G. Tennenholtz, I. Gur, V. Zhuang, B. Dai, S. Thiagarajan, C. Boutilier, R. Agarwal, A. Kumar, and A. Faust, Inference-aware fine-tuning for best-of-N sampling in large language models, arXiv:2412.15287 (2024), arXiv:2412.15287.
[36] R. J. Bell and P. Dean, Atomic vibrations in vitreous silica, Discussions of the Faraday Society 50, 55 (1970).
[37] F. Wegner, Inverse participation ratio in 2+ε dimensions, Zeitschrift für Physik B 36, 209 (1980).
[38] T. J. Yoder, G. H. Low, and I. L. Chuang, Fixed-point quantum search with an optimal number of queries, Physical Review Letters 113, 210501 (2014).
[39] C. H. Bennett, Logical reversibility of computation, IBM Journal of Research and Development 17, 525 (1973).
[40] D. P. Kingma and J. Ba, Adam: A method for stochastic optimization, in International Conference on Learning Representations (ICLR) (2015) arXiv:1412.6980.
[41] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, and I. Polosukhin, Attention is all you need, in Advances in Neural Information Processing Systems, Vol. 30 (2017) pp. 5998–6008.
Supplemental Material for
“Do Quantum AIs Dream in Paths? Path-Integral Slow Thinking through Grover Interference”
This Supplemental Material derives the trajectory formulation and the Grover-induced interior training target, proves monotonicity for terminal-outcome-only classical sampling, and reports the complete task construction, model and circuit definitions, control families, validation tests, scaling analysis, and reproducibility information underlying the main text.
SI. CLASSICAL TRAJECTORY MEASURES AND COHERENT PATH SUMS
Let denote an input problem and a complete sequence of intermediate reasoning states or actions, where is the trajectory length. Let denote the trainable model parameters. An autoregressive policy assigns
Here is the normalized conditional probability of the next state, is the complete prefix, and is the trajectory surprisal. No Markov assumption is made: every factor may depend on the complete prefix. The probability of an answer is a statistical sum over the trajectories that produce it, and one inference run samples a realized trajectory from this distribution.
A quantum reasoning circuit assigns amplitudes rather than probabilities,
where is a complex conditional transition amplitude, denotes the accumulated effective phase action, and fixes the phase unit and may be set to one; is defined modulo . We denote the corresponding state-preparation circuit by . Let denote the basis state containing the complete trajectory record, and let be the positive measurement operator, or POVM element, associated with outcome . The outcome probability is the double path sum
The diagonal terms define a classical mixture of histories; the off-diagonal terms encode coherent recombination. Equations (S2) and (S3) give the discrete path-integral representation used in the main text.
For a general , off-diagonal matrix elements allow different histories to interfere when the measurement coherently recombines them. In the Grover realizations studied here, fresh which-path registers keep individual action sequences orthogonal. The verifier applies a common phase to the collective accepted sector; by itself, this phase operation changes no probability. The state-preparation reflection, implemented with and , converts the phase contrast between the accepted and rejected components into a coherent rotation of their weights. No pairwise interference between individual path records contributes to the success probability or to the path-resolved observables studied here, nor is such pairwise interference required for amplitude amplification.
SII. TASKS, MODELS, AND TRAINING PROTOCOL
A. Reasoning tasks and data splits
The primary task is goal-directed navigation on the configuration graph of a sliding puzzle. Under single slides the puzzle has reachable configurations and a hole-position-dependent branching number. To obtain a regular graph we restrict the hole to the two middle-column cells and use three self-inverse compound moves: a vertical slide exchanging the hole between the two middle cells, and two three-slide cycles and that carry the hole to the other middle cell around the left or right pair of corners. Slide moves preserve the parity of tile inversions [33], so of the middle-column arrangements exactly the 120 sharing the goal's parity are reachable and form a closed component: nodes of degree , each generator being its own inverse. A question is an ordered pair at shortest-path distance 3-6; a trajectory succeeds on its first arrival at within moves. For each question-pool seed we draw 192 pairs. The first pairs form the training set and the last 64 form the held-out set, shared by all model families and all values of for that seed; the two sets contain no common pair (zero collisions across all question-pool seeds and training-set sizes). Unless noted otherwise, reported tabular points pool 32 question-pool seeds while fixing the optimization seed at 42. A pool-optimizer-seed cross-audit at (Grover , Grover , and best-of-four objectives on pools 1–4, each retrained with three additional optimization seeds) found within-pool optimizer-seed standard deviations of 0.010–0.026 across objectives and splits, comparable to the matched pool-to-pool values of 0.008–0.028 (both ranges exclude the saturated Grover training cells, where both spreads vanish), so the question-pool ensembles are not hiding optimization scatter. Every Grover run reached training accuracy 1.000 under the adaptive rule, and no Grover-trained run of the audit placed any training question at the deterministic boundary () at these budgets, whereas the best-of-four control placed up to two of 32 questions there per pool. The scans away from , the random-regular replication, and the large-size scans use eight question-pool seeds. The large- capacity scan of Sec. SIX uses the same construction with 16 larger pools: 768 pairs per seed, extended to 1280 pairs for , with the first 704 training pairs and the held-out set identical across the two pools so that the two curves stitch together. For , the coherent grid is ; the scan adds , and the scan additionally includes . The matched classical capacity control uses those same 16 768-pair pools, the same ordered training prefixes, and . Here and below, denotes the total number of forward or inverse applications of the reasoning circuit. Thus for Grover rounds. Throughout the Supplemental Material, accuracy denotes the mean final success probability over the specified set of question-answer pairs.
As a topology control, we generate uniform random 3-regular graphs with the same , horizon, distance filter, and question protocol. A size scan uses at . These are not intended as language tasks; they isolate the relation among policy support, a verifiable trajectory predicate, and the inference map.
B. Classical and quantum walkers
The classical table policy, CoNet, has unconstrained real parameters, or logits, . At node it selects edge with probability . The sampled baseline uses REINFORCE [34], binary rewards, and a per-question mean baseline. Exact-gradient controls differentiate through the absorbing Markov dynamic program described in Sec. SIII. A repeated-sampling (best-of-) control, which succeeds if any of independent completed trajectories passes the verifier [35], minimizes
The autoregressive (sequentially conditioned) quantum table policy, QuCoNet, has a coin at every node, where is a real symmetric matrix. It therefore has six real parameters per node and 720 parameters in total. At step , a question-dependent basis channel enters the coin. The length- channel sequence is a deterministic code for , formed by interleaving the base- digits of the start and target node labels and repeating or truncating the pattern to length . At the truncation drops one base-3 digit of each label, so the code is not injective: across the 32 mainline pools, 18 training questions share a channel sequence with another training question of the same pool, and 66 of the 2,048 held-out questions (3.2%) share one with a training question. The node labels themselves carry no information the model can exploit: retraining the Grover objective on the eight mainline pools after two independent uniformly random node relabelings (graph, questions, and answers relabeled together; optimization seed fixed) reproduced the native results: the relabeled-minus-native differences are in training accuracy and held-out (mean sample standard deviation over the 16 runs), both consistent with zero. If denotes the neighbor reached from node through local edge , the training-time transition probability is
Fresh path-record registers make different action histories orthogonal. Hence the position marginal during training is exactly the classical Markov chain of Eq. (S5), even though the same gates define a coherent unitary at inference.

FIG. S1. Effective successful-path number on training (left) and held-out (right) questions. Grover-based training retains multiple effective paths, whereas single-attempt and best-of-two objectives approach the single-path reference (dotted). The inverse participation ratio is weighted by each question's success probability.
The classical single-attempt objective trains the success probability of one completed attempt, whereas the Grover-based objective trains the success after coherent inference. Their losses are and (Sec. SV), respectively. Both use exact gradients.
The two models are matched in graph interface, horizon, training-set size, and optimization protocol, not in raw parameter count (360 stochastic logits versus 720 real coin parameters). This mismatch cannot explain the central comparison: the monotonicity result in Sec. SIV applies to any policy architecture when classical procedures access only the terminal binary verifier outcome of each independent completed sample, while the exact-gradient classical controls remove estimator noise altogether.
SIII. EXACT EVALUATION AND PATH SUPPORT
For a question , depth-first enumeration visits all action sequences of length at most . A branch terminates and contributes its probability when it first reaches ; branches below probability are pruned. An equivalent memory-light computation propagates a position occupancy vector, zeros the target outflow at every step, and accumulates its inflow. Enumeration and this absorbing dynamic program agree to on random checkpoints; the remaining precision is set by the stored float32 parameters, which can overshoot unit probability by up to on saturated questions; all read-out maps clip to before use.
Enumeration also gives individual successful-path probabilities . With , we quantify the effective number of routes [36, 37] by
Batch means are weighted by question success probability, , so dead questions do not inflate or dilute the measure. Figure S1 shows that Grover-based training retains several effective routes, whereas the effective path number under single-attempt and repeated-sampling training approaches one. The figure shows ; the retained ensemble grows with the intended number of circuit applications, with accuracy-weighted on training questions at for (held-out values within 0.4 of these). The weighted means summarize broad per-question distributions: pooled over the eight shared pools at , the training IPR at has median 1.19 with interquartile range [1.00, 1.96] (23% of questions above 2), and at median 5.50 with interquartile range [3.45, 8.35] (92% above 2, maximum 16.2). The inverse participation ratio (IPR) is a path-count diagnostic; it is not evidence for interference among those routes. It is also strictly invariant under the amplification itself: Grover rounds multiply the entire accepted component by a common factor, so the conditional weight of every accepted path, , is exactly unchanged, and the training loss, a function of alone, is constant on surfaces of fixed regardless of how the success weight distributes over routes. Any change in IPR is therefore a property of the optimization dynamics toward the interior target, not of the Grover map, consistent with the two-sided control of Sec. SVII.
CoNet, single-attempt training p=0.993, paths=28, IPR=1.10
QuCoNet, single-attempt training (same architecture) p=1.000, paths=5, IPR=1.04
QuCoNet, Grover-trained (one round amplifies p* (3) to 1) p=0.250, paths=44, IPR=3.56

FIG. S2. Success-probability flow for one training question (B = 32, question-pool seed 1; start, green circle; target, purple star), with nodes ordered left to right by graph distance from the start and each edge's width giving its share of the question's total success probability. Left: the single-attempt-trained CoNet policy collapses onto a single route (p = 0.993, IPR = 1.10). Middle: the QuCoNet policy of identical architecture, trained with the single-attempt objective, collapses in the same way (p = 1.000, IPR = 1.04), so the collapse comes from the objective, not the substrate. Right: the same QuCoNet policy trained for one Grover round holds the question at with a branching ensemble (p = 0.250, IPR = 3.56), colored by orthogonal path-record channel. The inverse participation ratio counts effective routes and is not evidence of interference among them.
Figure S2 makes the same point on a single question by drawing where the trained success probability flows. Single-attempt-trained CoNet and single-attempt-trained QuCoNet both collapse onto one route, so the collapse is a property of the objective rather than the substrate; only Grover-based training holds the question at with a branching ensemble. Panels (b),(c) of the main-text opening figure reproduce the left (classical single-attempt) and right (Grover-trained) panels.
All matched-cost comparisons count applications of the reasoning circuit or its inverse. Preparing the state costs one application, and each Grover round adds and , so rounds use circuit applications. The coherent procedure is therefore compared with independent classical attempts. This cost model excludes the coherent verifier reflections and also assigns no cost to the classical verifier outcomes. The comparison point moves in either direction when these choices vary. If a coherent reflection costs circuit-application units and a classical verification costs units, the budget that funds Grover rounds funds classical attempts. Our convention gives . Charging only the quantum side (, ) raises the classical allowance at from 9 to 13 attempts; recomputing the best-of- envelope of all 27 controls at raises the strongest classical held-out mean from 0.126 to 0.156, so the main-text ratios 3.2 and 3.9 become 2.6 and 3.2 with the ordering unchanged. Charging both sides equally () instead lowers the classical allowance to , fewer than in our comparison. Coherent synthesis of the verifier reflection is an additional physical resource and is discussed as a limitation in Sec. SX.
SIV. CLASSICAL SAMPLE-ACCESS MONOTONICITY
The main-text monotonicity observation includes two assumptions that are essential for its scope. First, the verifier is sound: an accepted completed trajectory is a valid solution. Second, the procedure is success maximizing: once at least one accepted solution has been observed, it retains or returns an accepted solution rather than intentionally converting that event into failure. These assumptions exclude perverse rules such as “reject whenever a success is observed,” which are nonmonotone but useless for solving the task.
Proof. Let . Couple attempt at the two single-attempt success probabilities by drawing the same and declaring the outcome successful at if , and at if . Realize the procedure's private randomness as a single sequence drawn once and shared between the two worlds, and let be the first attempt at which the coupled outcomes differ, that is, the first with . Before the two worlds hold identical verifier histories and private randomness, hence take identical adaptive actions: when to stop, whether to draw again, which verified solution to return. If never occurs before the procedure stops, the two runs coincide and either both succeed or both fail. If it does occur, the run at has just observed a verified success, and a sound, success-maximizing rule must therefore succeed. The run at may still succeed later, but cannot outperform a success. On every realization the run at therefore does at least as well, and its success probability is nondecreasing in .
The statement is deliberately an access theorem, not a theorem that every conceivable classical algorithm is monotone in every internal policy parameter. It covers procedures that act on independent completed samples only through their verifier verdicts; a rule that keys on trajectory content can correlate with the identity of the policy and evade the coupling. It does not cover a procedure with coherent access to amplitudes, a procedure that changes the underlying generator between attempts using extra semantic information, or a manually imposed nonmonotone utility. Tree search may allocate samples much better than naive independent repeated sampling; so long as success is obtained by observing verified classical trajectories, however, increasing the probability of an otherwise identical successful draw cannot hurt.
SV. AMPLIFICATION OBJECTIVE AND STOPPING RULE
Write the prepared state as
where and are the normalized projections onto the verifier-accepted and rejected subspaces. Standard amplitude amplification [27, 28] gives for an odd number of circuit applications. To avoid deliberate overshoot in the training objective, we use
(S8)
Here is the optimal round count of quantum search [29]; for we set , so . The interior maxima
are the base probabilities amplified exactly to unit success. Among these, is the smallest and is the maximum reached from the initialized small- regime. For , smaller secondary peaks in the histograms of Fig. S3 lie near higher-order maxima from which fewer rounds suffice.
Equation (S8) is an objective-level optimal-stop convention; it nominally uses . The main held-out comparison does not rely on it: every held-out accuracy in the main text is reported under a fixed-depth protocol that always uses all circuit applications and never consults . The convention is nearly immaterial there: at the fixed-depth sequence 0.042, 0.147, 0.272, 0.407 for lies within 0.012 of the values 0.043, 0.149, 0.278, 0.418, and the difference stays below 0.026 over the entire training-set-size grid. The held-out per-question probabilities lie almost entirely below the lowest maximum, where the two rules coincide. The convention matters only for the near-unity training-set accuracies at , where the smaller peaks at higher-order maxima overshoot the deepest fixed-depth protocol: the training accuracies at , which are 0.953, 1.000, 1.000, 1.000 for (question-pool standard deviation 0.021 at and below beyond), fall to 0.953, 0.940, 0.846, 0.772 when every question receives all circuit applications. A fixed-depth implementation can recover the training-side values with a fixed-depth training objective, fixed-point amplitude amplification [38], or an amplitude-estimation stopping rule [28]. Training-side accuracies in the main text use the convention of Eq. (S8), which is the objective being optimized; held-out numbers use the fixed-depth protocol throughout.
Training at larger also produces a better held-out policy at every tested inference depth, rather than merely applying deeper inference to the same residual probability. Table S1 evaluates each model trained at for every inference depth every column increases down the rows. The -trained model has the highest mean even at a single round, and the -trained model reaches only 0.111 at nine circuit applications, little more than a quarter of the -trained value.
At , the results across inference depths are summarized in Table I of the main text of the main text; its classical row is the best-performing control at each in the audit of Sec. SVII (Table S3), granted the same verified samples. On this puzzle the one-round tabular system is not yet better on held-out questions; its decisive held-out separation begins at larger . This is why the main text reports the entire sequence rather than presenting a universal one-round held-out advantage.


FIG. S3. Exact training-set distributions of the per-question success probability after Grover-based training for (, 32 question-pool seeds each). Dashed lines mark the predicted interior optimum of Eq. (S9); panel titles give the intended number of circuit applications and its interior optimum. The distribution concentrates at in every panel; smaller peaks at lie near higher-order maxima requiring fewer than circuit applications.
TABLE S1. Cross-depth evaluation on held-out questions at : rows are training objectives and columns are the fixed inference depths, using all circuit applications; the optimal-stop rule raises the diagonal by at most 0.012 and the off-diagonal cells, which overshoot more often, by up to 0.03. The -9 entries at lie within one seed standard deviation of one another.
| trained at | 0.042 | 0.067 | 0.091 | 0.111 |
| trained at | 0.069 | 0.147 | 0.215 | 0.263 |
| trained at | 0.076 | 0.176 | 0.272 | 0.349 |
| trained at | 0.079 | 0.192 | 0.309 | 0.407 |
SVI. COHERENT INFERENCE CIRCUIT
Figure S5 summarizes the construction of this section: the walk that trains as a classical Markov chain is, run coherently, a reasoning circuit whose accepted and rejected components are rotated by the Grover reflections.

FIG. S4. Performance at increasing coherent inference depth. The Grover-trained model is evaluated at its matched number of circuit applications under the rule, which stays within 0.026 of the fixed-depth protocol on held-out questions. The exact best-of-two and capped walkers are evaluated with nine attempts on training (a) and held-out (b) questions across training-set size on the sliding puzzle; the best-performing control in Table S3 at each is slightly stronger. Grover-based objectives at larger improve throughout and the ordering with stays monotone, while these fixed-depth classical references do not separate. The held-out panel (b) is the full- view of the ladder in Table I of the main text. The dedicated 16-pool scan used for the main-text capacity fit is reported in Sec. SIX.

FIG. S5. Classical sampling and coherent inference use the same local walk. Left: CoNet samples one action from at each node and returns one trajectory per attempt. Middle: QuCoNet applies the local coin operator and a reversible shift at each step. The shift moves to the neighboring node while recording the action in a fresh which-path register, giving . Measuring these records reproduces the CoNet trajectory distribution. Right: when the same reasoning circuit is kept coherent, the verifier reflection gives the accepted and rejected components opposite phases. The reflection about the prepared state converts this phase difference into amplitude amplification. After rounds the accepted-sector angle is . No pairwise interference between individual path records is required.
A. State preparation and reversible shift
Let be the position space spanned by the graph nodes and let be the -dimensional record for the action taken at step . The coherent Hilbert space is
It embeds in qubits, counting only the logical position and path-record registers; verifier workspace, comparator, and readout ancillas are additional (Sec. SX). Unused basis states are padded by identity action. Step applies the current node's coin operator to register and then a flip-flop shift, a reversible operation that moves to a neighboring node while recording the traversed action,
TABLE S2. Full-Hilbert-space verification. Maxima are over 32 training and 64 held-out questions. The after-round value in the last row is the mean of over questions, not of the mean.
| Check | value |
|---|---|
| Mean training / after one round | 0.243/0.970 |
Here is the neighboring node reached through local edge , and is the label of the same edge at that neighbor. This reverse-edge label records the action needed to undo the move. The resulting map is a permutation of the joint position-register basis and hence a unitary; a neighbor column by itself need not be a permutation. Eight steps form .
B. First-arrival oracle without measurement
Absorbing classical evaluation stops on first arrival, whereas a unitary circuit cannot stop by measurement. Each final basis state nevertheless contains a complete action record, and the reversible shifts decode it to a unique path. The accepted-subspace projector is therefore diagonal: it accepts a final basis state if and only if its decoded path first reaches the target at some step . A reversible implementation [39] computes this Boolean predicate into an ancilla, applies a phase, and uncomputes it.
The Grover iterate can be written
Although is a high-dimensional entangled superposition of many trajectories, preserves the two-dimensional plane spanned by and . The standard rotation therefore depends only on . Orthogonal which-path records do not obstruct the rotation, and no cancellation among individual accepted paths is needed.
C. Full-state verification
We propagated every training and held-out question for the one-round-trained model at question-pool seed 1 and through the full state space of Eq. (S10). The circuit and enumeration are independent implementations. Table S2 shows single-precision agreement. The first row is the central implementation check: the coherent, never-absorbed circuit has exactly the same accepted-subspace weight as the absorbing-state calculation used for training. In Table S2, is the independently enumerated success probability and for question .
SVII. CLASSICAL CONTROLS AND DIAGNOSTIC QUESTIONS
The controls separate five possible explanations of the observed difference: gradient-estimator noise, model architecture, loss shape, post-training coherent inference, and the favorable uniform prior of the small graph.
Does estimator noise explain the difference? Differentiating Eq. (S4) removes Monte Carlo gradient-estimation noise and implements the inference-aware classical objective [35] directly. It closely reproduces the sampled best-of-two result across . At , the exact-gradient and sampled models reach 0.657 and 0.659, respectively, when granted three attempts, below the one-round system's 0.953. This comparison isolates the objective from the estimator.
What is the strongest terminal-outcome-only baseline? Table S3 audits the 27 controls that access only the final binary verifier outcome. They include single-attempt, best-of- up to , capped, and entropy-regularized objectives on the softmax walker, and the same classical objectives trained on the coin architecture itself, which the which-path structure makes a classical Markov model. All matched-cost comparisons in the main text use the best result from this family at each and data split. At three circuit applications the strongest member on training questions is the QuCoNet-architecture best-of-four control (0.729); on held-out questions the strongest members are the best-of- controls with large (0.071 to 0.126 from three to nine applications). The family exhibits a trade-off
TABLE S3. Control audit at : best-of- accuracy of the 27 classical objectives on training and held-out questions. Results pool 32 question-pool seeds for every family. “QuCoNet arch.” rows train a classical objective using the same local coin operators as QuCoNet. The main text’s “strongest classical control” is the best result in this table at each and data split.
| objective | training | held-out | ||||||
|---|---|---|---|---|---|---|---|---|
| single-attempt, REINFORCE | 0.602 | 0.621 | 0.632 | 0.639 | 0.057 | 0.066 | 0.071 | 0.075 |
| single-attempt, Adam | 0.537 | 0.545 | 0.551 | 0.555 | 0.049 | 0.052 | 0.055 | 0.057 |
| single-attempt, protocol-matched | 0.533 | 0.540 | 0.544 | 0.547 | 0.045 | 0.048 | 0.050 | 0.052 |
| single-attempt, exact gradient | 0.535 | 0.541 | 0.545 | 0.548 | 0.047 | 0.050 | 0.052 | 0.053 |
| best-of-2, sampled | 0.659 | 0.701 | 0.716 | 0.723 | 0.053 | 0.060 | 0.065 | 0.068 |
| best-of-2, exact | 0.657 | 0.699 | 0.714 | 0.720 | 0.054 | 0.060 | 0.065 | 0.068 |
| best-of-4, exact | 0.681 | 0.755 | 0.784 | 0.796 | 0.062 | 0.074 | 0.081 | 0.086 |
| best-of-8, exact | 0.664 | 0.780 | 0.831 | 0.856 | 0.070 | 0.087 | 0.099 | 0.107 |
| best-of-16, exact | 0.601 | 0.750 | 0.829 | 0.873 | 0.071 | 0.091 | 0.105 | 0.116 |
| best-of-32, exact | 0.486 | 0.655 | 0.762 | 0.832 | 0.065 | 0.090 | 0.109 | 0.124 |
| best-of-64, exact | 0.352 | 0.508 | 0.623 | 0.710 | 0.058 | 0.085 | 0.107 | 0.126 |
| capped | 0.607 | 0.736 | 0.799 | 0.831 | 0.070 | 0.090 | 0.104 | 0.114 |
| capped | 0.656 | 0.714 | 0.732 | 0.740 | 0.061 | 0.072 | 0.078 | 0.083 |
| capped | 0.628 | 0.660 | 0.675 | 0.684 | 0.052 | 0.059 | 0.064 | 0.068 |
| single-attempt | 0.558 | 0.566 | 0.570 | 0.572 | 0.055 | 0.065 | 0.072 | 0.078 |
| single-attempt | 0.558 | 0.565 | 0.568 | 0.570 | 0.060 | 0.072 | 0.080 | 0.086 |
| single-attempt | 0.521 | 0.525 | 0.527 | 0.528 | 0.058 | 0.071 | 0.081 | 0.089 |
| best-of-2 | 0.664 | 0.705 | 0.720 | 0.726 | 0.061 | 0.074 | 0.082 | 0.088 |
| best-of-2 | 0.666 | 0.705 | 0.719 | 0.725 | 0.064 | 0.080 | 0.090 | 0.098 |
| best-of-2 | 0.643 | 0.684 | 0.698 | 0.704 | 0.065 | 0.084 | 0.097 | 0.107 |
| QuCoNet arch., single-attempt | 0.592 | 0.598 | 0.600 | 0.602 | 0.018 | 0.021 | 0.023 | 0.024 |
| QuCoNet arch., best-of-2 | 0.699 | 0.733 | 0.745 | 0.750 | 0.014 | 0.017 | 0.019 | 0.021 |
| QuCoNet arch., best-of-4 | 0.729 | 0.802 | 0.829 | 0.840 | 0.017 | 0.021 | 0.024 | 0.027 |
| QuCoNet arch., best-of-8 | 0.707 | 0.820 | 0.871 | 0.896 | 0.017 | 0.022 | 0.025 | 0.028 |
| QuCoNet arch., best-of-16 | 0.648 | 0.796 | 0.871 | 0.912 | 0.017 | 0.023 | 0.028 | 0.031 |
| QuCoNet arch., best-of-32 | 0.564 | 0.735 | 0.835 | 0.894 | 0.019 | 0.027 | 0.033 | 0.038 |
| QuCoNet arch., best-of-64 | 0.437 | 0.610 | 0.728 | 0.809 | 0.023 | 0.034 | 0.044 | 0.052 |
between accuracy and coverage. Objectives that perform well at small concentrate probability on fewer questions and generalize less well, while best-of-64 retains broader coverage but cannot convert it into high accuracy at small . No single control achieves both. The single-attempt, best-of-two, capped, and large- softmax families span the full grid; the entropy-regularized and QuCoNet-architecture families exist at . At each , the reported classical control is the best available member of this family. In Table S3, “single-attempt, Adam” denotes the earlier 120-epoch Adam run, whereas “single-attempt, protocol-matched” uses the same 200-epoch optimization and model-selection schedule as the core Grover-trained tabular runs.
What does the uniform policy diagnose? The untrained uniform walker, evaluated on the same pools, has mean first-arrival probability on both splits (the two pools have the same graph-level mean under uniform routing). On the held-out split, classical sampling raises its accuracy to 0.026, 0.043, 0.060, 0.076 at verified attempts, while fixed-depth amplification reaches 0.077, 0.204, 0.367, 0.544; the corresponding training values differ by at most 0.001. The values equal the fixed-depth values: every uniform success probability in these pools lies so deep in the small- tail that the optimal iteration count exceeds the largest tested . These numbers bound the trained systems from two sides (main-text Table I and its discussion): no trained system matches the uniform walker’s held-out accuracy after coherent inference, and the uniform walker matches no trained system on the training questions. Paired by question pool at , the held-out difference is (95% confidence, eight pools) for Grover-trained QuCoNet minus the uniform reference, and (32 pools) against the strongest classical control. This uniform reference is also specific to a small, solution-dense instance. Under uniform routing the mean first-arrival probability falls with graph size (0.028, 0.019, 0.016 on the random-regular held-out pools at ,
240, 480) and with question difficulty (0.102 to 0.0044 across graph distance 3 to 7 on the puzzle, the last at horizon ), and the amplified value falls with it: the uniform walker's one-round held-out lead over the natively trained walker on the random-regular family shrinks from at ( against ) through at to statistical parity at ( against ), while the trained walker's lead over the classical control grows from to over the same range, and at graph distance 7 the neural quantum AI model already matches the uniform value ( against 0.198 after three rounds). Nothing here depends on the training set: the uniform walker's accuracy after coherent inference comes from the uniform prior itself, a consequence of the small, solution-dense benchmark rather than a strategy available on hard instances.
Does coherent inference rescue a classically trained policy? The decisive test of the objective grants every classically trained policy the quantum inference circuit. The capped walker (), evaluated with one fixed-depth round, reaches 0.706 on training questions against the Grover-trained 0.953: only 45% of its trained probability lies within [0.2, 0.3], while 41% has drifted above 0.3, where the rotation overshoots (its own design point; two fixed-depth rounds reduce it to 0.221). The neural capped policy fails the same way, drifting to a mean trained where one round returns 0.46. The strongest hybrid of any control is the QuCoNet-architecture best-of-32 walker plus one fixed-depth round, at 0.919, still below the Grover-trained value. On held-out questions, controls trained with large- objectives perform well after coherent inference at shallow depth (best-of-64 plus fixed-depth inference: 0.132, 0.205, 0.255, 0.299 for ) but fall behind the models trained at larger from (0.272, 0.407). The one-sided classical objectives neither constrain probabilities that drift above the target nor sustain the gain at greater inference depth. The Grover-based objective supplies a gradient on both sides of the optimum. A two-sided classical objective with the same property is examined below.
Does the coin architecture alone prevent collapse? The same coins, trained on , undergo the same boundary concentration as CoNet. For the question of the main-text opening figure, this single-attempt-trained coin policy has and IPR = 1.04 [Fig. S2], against and IPR = 3.56 under the one-round loss. Thus unitarity of the parameter matrix is insufficient; coherent inference must define the training target.
Can generic diversity regularization preserve probability for later coherent inference? We add the Shannon-entropy bonus , where , to the single-attempt and best-of-two objectives for at , with 32 question-pool seeds at and eight at . The bonus either changes matched-cost accuracy by only a few points or degrades it when uniform-routing pressure overwhelms reward. It keeps some small- held-out mass alive but does not supply the question-wise stationary point of Eq. (S9).
Can classical training import the interior target? The exact classical loss with stops rewarding a question once exceeds the cap . At it is the strongest capped control, and the stronger of the two controls tracked across training-set size in Fig. S4. It demonstrates that classical training can use a target supplied from outside the main-text monotonicity statement. But sampling raises a base probability only to , while one Grover round raises the interior optimum to unity. The control is trained with exact gradients and therefore has no Monte Carlo gradient-estimation noise; the remaining cost difference occurs at inference. For its per-question probabilities , let be the smallest number of independent verified attempts whose mean best-of- accuracy matches the Grover-trained model. At , to match the 0.953 training accuracy after amplification ( across the at-capacity sizes and 32; at smaller both models saturate and at larger the lower coherent training accuracy is cheaper to match); this tail-sensitive catch-up cost arises from the small- portion of the learned distribution and is not implied by alone. Its one-sided objective also has zero gradient for questions that drift above .
To isolate that asymmetry, we also test the symmetric loss with . This removes the one-sidedness and converges near the target: on the QuCoNet architecture the trained probabilities lie within (fraction 0.91 at and 1.00 at the higher-order maxima), and classical inference remains limited to the best-of- success of a distribution at . Trained on the same coin architecture as the quantum model, this control tracks the Grover-trained held-out sequence (0.039, 0.157, 0.303, 0.479 against 0.042, 0.147, 0.272, 0.407 under fixed-depth inference), matching within seed spread at and sitting slightly above it at the larger (paired by pool, the two-sided-minus-native held-out difference is , , , across ), where the Grover-based loss leaves probability at higher-order maxima that the deepest fixed-depth protocol over-rotates; its held-out mean stays at the uniform value. The same holds for path diversity: over the eight shared question pools, the accuracy-weighted training IPR of this control is 1.62, 3.25, 6.14, 9.31 at , against 1.62, 2.83, 4.05, 5.79 for native Grover training, so a classical loss aimed at the same interior target retains at least as many successful routes (the excess at large mirrors the accuracy excess above: the two-sided loss pins every question at the first maximum, whereas the native loss leaves some weight at higher-order maxima). The held-out sequence, and the retained path diversity, are therefore set by the interior target, not by the particular loss used to reach it. Its fixed-depth training accuracy after coherent inference is 0.952, 1.000, 1.000, 1.000, without the higher-order peaks that reduce the native loss under the deepest fixed-depth protocol (the rule absorbs that difference). On the softmax walker the same loss also lifts held-out mean ( at ) and with it the fixed-depth sequence (0.127, 0.229, 0.375, 0.503), but this is a transfer effect of the shared per-node softmax rows on the small dense puzzle graph, not of the loss: it is absent on the coin architecture, and on the random-regular family the same control gains little and falls below the natively trained walker at every size. Both versions are oracle-assisted diagnostics rather than deployed procedures: the constant is supplied by the quantum analysis rather than derived from the inference dynamics the policy will use. The loss itself is classically estimable: the product of two independent verifier verdicts, with , has expectation , and pairing it with the score function yields an unbiased gradient estimator, whose sample complexity we do not evaluate here. By contrast, the Grover target is derived from the deployed circuit: under the fixed-depth protocol, the measured binary outcome is an unbiased sample of with no per-question input; realizing the adaptive additionally requires the stopping choice , which itself uses an estimate of (Sec. SV). The present experiments nevertheless train with exact classically computed probabilities and gradients; a hardware implementation would require a corresponding stochastic-gradient estimator.
Optimization and selection. Tabular runs are evaluated every epoch and neural runs every ten epochs; neural results report the final epoch. Archived tabular checkpoints are selected by the training value of the loss being optimized for the classical best-of-, capped, and two-sided objectives, and by the highest raw single-attempt rate otherwise. For single-attempt objectives the two rules coincide. For the Grover-based objective they do not, because the raw rate is not monotone in the objective. At moderate and large training-set sizes, the interior optimum and IPR form a long plateau after convergence and final-versus-best selection is immaterial, but at the smallest () the raw rate peaks during an early transient that overshoots the interior optimum, so the archived checkpoint there predates convergence. For this reason the capacity scan of Sec. SIX reads every run history at its converged final epoch; reading the archived best-rate epoch instead depresses the low- plateau into a spurious dip and shifts the capacity thresholds by up to four percent. A protocol-identical 200-epoch classical rerun reproduces the archived 120-epoch baseline (single-attempt 0.257 versus 0.252 at ). Some question pools at the largest converge to a deterministic boundary solution rather than the lowest interior maximum. We report all pools; eliminating these optimization failures is not part of the present claim.
The core exact-gradient tabular runs use Adam [40] for 200 epochs with learning rate 0.05, softmax logits, and seed 42 for each archived configuration; reported tabular ensembles vary the question-pool seed, not this optimization seed. The neural coin runs use 200 epochs, learning rate 0.003, gradient-norm clipping at 1.0, evaluation every ten epochs, and the architecture stated below. These settings, including objective and seed, are stored with each run in the archived JSON configuration or history file. The separate model-width sweep uses at most 300 epochs with early stopping after a minimum of 60 epochs.
SVIII. A PARAMETER-SHARING NEURAL QUANTUM AI MODEL
The table-based model above uses one local unitary coin operator per node, parameterized by the six independent entries of a real symmetric generator and hence 720 real parameters in total. A row is updated by every question whose paths visit that node, so questions interact where their reachable prefixes overlap. We repeat the core measurements with the table replaced by a single neural network. A two-layer, four-head prefix-conditioned transformer [41] ( and 29,190 parameters, with denoting the hidden width) reads the question, the target, and the move history of a branch and emits the six independent entries of the same coin. The circuit still uses one fresh record register per step. Every question now shares every parameter, and the coin conditions on the whole path prefix rather than the current node. The walk stays a record-controlled unitary, block-diagonal in the which-path basis, so the classical-Markov training structure and the objective theory of Secs. SV-SVI carry over unchanged. Per-question success is again evaluated exactly, here by a level-synchronous sweep of the prefix tree, validated against independent enumeration to . Unless noted, on the puzzle and results use 32 replicas; the same replica index selects both the question pool and the neural-network initialization. All neural runs, Grover-based and classical alike, use one implementation with identical architecture, optimizer, learning rate, epoch count, and checkpoint selection; the training loss is the only changed setting, so the classical controls are not under-tuned relative to the Grover-trained runs.
The interior optimum is set by the objective, not the parameterization. Table S4 collects the main matrix, and Fig. S6(a) shows the trained distributions. The Grover-based objective places the neural policy near the predicted interior optimum (: mean initial success , every question in the interior band , ), whereas the same network under the single-attempt and best-of-two objectives concentrates at the boundary (interior fraction 0.05 and 0.23). At larger , the neural means lie systematically above the optima (0.108, 0.066, 0.045 against 0.095, 0.050, 0.030 for ), an offset of the shared parameterization that costs little accuracy after coherent inference. For the neural policy at , the trained probabilities are therefore near, rather than exactly at, the analytic optimum. Boundary concentration is a property of the classical target, reproduced on a
TABLE S4. Parameter-sharing neural quantum AI model at (32 replicas), meanstandard deviation. “Interior” is the fraction of questions with . For the Grover-based rows, “held-out” is accuracy at the matched under the fixed-depth protocol, using all circuit applications; the optimal-stop rule adds at most 0.003, and the ratio is this held-out accuracy divided by the strongest same-architecture classical control’s best-of- value; for the control rows, “held-out” is single-attempt accuracy (their best-of- values appear in the text).
| objective | initial success | interior | held-out | ratio |
|---|---|---|---|---|
| Grover-based, | 1.00 | |||
| Grover-based, | 1.00 | |||
| Grover-based, | 1.00 | |||
| Grover-based, | 1.00 | |||
| single-attempt | 0.05 | 0.008 | — | |
| best-of-two | 0.23 | 0.008 | — | |
| capped | 1.00 | 0.009 | — |


FIG. S6. Grover-based training with a parameter-sharing neural quantum AI model (two-layer prefix-conditioned transformer, 29,190 shared parameters; 32 replicas unless noted). (a) At , Grover-based training retains interior per-question probabilities near the predicted optima, whereas the single-attempt objective concentrates them near the boundaries. (b) At fixed model size, the training plateau persists through the tested range of while held-out accuracy increases; the dotted line marks the 720-parameter table's capacity threshold at the 0.90 level of the separate four-pool audit (; the sixteen-pool 0.95 definition of the main text gives ). (c) At matched , the neural quantum AI model exceeds both the per-node table and the strongest same-architecture classical control.
policy whose memorization structure, in which all parameters are shared, is the opposite of the table's.
Parameter sharing retains held-out performance; importing a target does not import coherent inference. On held-out questions the neural policy trained at already exceeds the strongest matched-cost control of its own architecture ( at three circuit applications) [Fig. S6(c)], where the per-node table does not exceed the matched classical control at . Against the strongest control of any parameterization (the large- softmax family of Table S3), the neural sequence is 1.0, 2.1, 2.9, 3.6 times across : indistinguishable from parity at ( versus ) and ahead from . Among the neural controls themselves, the single-attempt and best-of-two policies reach 0.022 and 0.019 at best-of-three and stay below the capped family at every , so the capped control is the strongest same-architecture comparator throughout. It keeps essentially every question interior (fraction 0.998), but its mean trained probability is 0.512, not the supplied optimum ; the one-sided cap therefore demonstrates interior retention rather than faithful target placement. The symmetric two-sided control above provides the direct target-import diagnostic. Granted best-of- at each , the capped controls ( and , which agree to 0.002) run 0.024, 0.038, 0.049, 0.060 across , while the Grover-trained policy runs 0.073, 0.193, 0.340, 0.496: a held-out lead that widens monotonically from to as increases [Fig. S6(c)], and that beats the per-node table's corresponding values (0.042, 0.147, 0.272, 0.407) at every . Granting the capped network quantum inference instead, one fixed-depth round raises its held-out accuracy to 0.063, close to the Grover-trained 0.073 at . In these terminal-outcome-only sampling controls, supplying the target does not supply coherent amplification, and the gap grows with difficulty and size: at graph distance 7 (horizon , eight replicas) the policy trained at reaches 0.187 held-out, the strongest same-architecture control, and on random 3-regular graphs at the policy trained at reaches ; the comparators for these two claims are retrained on the harder task and

FIG. S7. Problem-size control on random 3-regular graphs at . The one-round system (plotted under the optimal-stop rule; the fixed-depth values quoted in the text are up to 0.006 lower) is compared with the exact best-of-two-trained classical model at three and nine samples. The training-set difference narrows as falls; the held-out matched-cost difference persists.
the larger graphs, respectively.
Capacity as a function of model size. Sweeping at fixed 29k parameters, the Grover-training plateau remains above the capacity threshold throughout the tested range [Fig. S6(b)]: at (the last two are four replicas), still 0.976 at of the 720-parameter table under the common 0.95 definition. The curve decreases gradually rather than showing the table model's abrupt loss of capacity, and held-out accuracy ends higher at the largest tested () after a shallow dip through , a gain the per-node table cannot achieve. For the width sweep we use a separate 0.9 threshold. Its capacity threshold moves outward with parameter count: at (5.9k), while holds above 0.9 through the largest pool tested (, so the threshold is right-censored: it lies beyond the largest training-set size tested). This supports a qualitative outward shift of capacity with model size, though it does not fit a size exponent.
The compiled neural policy remains unitary. The full-Hilbert-space verification of Sec. SVI repeats on compiled, prefix-controlled coins from trained transformer instances: the amplitude state over all move sequences reproduces the absorbed prefix-tree probability to (float32 network into a float64 circuit), and one Grover round through the reflection identity matches to on and Grover-trained instances alike.
The neural-coin held-out accuracies are small, so the ratios carry wide relative uncertainty and the points use four replicas; the classical controls are trained at and reused as the matched-cost comparator. The qualitative ordering (an interior optimum, collapse under one-sided classical objectives, and a widening gap between coherent and classical inference with difficulty and size) is stable across all replicas.
SIX. REPLICATION AND SCALING
The random-regular family repeats three qualitative facts: single-attempt training concentrates the unitary model at the boundary; one-round Grover-based training retains an interior distribution; and training at larger improves held-out accuracy after coherent inference. Across the full grid, the system achieves 1.7–4.6 times the best classical control at nine attempts in Table S3 on the puzzle, and 2.6–5.4 times on the random-regular family, whose control set lacks the large- best-of- sequence. On random-regular graphs, the held-out matched-cost lead remains at [Fig. S7]. The training-set gap narrows with at fixed , as expected when capacity pressure falls: the converged coherent system holds training accuracy at or near unity at every size while the classical control rises. The held-out ratio grows from approximately 1.8 to 3.1.
Two scaling relations clarify the mechanism. First, a large- scan on the puzzle (the 16 extended pools of Sec. SII) uses a common 0.95 cutoff on mean training accuracy after inference to define the capacity threshold . Specifically, is the first downward crossing of the 16-pool mean curve, interpolated linearly in ; every run history is read at its final epoch (Sec. SVII). A small fraction of cells still drifts at the training horizon (the mean accuracy over the final quarter moves by more than in 9% of coherent and 12% of classical cells); reading a last-quarter average instead of the final epoch moves both fitted exponents by less than 0.005, so the convention is immaterial at the reported precision. At , all 16 individual coherent curves reach the 0.95 plateau. Each bootstrap draw resamples the 16 question pools jointly for the coherent and classical scans, preserving the within-pool comparison. All 20,000 draws resolve every capacity threshold. The measured capacity thresholds for q = 3, 5, 7, 9, 11, 13 are
The log-log fit against gives (), with central bootstrap intervals [1.729, 1.755] at 68% and [1.718, 1.771] at 95%. A fit against has exponent 0.90, and ranges from 5.1 to 8.2. The ordinary-least-squares slope error is 0.14, reflecting residual departure from a perfect power law that resampling the question pools does not measure. The exponent also inherits the capacity-threshold definition: at threshold 0.90 it is 2.067, with a 95% bootstrap interval [2.034, 2.098], while at 0.85 the largest- threshold lies beyond the present range and is therefore right-censored. A separate four-pool audit at the 0.90 threshold found that fixed-depth inference without adaptive stopping moves the thresholds to 40, 68, 125, 203, 317, 467, still monotone in , with fitted exponent 1.69; the adaptive rule on the same four pools gives 2.04, consistent with the 16-pool value above. The protocol comparison is threshold-dependent at the edges: at the 0.95 level the fixed-depth mean hovers at the criterion itself and does not produce a well-defined ladder (the deepest protocol rotates early-maximum questions past their peaks, Sec. SV), while at a 0.70 level the two protocols nearly coincide over the range they resolve (1.66 against 1.71 across ; the larger- thresholds lie beyond the tested range). Classical best-of- success involves no stopping choice, so the coherent-classical exponent difference of about one unit persists when both sides are read under the unified fixed-depth protocol. A lower target asks less success weight of each shared routing bottleneck, allowing a fixed policy to hold more questions before frustration.
For the matched classical scan, we train the same 720-parameter coin architecture with the exact best-of- loss in Eq. (S4), for , and evaluate each policy at the for which it was trained. All settings other than the outer response function are shared with the coherent scan. A position-Markov dynamic program computes the same per-question probabilities as the full autoregressive state; a direct check finds maximum probability error , relative gradient error below , and probability disagreement after a matched 20-epoch Adam trajectory. At the same 0.95 threshold, the classical capacity thresholds are
Their finite-range fit is , with central bootstrap intervals [0.536, 0.699] at 68% and [0.436, 0.765] at 95%. At threshold 0.90 the exponent is 0.618, with 95% interval [0.573, 0.712]. Thus the classical plateau is real but confined to small training sets; a scan beginning at without matched values of does not resolve it reliably. At matched , the ratio grows from 2.91 to 15.89 across the tested range. The fitted exponents differ by 1.116 (95% bootstrap interval [0.979, 1.306]) under joint resampling of the same question pools. This is a controlled finite-task separation, not an asymptotic query-complexity statement.
Second, for a fixed distribution of base probabilities, classical attempts need samples to reach constant success while amplitude amplification with a phase-matched final reflection needs applications [28]. The per-question query-count diagnostic in Fig. S8 recovers fitted slopes 1.31 and 0.63 against 1/p on the finite task. The classical value exceeds unity because the exact requirement , where is the desired final success probability (here ), is only asymptotically linear in 1/p. Ignoring the integer ceiling to display the local continuum slope, one obtains , which rises from 1.05 at p = 0.1 to 1.44 at p = 0.5, so a single power law fitted across the resolved window lands above one, while restricting the fit to the small-p tail returns an exponent within a few percent of unity. Counting reasoning-circuit applications directly as q, the quantum fit remains closer to its 1/2 asymptote; integer rounding over the resolved window raises the finite-range slope to 0.63. These are finite-range diagnostics of the standard asymptotic maps, not a standalone end-to-end hardware speedup. Only this query-complexity diagnostic permits a phase-matched final reflection; all policy accuracies and training objectives above use the fixed-phase map of Eq. (S8).
SX. SCOPE, PHYSICAL RESOURCES, AND REPRODUCIBILITY
Computational boundary. Training, sweeps, and the full coherent circuit are evaluated by exact classical calculation. This is useful for testing the mechanism because it removes sampling error and exposes the entire policy, but does not establish a quantum hardware advantage. A physical realization must pay for reversible state preparation, , the first-arrival oracle, ancilla cleanup, and error correction. For the neural experiment, our full-state check validates the compiled prefix-controlled unitary; it does not provide an efficient reversible implementation of the transformer. Such an implementation, or the cost of compiling its prefix-dependent coins, is an additional resource not included in the query counts.
Coherence and memory. The circuit requires coherence across the full horizon and fresh which-path storage. Its logical record cost is qubits; the present experiment embeds the complete state in 23 qubits before oracle

FIG. S8. Finite-range check of the standard query scaling. Here one query is one application of the reasoning circuit or its inverse. The queries required to reach per-question success 0.9 are plotted against inverse base probability. Classical verified sampling approaches linear growth in , whereas phase-matched amplitude amplification follows the square-root scale. The final reflection uses a phase adjustment chosen to reach the target success without overshooting it by an integer Grover round.
ancillas. Noise can turn the accepted/rejected rotation into classical mixing and erase the benefit. No robustness threshold is inferred from the noiseless data.
Reasoning scope. The task is Markovian, fixed horizon, and equipped with an exact binary verifier. The work does not yet model a language policy with growing context, tool calls, self-modification, or a verifier that is probabilistic or learned. Which-path orthogonality means that the present system does not require direct pairwise interference among semantic paths; instead, the Grover reflection recombines their amplitudes through the collective accepted and rejected sectors. It establishes the smaller but operationally precise primitive needed before richer models: coherent access to the distribution of complete reasoning trajectories.
Reproduction. The training drivers, sweep launchers, analysis scripts, and distilled probability caches are collected in the paper's code repository; the principal analysis scripts (under docs/discussion/scripts/ and notes/scripts/) include:
-
circuit_verify.py for Table S2;
-
grover_sweep_analysis.py for the interior optima and the grids at increasing ;
-
grover_ipr_analysis.py for path support;
-
blind_schedule_analysis.py for the fixed-depth evaluation, the capacity-threshold bootstrap and sensitivity, and the larger- IPR values;
-
control_audit_analysis.py for the control audit (Table S3), the untrained baseline, the cross-depth matrix (Table S1), and the fixed-depth capacity thresholds;
-
classical_capacity_controlled.py, capacity_scaleup_analysis.py, and plot_capacity_knee.py for the matched 16-pool capacity scan, bootstrap uncertainty from the shared question pools, threshold sensitivity, and the main-text comparison;
-
grover_sizescan_analysis.py for Fig. S7;
-
twosided_target_control.py and twosided_coin_control.py for the two-sided imported-target controls, twosided_ipr_wave.py for their path-diversity comparison, and untrained_scaling.py for the untrained walker's size and difficulty dependence;
-
fixed_depth_capacity_check.py for the adaptive-versus-fixed-depth capacity protocol comparison, and cost_model_sensitivity.py for the verification-cost sensitivity;
-
robustness_audits.py for the pool-optimizer-seed cross-audit and the node-relabeling invariance test (rela-beled pools built by relabel_qa.py);
-
amplification_scaling.py and grover_exchange_rate.py for query scaling.
The tracked file docs/discussion/scripts/_sweep_out/capacity_scaleup_16.json stores all pool-level capacity curves and the bootstrap summaries obtained by jointly resampling the 16 pools. The other caches store the exact success probability of every question under the reported trained models, so the tables and most figures can be re-derived from the code repository alone. Raw checkpoints and run records are not included there and are required to regenerate the training sweeps. All figures included in the manuscript are tracked artifacts so that the LaTeX package compiles from a clean checkout.