Abstract
Portfolio optimization is an essential use case in Finance, but its computational complexity forces financial institutions to resort to approximated solutions, which are still time consuming. Thus, the scientific community is looking at how Quantum Computing can be used for efficient and accurate portfolio optimization. Portfolio optimization can be formulated as a quadratic program, with the cost function enforcing risk minimization for a targeted return. Of particular interest is the mean-variance portfolio optimization problem. Using the method of Lagrange multipliers, the program can be converted into a system of linear equations and potentially benefit from the exponential speedup provided by the HHL quantum algorithm. However, multiple components in HHL are unsuitable for execution on Noisy Intermediate Scale Quantum (NISQ) hardware. This paper introduces NISQ-HHL, the first hybrid formulation of HHL suitable for the end-to-end execution of small-scale portfolio-optimization problems on NISQ devices. NISQ-HHL extends the hybrid HHL variant with newly available quantum-hardware features: mid-circuit measurement, Quantum Conditional Logic (QCL), and qubit reset and reuse. To best of our knowledge, NISQ-HHL is the first algorithm incorporating a QCL-enhanced version of Phase Estimation that was executed on real hardware. In addition, NISQ-HHL includes a novel method for choosing the optimal evolution time for the Hamiltonian simulation. Although this paper focuses on portfolio optimization, the techniques it proposes to make HHL more scalable are generally applicable to any problem that can be solved via HHL in the NISQ era. We empirically demonstrate the effectiveness of NISQ-HHL by presenting the experimental results we obtained on a real quantum device, the trapped-ion Honeywell System Model H1.
Introduction
The Harrow-Hassidim-Lloyd (HHL) algorithm is a cornerstone of quantum linear algebra, offering a theoretical exponential speedup for solving systems of linear equations ($Ax = b$). Despite its potential, standard HHL remains impractical for current Noisy Intermediate-Scale Quantum (NISQ) hardware due to its requirement for deep circuits and high qubit counts. Researchers at JPMorganChase have addressed this by developing NISQ-HHL (also referred to as Hybrid HHL++), an optimized framework designed to bridge the gap between theoretical algorithms and the physical constraints of today’s quantum processors.
The NISQ-HHL Framework
The NISQ-HHL algorithm utilizes a four-step hybrid approach to minimize quantum resource requirements while maintaining solution accuracy.
The framework introduces several key innovations:
- Spectral Scaling: To maximize the utility of limited qubit precision, the algorithm employs an iterative procedure to find an optimal scaling factor ($\gamma$). This "stretches" the matrix's eigenvalues to fit the hardware's dynamic range, preventing precision loss.
- Semiclassical Phase Estimation (QPE): Standard QPE requires one ancilla qubit for every bit of precision. NISQ-HHL leverages semiclassical QPE, which uses a single ancilla qubit that is measured, reset, and reused. This is made possible by hardware features like mid-circuit measurement and Quantum Conditional Logic (QCL).
- Circuit Compression: By pre-calculating high-precision eigenvalues classically or semiclassically, the algorithm identifies the minimum number of qubits ($k \le m$) needed to distinguish between eigenvalues. This allows for a significantly shallower "compressed" HHL circuit.
Experimental Evaluation
The algorithm was benchmarked using real-world financial data from the S&P 500 to solve mean-variance portfolio optimization problems. The team tested 2-asset portfolios (represented by $4 \times 4$ matrices) and simulated larger 6-asset portfolios ($8 \times 8$ systems).
The experiments were conducted on Quantinuum’s H-series trapped-ion hardware (specifically the Honeywell System Model H1). This hardware is uniquely suited for NISQ-HHL due to its support for high-fidelity gates and the ability to perform mid-circuit measurements and qubit resets without decohering the rest of the system.
Key Results
- Record-Breaking Depth: The team executed HHL circuits with a two-qubit gate depth of up to 291, representing the largest experimental demonstration of HHL for a practical application to date.
- High Fidelity and Accuracy: On the H1 hardware, the algorithm achieved ~95% fidelity for 4-bit precision tasks. The accuracy of the portfolio solutions, measured by the inner product with the classical solution, remained consistently above 0.9.
- Resource Efficiency: The semiclassical approach successfully reduced the required ancilla qubits from $m$ down to just 1, a critical factor for scaling on near-term devices.
Discussion and Future Work
While NISQ-HHL represents a significant step forward, challenges remain. The algorithm's performance is sensitive to the "condition number" of the matrix—the ratio of the largest to smallest eigenvalues. Furthermore, while the hybrid approach enables execution today, it sacrifices the theoretical exponential speedup of the original HHL due to the classical overhead.
Future work will focus on scaling these techniques to larger portfolios and exploring ways to reduce the impact of noise as hardware continues to evolve toward fault tolerance. The techniques introduced here—spectral scaling and circuit compression—are broadly applicable beyond finance to any domain requiring quantum linear solvers in the NISQ era.
Summary updated