A variational quantum algorithm for the Feynman-Kac formula

Hedayat Alghassi, Amol Deshmukh, Noelle Ibrahim, Nicolas Robles, Stefan Woerner, Christa ZoufalQuantum 2022

Introduction

Differential equations serve as the mathematical foundation for diverse fields, including quantitative finance, physics, and biology. Stochastic Differential Equations (SDEs), in particular, are essential for modeling systems influenced by random noise, such as option pricing or population dynamics. Traditionally, these equations are solved using Monte Carlo simulations or grid-based Partial Differential Equation (PDE) solvers. However, Monte Carlo methods converge slowly, and grid-based solvers suffer from the "curse of dimensionality," where computational costs grow exponentially with the number of variables.

While quantum algorithms like Quantum Amplitude Estimation (QAE) offer theoretical quadratic speedups, they require fault-tolerant hardware that is not yet available. This research, conducted by teams from IBM Quantum and ETH Zurich, introduces a "NISQ-friendly" (Near-term Intermediate-Scale Quantum) alternative: a variational quantum algorithm designed to solve the Feynman-Kac formula.

The Feynman-Kac Bridge

The Feynman-Kac formula provides a critical link between the stochastic world of random paths and the deterministic world of smoothly evolving PDEs. It allows researchers to represent the solution of certain PDEs as an expectation over stochastic processes.

Visualizing the connection between individual stochastic paths and the resulting probability distribution at $t=1$.

By identifying the Feynman-Kac PDE as a "Wick-rotated" Schrödinger equation, the authors map financial or physical models onto a quantum system evolving in imaginary time. This transformation enables the application of the entire toolbox of quantum simulation to non-quantum domains.

Methodology: Variational Quantum Imaginary Time Evolution (VarQITE)

The core of the proposed approach is Variational Quantum Imaginary Time Evolution (VarQITE). Rather than evolving a massive state vector, the algorithm utilizes a parameterized quantum circuit (an "ansatz"). The dynamics of the PDE are mapped onto the parameters of this circuit using McLachlan’s variational principle.

Key technical innovations include:

  • Normalization Management: Quantum states are $\ell_2$-normalized, whereas probability distributions in SDEs are $\ell_1$-normalized. The authors introduce a proxy norm and a time-dependent scaling factor $\alpha(t)$ to maintain approximate normalization throughout the evolution.
  • Operator Decomposition: The complex differential operators of the PDE are decomposed into sums of Pauli strings, making them compatible with current quantum hardware.
  • Handling Non-Unitary Evolution: Unlike standard quantum operations which are unitary (energy-preserving), PDEs like the heat equation are dissipative. VarQITE allows for the simulation of this "leaky" evolution without requiring complex ancilla qubit schemes.

Results and Benchmarking

The algorithm was evaluated using a synthetic (2+1) dimensional anisotropic heat equation, a Fokker-Planck type system. Results were compared against classical ground truths obtained via standard ODE solvers and high-path-count Monte Carlo simulations.

The study found:

  • High Fidelity: Simulations using 6 and 8 qubits showed "remarkable agreement" with classical benchmarks. The quantum-generated probability distributions closely matched analytical solutions.
  • Expressivity Requirements: The choice of ansatz is critical. While a single-layer circuit failed to capture the distribution's nuances, increasing to 3 or 5 layers allowed the quantum model to match classical solvers almost perfectly.
  • Scaling: The evolution phase scales polynomially with the number of qubits, though building multidimensional "oracles" for function evaluation remains a challenge.

Discussion and Future Outlook

Despite its promise, the approach faces a "readout bottleneck." Extracting metrics like mean or variance requires a process that may limit the total quantum advantage to a quadratic speedup due to normalization overheads. Furthermore, very high-dimensional cases may encounter "barren plateaus" during optimization where the circuit lacks the flexibility to represent the solution.

Future research will explore extending this framework to more complex models, such as Stochastic Volatility models and American Options (which involve optimal stopping problems). The authors also suggest investigating hyperbolic equations, such as the wave equation, to further broaden the algorithm's applicability.

Summary updated

BibTeX
@article{alghassi2022variational,
  author = {Hedayat Alghassi and Amol Deshmukh and Noelle Ibrahim and Nicolas Robles and Stefan Woerner and Christa Zoufal},
  title = {{A variational quantum algorithm for the Feynman-Kac formula}},
  journal = {Quantum},
  year = {2022},
  doi = {10.22331/q-2022-06-07-730},
}
Figure