arXiv:2608.23002quant-phAug 2026

Manuscript Offprint

arXiv:2608.23002

Exact and Optimal Recursive Quantum Search via Hilbert-Space Decomposition

John Burke, Ciaran McGoldrick

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Current approaches to quantum search fail to deeply exploit extant structure in the underlying Hilbert space. Decomposing the search by this structure empowers new strategies and formulations for quantum search and algorithm design. We present a new decomposition technique acting directly on this structure by recursively decomposing the Hilbert space and constructing the search operator from reflections over the resulting partition. When initial and target states factorise over this partition, dynamics reduce to a single rotation in a two-dimensional plane at each level, with angle given by a scalar recurrence. This recurrence avoids error accumulation from separately bounding success probabilities at each level, yielding an exact state description enabling treatment of the recursion as a whole. We obtain the target state deterministically and derive oracle and non-oracle costs independently of the search setting. For unstructured search, our approach attains the simultaneously optimal Θ(N)\Theta(\sqrt{N}) oracle and non-oracle gate counts. For spatial search on dd-dimension grids, it recovers the O(N)O(\sqrt{N}) time for d≥3d \geq 3 and the O(N(log⁡N)3/2)O\left(\sqrt{N}(\log N)^{3/2}\right) bound of Aaronson and Ambainis for d=2d = 2. The exact description of the recursion extends over our decomposition to new subdivision structures and provides a new approach for applying and analysing recursion in quantum algorithm design.

1 Introduction

Unstructured search is one of the few problems for which quantum computers have a provable advantage over their classical counterparts. Grover's algorithm [16] finds a marked item among N candidates using Θ(N)\Theta(\sqrt{N}) oracle calls, a quadratic improvement over classical exhaustive search that is optimal in query complexity [7, 30]. Amplitude amplification [9] generalises this mechanism, allowing the success probability of any subroutine preparing a target to be amplified with a quadratic improvement over classical sampling. While Grover's algorithm and amplitude amplification act as a single global process, dividing the task into smaller sub-searches can yield advantages beyond the standard approaches. Previous work has shown that these decompositions of quantum search can reduce implementation costs [4, 31, 10], enable distributed implementations [25, 33], and improve quantum search when access to the search space is restricted by its geometry [1]. In this work, we treat the decomposition of quantum search as a decomposition of the underlying Hilbert space itself, and show how a recursive search algorithm can be constructed over this decomposition. This separates the underlying recursive construction from any particular search setting, while allowing its instantiation to be adapted to the structure and constraints of the setting in which it is applied.

Given a partition of the underlying Hilbert space, we build the search algorithm recursively from nested reflection operators rather than from nested amplitude-amplification subroutines. These reflections generate rotations on progressively larger subspaces of the partition, with each level tracking the displacement of the component of the initial state within that subspace. When the initial and target states factorise over a common partition, the non-trivial dynamics at each level of recursion reduce to a single two-dimensional invariant plane whose angle is determined by a scalar recurrence. The recurrence propagates the rotation exactly at every level, giving an exact description of the state throughout the recursion. This avoids the accumulation of error that arises when the success probability is bounded separately at each stage, allowing the recursion to be treated as a whole. This description can then be used to instantiate the algorithm in different search settings, which we demonstrate for unstructured and spatial search. For unstructured search, the construction attains the simultaneously optimal Θ(N)\Theta(\sqrt{N}) oracle and non-oracle gate counts of Briński et al. [10]. For spatial search on the dd-dimensional grid, it recovers the O(N)O(\sqrt{N}) running time of Aaronson and Ambainis for d≥3d \geq 3 and their O(N(log⁡N)3/2)O(\sqrt{N}(\log N)^{3/2}) bound for d=2d = 2 [1]. The approach also highlights greater flexibility in how recursion can be structured within quantum search. In particular, the optimal costs described above can be attained with a fixed rate of subdivision at every level, whereas the prior analyses for unstructured search and for d≥3d \geq 3-dimensional grids are restricted to subdivision rates that increase with recursion depth. More broadly, the exact recursive description makes it possible to analyse recursive quantum search as a whole, rather than through separate bounds at each level, and provides a versatile method for designing recursive quantum algorithms.

