Skip to main content
QUICK REVIEW

[Paper Review] Quantum computational finance: quantum algorithm for portfolio optimization

Patrick Rebentrost, Seth Lloyd|arXiv (Cornell University)|Nov 9, 2018
Quantum Computing Algorithms and ArchitectureComputer Science31 citations
TL;DR

This paper presents a quantum algorithm for portfolio optimization that leverages quantum random access memory (qRAM) and the Harrow-Hassidim-Lloyd (HHL) algorithm to compute the optimal risk-return tradeoff curve and generate the quantum state of the optimal portfolio in time poly(log(TN)), offering a potential quantum speedup over classical methods that scale as poly(TN).

ABSTRACT

We present a quantum algorithm for portfolio optimization. We discuss the market data input, the processing of such data via quantum operations, and the output of financially relevant results. Given quantum access to the historical record of returns, the algorithm determines the optimal risk-return tradeoff curve and allows one to sample from the optimal portfolio. The algorithm can in principle attain a run time of ${ m poly}(\log(N))$, where $N$ is the size of the historical return dataset. Direct classical algorithms for determining the risk-return curve and other properties of the optimal portfolio take time ${ m poly}(N)$ and we discuss potential quantum speedups in light of the recent works on efficient classical sampling approaches.

Motivation & Objective

  • To develop a quantum algorithm that efficiently solves the portfolio optimization problem using quantum linear algebra techniques.
  • To enable quantum speedup in computing the risk-return curve and identifying the minimal-risk portfolio for a given expected return.
  • To demonstrate how quantum state preparation and amplitude estimation can be used to sample from the optimal portfolio with high fidelity.
  • To address the challenge of extracting classically meaningful financial results from quantum computation outputs, ensuring practical relevance.

Proposed method

  • The algorithm uses qRAM to load historical return data into quantum superposition, enabling efficient access to large datasets.
  • It applies the HHL algorithm to invert the covariance matrix, which is central to solving the quadratic optimization problem in portfolio theory.
  • The method encodes mean-adjusted returns into a quantum state using controlled rotations and amplitude amplification to prepare the state proportional to the covariance matrix.
  • It leverages postselection and amplitude estimation to extract the trace of the covariance matrix and verify the success probability of state preparation.
  • The quantum state of the optimal portfolio is prepared via matrix inversion and can be sampled to obtain a sparse, near-optimal portfolio allocation.
  • The algorithm ensures that the final output—either the risk-return curve or the optimal portfolio state—can be measured and interpreted in a classically meaningful way.

Experimental results

Research questions

  • RQ1Can quantum algorithms achieve a runtime scaling of poly(log(TN)) for portfolio optimization, compared to classical poly(TN) scaling?
  • RQ2How can quantum linear algebra techniques be adapted to solve the equality-constrained quadratic programming problem in portfolio optimization?
  • RQ3What is the role of qRAM and amplitude amplification in enabling efficient state preparation for the optimal portfolio?
  • RQ4How can the quantum output be measured and interpreted to yield actionable financial insights such as portfolio weights or risk-return profiles?
  • RQ5What are the practical limitations and success probabilities of preparing the optimal portfolio state under realistic data conditions?

Key findings

  • The quantum algorithm achieves a runtime of O(poly(log(TN))) for computing the risk-return curve and preparing the optimal portfolio state, representing a potential exponential speedup over classical methods.
  • The success probability of preparing the mean-adjusted return state scales as P_χ = Ω(1) when returns are of order 1, enabling efficient state preparation under typical financial data conditions.
  • The trace of the covariance matrix can be estimated via postselection and amplitude estimation, with P_χ = (δ²(T−1)trΣ)/(4TN), allowing verification of key statistical properties.
  • The algorithm enables sampling from the optimal portfolio state, yielding a sparse portfolio that is close to optimal, which is practically useful for real-world investment strategies.
  • The method demonstrates that quantum advantage in finance is feasible for problems like portfolio optimization, especially given the high financial value of small computational improvements.
  • The approach is compatible with near-term intermediate-scale quantum devices if qRAM and error mitigation techniques are implemented effectively.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.