Papers
Topics
Authors
Recent
Search
2000 character limit reached

Quantum Time-Space Tradeoffs for Exponential Dynamic Programming

Published 2 Apr 2026 in quant-ph | (2604.02233v1)

Abstract: We investigate the quantum algorithms for dynamic programming by Ambainis et al. (SODA'19). While giving provable complexity speedups and applicable to a variety of NP-hard problems, these algorithms have a notable drawback: they require a large amount of Quantum Random Access Memory (QRAM), which potentially could be very challenging to implement in a physical quantum computer. In this work, we study how we can improve the space complexity by trading it for time, while still retaining a speedup over the classical algorithms. We show novel quantum time-space tradeoffs, which we obtain by adjusting the parameters of these algorithms and combining them with "quantized" classical strategies.

Summary

  • The paper presents a novel framework for analyzing quantum time-space tradeoffs in exponential dynamic programming, emphasizing QRAM constraints.
  • It introduces both qROM and fully quantum qRAM models, detailing divide-and-conquer and fractalization techniques for efficient recursive computation.
  • The study derives explicit Pareto frontiers for NP-hard problems like TSP, demonstrating significant speedup improvements over classical methods.

Quantum Time-Space Tradeoffs for Exponential Dynamic Programming

Introduction

Quantum dynamic programming techniques have catalyzed progress in exponential-time algorithms for a suite of NP-hard combinatorial and graph-theoretic optimization problems. The algorithms of Ambainis et al. (SODA 2019) offer superpolynomial quantum speedups over classical dynamic programming for tasks such as Travelling Salesman Problem and various permutation/vertex ordering problems. All these quantum DP algorithms, however, fundamentally rely on the assumption that quantum random access memory (QRAM) is available at sufficient scale to store exponentially many subproblem evaluations—with all associated entries accessible in quantum superposition. Physical and architectural obstacles to scalable QRAM have shifted focus towards the time-space tradeoff regime: How much speedup is obtainable with limited, subexponential QRAM? The paper "Quantum Time-Space Tradeoffs for Exponential Dynamic Programming" (2604.02233) provides a comprehensive analysis and formal recipes for quantum time-space tradeoffs in exponential DP, for both subset-based (divide & conquer) and permutation-based problems.

Models and Problem Formulation

The quantum DP algorithms targeted compute functions f:2[n]Nf:2^{[n]}\to\mathbb{N} (for subset DP, e.g., TSP) or f:PnNf:\mathcal{P}_n\to\mathbb{N} for permutation DP (e.g., Treewidth, Pathwidth). Standard quantum algorithms use QRAM to store and query all DP table entries for subproblems up to a given size, enabling recursively nested applications of Grover's search and quantum minimum-finding.

The paper considers two QRAM regimes:

  • qROM: Classical data, read-only QRAM (Quantum Read-Only Memory).
  • qRAM: Quantum data, read-write QRAM.

The goal is, for each QRAM capacity Sn\mathcal{S}^n, to give the minimal achievable time complexity Tn\mathcal{T}^n for a large class of DP-based exponential-time quantum algorithms, describing the Pareto frontier of quantum time-space tradeoffs.

Divide & Conquer Problems: Time-Space Tradeoffs

Algorithmic Backbone

The canonical DP recurrence is

f(S)=minXS,X=kg(f(SX),f(X)),f(S) = \min_{X\subset S, |X|=k} g(f(S\setminus X), f(X)),

for all S[n]S\subseteq [n], solved in stages: (1) DP for all Sαn|S| \leq \alpha n and storage in QRAM; (2) recursive quantum search over all larger sets, using the precomputed base layer.

Optimization Tradeoff (qROM)

Parameterizing by the precomputation cut α\alpha, one obtains (Theorem~\ref{thm:dnq-opt}) the tradeoff

S=2H(α),T=2max{12H(2kα)2k+1,H(α)}\mathcal{S} = 2^{H(\alpha)},\qquad \mathcal{T} = 2^{\max\left\{1-\frac{2-H(2^k\alpha)}{2^{k+1}},\, H(\alpha)\right\}}

for integer kk where f:PnNf:\mathcal{P}_n\to\mathbb{N}0, maximizing the precomputation and Grover levels respectively. When f:PnNf:\mathcal{P}_n\to\mathbb{N}1, one recovers the full quantum DP time optimum, matching Ambainis et al. [ABIKPV19].

Improved Tradeoff (qRAM, “Fractalization”)

Using a recursively compositional Gurevich–Shelah technique, the improved (“fractalized”) tradeoff achieves:

f:PnNf:\mathcal{P}_n\to\mathbb{N}2

holding for any permissible QRAM size f:PnNf:\mathcal{P}_n\to\mathbb{N}3 in f:PnNf:\mathcal{P}_n\to\mathbb{N}4 (Theorem~\ref{thm:dnq-imp}). This is achieved by interleaving several layers of recursion, each trading off QRAM table depth against the size of quantum searches, thereby gaining an additional layer of time reduction for each “fractalization” iteration.

For all tradeoffs, the time complexity is always lower-bounded by the space complexity, constraining f:PnNf:\mathcal{P}_n\to\mathbb{N}5, since the DP table initialization forms an irreducible serial bottleneck.

(Figure 1)

Figure 1: Quantum time-space tradeoff boundaries for divide & conquer dynamic programming—showing both the parameter-optimized (orange) and recursively improved “fractalized” (teal) bounds.

Structural Insights

The improved tradeoff curve demonstrates a fractal/“self-similar” structure, arising from recursive application of the same tradeoff method to smaller subproblems. The tradeoff frontier interpolates a (nonlinear) function f:PnNf:\mathcal{P}_n\to\mathbb{N}6 with f:PnNf:\mathcal{P}_n\to\mathbb{N}7, where the exponent f:PnNf:\mathcal{P}_n\to\mathbb{N}8 depends on the sequence and depth of recursion/unrolling.

Model Constraints: The optimization tradeoff is implementable using only qROM (read-only QRAM on classical data), whereas the fractalized improved tradeoff requires fully quantum data and the ability to write in QRAM branches (qRAM).

Permutation Problems: Time-Space Tradeoffs

Quantum Hypercube Path and Layered Decomposition

Permutation DP reduces to reachability over layers of the f:PnNf:\mathcal{P}_n\to\mathbb{N}9-dimensional Boolean hypercube. The core recursive quantum algorithm (“hypercube path”) splits the cube into Sn\mathcal{S}^n0 layers, precomputing base cases, then using multi-level Grover search to connect paths through each intermediate layer.

Layered Recursion and Parameter Optimization

Let the layer sizes be determined by fractional parameters Sn\mathcal{S}^n1. For each subcube of relative dimension Sn\mathcal{S}^n2, the recurrence for running time exponent Sn\mathcal{S}^n3 is:

Sn\mathcal{S}^n4

subject to overall QRAM constraint Sn\mathcal{S}^n5 for the base precomputed layer.

Dynamic Programming for Pareto Optimization

Given the exponential depth and branching of possible configurations (especially as Sn\mathcal{S}^n6 increases), direct analytic optimization is infeasible. The paper introduces a DP-based solver, computing the optimal running time exponent for any QRAM capacity on hypercubes of all subdimensions ("fractalizing" across layers and subcubes).

Achievable Tradeoffs (Main Results)

  • For any Sn\mathcal{S}^n7 (i.e., for QRAM capacity up to the full permutation DP storage), the minimal achievable time exponent Sn\mathcal{S}^n8 is

Sn\mathcal{S}^n9

for practical Tn\mathcal{T}^n0 layers.

  • For the quantum pairwise scheme (combined with quantum DP for grid graphs), a closed-form tradeoff

Tn\mathcal{T}^n1

holds for Tn\mathcal{T}^n2 (Theorem~\ref{thm:hp-ps}).

Both tradeoff families are “fractalizable,” enabling recursive composition to interpolate intermediate tradeoff points. Figure 2

Figure 2

Figure 3: A two-layer decomposition of the hypercube, the schematic recursion underlying tradeoff analysis for permutation DP problems.

(Figure 1)

Figure 2: Quantum time-space tradeoff boundaries for permutation (hypercube path) problems. The family of discrete tradeoff points is obtained for different layer configurations.

qROM/qRAM distinctions

As with the subset/DP case, the optimal algorithm in the limited-memory regime typically requires quantum data and write capabilities (qRAM), as recursive calls must share QRAM capacity but independently overwrite subproblems in a quantum superposition.

Fractalization Phenomenon

The “fractalization” lemma formalizes that any Tn\mathcal{T}^n3 tradeoff point yields a family of tradeoff points via repeated Grover’s top-level splits and square-rooting of resources:

Tn\mathcal{T}^n4

Iterating, this generates the observed self-similar “staircasing” of tradeoff frontiers. This is structurally analogous to the Gurevich–Shelah tradeoff in classical time-space analysis, but with the crucial replacement of classical divide-and-conquer by quantum-accelerated subproblem partitioning.

Implications and Future Directions

Algorithmic Implications: The characterization of quantum time-space tradeoffs indicates that—for a fixed QRAM footprint—quantum exponential-time algorithms retain a substantial speedup over classical, even when QRAM is severely restricted. The improvement is most pronounced for problems with richer recursive structure (e.g., permutation DP/Hypercube Path), and less so for problems where precomputation is an unavoidable serial bottleneck.

Modeling Quantum Architecture: The explicit delineation between qROM (classical, read-only) and qRAM (quantum, read-write) models, and their impact on achievable tradeoffs, is crucial for steering resource-aware quantum algorithm design, especially given ongoing debates about the physical realizability and scaling properties of QRAM.

Combinatorial Structure: The fractalized tradeoff curves show that time-space optimization for quantum DP algorithms is structurally intricate, revealing recursive “bottlenecks” where additional QRAM can yield superlinear savings in time, and giving analytic lower bounds on what can be achieved with quantum advantage.

Conclusion

This paper offers a detailed, parameterized framework for time-space tradeoffs in quantum DP algorithms, applicable to a wide class of exponential-time combinatorial problems solvable via Bellman–Held–Karp style DP. For both subset-based and permutation-based recurrences, the achievable tradeoff curves (and their fractal structure) are characterized, providing both explicit analytic bounds (in the qROM setting) and numerical Pareto frontiers (for full quantum qRAM), with operational implications for near-term and large-scale quantum algorithm deployment. The analysis also clarifies the complexity-theoretic demarcation between the different QRAM models and their regime-dependent benefits and limitations, setting a concrete roadmap for further exploration of quantum memory–time tradeoff landscapes.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We found no open problems mentioned in this paper.

Collections

Sign up for free to add this paper to one or more collections.