An overview of the construction. Suppose H=Hm⊗⋯⊗H1\mathcal{H} = \mathcal{H}_m \otimes \cdots \otimes \mathcal{H}_1 and that the initial state ∣ψ⟩|\psi\rangle and target ∣x⟩|x\rangle are product states over that partition, with local overlaps ⟨xi∣ψi⟩=sin⁡θi\langle x_i | \psi_i \rangle = \sin \theta_i. Denote Sx=I−2∣x⟩⟨x∣S_x = \mathbb{I} - 2 |x\rangle \langle x| for the oracle and let SψiS_{\psi_i} reflect about ∣ψi...1⟩|\psi_{i...1}\rangle within the cumulative block of registers i...1i...1, acting as the identity I\mathbb{I} above it. The construction is the palindromic recursion

Wi=(SψiWi−1)tiSψi(Wi−1Sψi)ti,W0=Sx,(1)W_{i}=(S_{\psi_{i}}W_{i-1})^{t_{i}}S_{\psi_{i}}\left(W_{i-1}S_{\psi_{i}}\right)^{t_{i}},\qquad W_{0}=S_{x}, \tag{1}

in which each Wi−1W_{i-1} is a reflection, so that SψiWi−1S_{\psi_i} W_{i-1} is a rotation. Given the product structure, the two-subspace decomposition of the reflected subspaces [19] reduces the non-trivial action to a single invariant plane, spanned by ∣xm...i+1⟩∣ψi...1⟩|x_{m...i+1}\rangle |\psi_{i...1}\rangle and one further vector. In that plane SψiWi−1S_{\psi_i} W_{i-1} rotates through −2γi-2\gamma_i, with

sin⁡γi=sin⁡θisin⁡(2ti−1γi−1),γ1=θ1.(2)\sin\gamma_{i}=\sin\theta_{i}\sin(2t_{i-1}\gamma_{i-1}),\qquad\gamma_{1}=\theta_{1}. \tag{2}

The rotation generated at a level is characterised by two values: the local overlap sin⁡θi\sin \theta_i within its own subspace and the angle 2ti−1γi−12t_{i-1} \gamma_{i-1} through which the level below carried its rotation.

Given a decomposition of the global space into mm subspaces, after m−1m - 1 levels, the iterate SψmWm−1S_{\psi_m} W_{m-1} rotates through −2γm-2\gamma_m in a plane containing the full initial state ∣ψ⟩|\psi\rangle. A vector within that plane is the factorised state ∣xm⟩⊗∣ϕm−1⟩|x_m\rangle \otimes |\phi_{m-1}\rangle, which contains the component of the target within Hm\mathcal{H}_m, and a known residual state ∣ϕm−1⟩|\phi_{m-1}\rangle. Since the rotation angle γm\gamma_m is known exactly, that vector can be reached deterministically through generalised phase-reflections [23, 20, 9]. Furthermore, the residual state ∣ϕm−1⟩|\phi_{m-1}\rangle sits in the subspace one level down at a known angular distance from that level's own target ∣xm−1⟩⊗∣ϕm−2⟩|x_{m-1}\rangle \otimes |\phi_{m-2}\rangle. The construction applies again on the lower subspaces, and a cascade of m−1m - 1 corrections acting on progressively smaller subspaces each resolve one component of the target, preparing the target state ∣x⟩|x\rangle with unit probability. Section 3 describes the scheme in full.

Such a decomposition offers several advantages. The partial reflections SψiS_{\psi_i} act only on the subspaces accumulated up to level ii, and can therefore be substantially cheaper to implement than the global reflection SψS_{\psi}. Formulating the decomposition directly over the Hilbert space also makes the construction independent of any particular search setting, allowing it to be instantiated whenever the initial and target states admit the required product decomposition. Finally, because the rotation generated at each level is propagated exactly through the recursion, the analysis avoids the accumulation of error that arises from bounding the success probability separately at each stage, significantly simplifying the derivation of properties of the construction.

We show, in Section 5, that both unstructured search with a single target and spatial search for a single marked vertex on a grid admit the required product decomposition. The former partitions the register encoding the candidates into smaller subregisters, while the latter corresponds to a recursive subdivision of the grid encoding the possible positions of the quantum walker. The construction can then be optimised according to the cost relevant to the particular search setting. In unstructured search, this is the non-oracle gate count, while in spatial search it is the number of time steps taken by the walker. Choosing the intermediate iteration counts {ti}\{t_i\} appropriately allows the oracle complexity and the cost of the partial reflections to be controlled simultaneously. This allows the same construction to be optimised according to the cost structure of the setting in which it is applied.

References (26)