Abstract
We present a quantum algorithm to solve dynamic programming problems with convex value functions. For linear discrete-time systems with a $d$-dimensional state space of size $N$, the proposed algorithm outputs a quantum-mechanical representation of the value function in time $O(T \gamma^{dT}\mathrm{polylog}(N,(T/\varepsilon)^{d}))$, where $\varepsilon$ is the accuracy of the solution, $T$ is the time horizon, and $\gamma$ is a problem-specific parameter depending on the condition numbers of the cost functions. This allows us to evaluate the value function at any fixed state in time $O(T \gamma^{dT}\sqrt{N}\,\mathrm{polylog}(N,(T/\varepsilon)^{d}))$, and the corresponding optimal action can be recovered by solving a convex program. The class of optimization problems to which our algorithm can be applied includes provably hard stochastic dynamic programs. Finally, we show that the algorithm obtains a quadratic speedup (up to polylogarithmic factors) compared to the classical Bellman approach on some dynamic programs with continuous state space that have $\gamma=1$.
Introduction
Dynamic Programming (DP) is a fundamental paradigm in sequential decision-making, underpinning applications ranging from inventory management and finance to reinforcement learning. Despite its versatility, DP is frequently limited by the "curse of dimensionality," where the computational resources required to solve the Bellman equation grow exponentially with the number of state and action variables.
While quantum computing has demonstrated transformative potential in unstructured search and integer factorization, its application to the inherently sequential nature of DP remains a significant challenge. This research investigates a specific, high-impact class of these problems: convex dynamic programming. In these systems, the cost functions and transition dynamics are structured such that they preserve the convexity of the value function across time steps. We explore whether quantum algorithms can provide a provable advantage over classical Bellman recursion in this domain.
Methodology: The Quantum Legendre-Fenchel Transform
The core technical contribution of this work is the "quantization" of the Bellman backward recursion. The algorithm's efficiency hinges on the Quantum Legendre-Fenchel Transform (QLFT), a quantum analogue of the classical convex conjugate.
In classical optimization, the Legendre-Fenchel transform allows a convex function to be represented via its slopes (dual space). The authors demonstrate that the DP operator—the mathematical engine of the Bellman update—can be computed efficiently by transitioning into this dual space. The proposed algorithmic pipeline consists of four primary stages:
- Discretization: The continuous $d$-dimensional state space is mapped onto a discrete grid of size $N$.
- Quantum Representation: The value function is encoded as a quantum state $|\psi\rangle$, representing a superposition of values across the grid.
- Backward Iteration: The algorithm iterates from the terminal time $T$ back to the initial state. At each step, the QLFT is applied to update the value function representation in the quantum register.
- Information Extraction: To retrieve the value of a specific state or determine the optimal policy, the algorithm employs amplitude amplification—a generalization of Grover’s search—to achieve a square-root speedup in sampling.
Theoretical Hardness and Benchmarking
To validate the necessity of a quantum approach, the researchers analyzed the complexity of convex DP. They established that even seemingly simple one-dimensional stochastic DP problems can be #P-hard. This classification suggests that these problems are likely intractable for classical computers in the worst case, providing a strong motivation for quantum intervention.
The algorithm was evaluated against linear discrete-time systems and stochastic models where transitions are subject to random noise. A key finding is the role of the parameter $\gamma$, which relates to the "condition number" of the cost functions. This parameter dictates the stability and behavior of the convex functions; when $\gamma=1$ (common in certain quadratic cost scenarios), the quantum advantage is most significant.
Key Results and Complexity Analysis
The proposed quantum algorithm achieves several notable complexity benchmarks:
- Value Function Construction: The algorithm generates a quantum representation of the value function in $O(T \gamma^{dT} \text{polylog}(N))$ time. This polylogarithmic dependence on the number of states $N$ is a hallmark of quantum efficiency.
- Quadratic Speedup: In instances where $\gamma=1$, the algorithm provides a quadratic speedup over the classical Bellman approach relative to $N$.
- State Evaluation: Classically, evaluating the value of a specific state requires $O(N)$ operations. The quantum method reduces this to $O(\sqrt{N})$ using amplitude amplification.
- Oracle Optimality: The authors demonstrate that within an "oracle setting" (where cost functions are treated as black boxes), this quantum algorithm is essentially optimal, meaning no other quantum algorithm can achieve a significantly better complexity bound for this class of problems.
Limitations and Current Status
It is critical to note a significant caveat regarding these findings. Following the initial dissemination of this research, the authors identified an error in the correctness proof of the QLFT subroutine (specifically Algorithm 5 in the referenced literature). As a result, the full extent of the claimed quantum speedup for convex DP is currently under re-evaluation.
Beyond this theoretical hurdle, the algorithm faces practical constraints:
- Convexity Preservation: The method is strictly limited to problems that maintain convexity throughout the time horizon. It cannot be applied to non-convex combinatorial problems like the Traveling Salesman Problem.
- Dimensional Scaling: While the algorithm scales well with the number of states $N$, it still exhibits exponential scaling with respect to the dimension $d$ and time horizon $T$ when $\gamma > 1$.
Conclusion
This work provides a theoretical framework for applying quantum computing to convex dynamic programming via the Quantum Legendre-Fenchel Transform. While the recent discovery of a proof error in the QLFT subroutine necessitates caution, the conceptual link between dual-space optimization and quantum state manipulation remains a promising avenue for overcoming the curse of dimensionality in sequential decision-making. Future research will focus on resolving the QLFT proof and exploring the potential to relax convexity requirements.
Summary updated