Solving Multiple Discretization Portfolio Optimization Problem with Quantum-Classical Hybrid Algorithms

Huiyong Wei, Yanbo J. Wang, Haoxiang Yang, Xuan Yang, Mingming Cao, Qi Xu, Minglei Cai, Yiduo Wang, Zhendong Mao, Xiaofeng Cao, Q.-x. Mei, Jie Wang, Xiaojun Zhou, Lin Yao, W.-d. ZhaoComputational 2025

Abstract

Portfolio optimization (PO) plays a central role in finance, encompassing both resource allocation and risk management. While numerous algorithms have been developed for continuous-variable PO, the inclusion of large, indivisible assets such as real estate transforms the task into a combinatorial optimization problem, which is NP-hard for classical computers. This study explores using quantum-classical hybrid algorithms for multi-discretized portfolio optimization, addressing the needs of real-world applications. We propose a flexible theoretical model that can solve PO problems with various types of discrete assets and constraints, which is compatible with both quantum and classical computing paradigms. Then, we use the D-Wave quantum processor and classical solver to determine optimal investment strategies. Experimental results indicate that the hybrid quantum algorithm outperforms both classical computing methods and quantum annealing algorithms in terms of return and risk management. This research enhances quantum computing applications in finance and provides insights into future algorithm design.

Introduction

The Markowitz mean-variance model has long served as the foundation of portfolio optimization, providing a mathematical framework for balancing expected returns against risk. However, a significant limitation of the standard model is the assumption of continuous investment variables. In practical financial markets, many assets are discrete or indivisible. Examples include commercial real estate, heavy machinery, or private equity funds with high minimum entry requirements.

When these discrete constraints are introduced, the optimization problem shifts from a continuous domain to a combinatorial one, specifically becoming a Mixed-Integer or Discrete Optimization problem. These problems are classified as NP-hard, meaning that as the number of assets increases, the computational resources required to find an optimal solution grow exponentially, often exceeding the capabilities of classical computers. This paper addresses this challenge by proposing a quantum-classical hybrid approach to solve multiple discretization portfolio optimization problems.

Methodology

The proposed framework categorizes financial assets into three distinct classes to reflect real-world constraints:

  1. Fungible Continuous Assets: Highly divisible instruments such as liquid stocks.
  2. Fungible Discrete Assets: Indivisible units, such as specific hardware or equipment.
  3. Non-Fungible Assets: Assets with fixed minimum buy-ins, such as private equity or venture capital.

To solve the optimization problem, the authors map the modified Markowitz model into a Quadratic Unconstrained Binary Optimization (QUBO) format. Given the current limitations of Noisy Intermediate-Scale Quantum (NISQ) hardware—specifically qubit counts—a direct solution of large-scale QUBOs on quantum hardware is often infeasible.

To overcome this, the study introduces a Quantum-Classical Hybrid Annealing (QCHA) algorithm. The QCHA workflow involves:

  • Partitioning: Breaking down the global QUBO matrix into smaller, highly correlated sub-problems.
  • Quantum Solving: Utilizing a D-Wave Advantage 4.1 quantum annealer to solve these sub-problems.
  • Classical Refinement: Reassembling the sub-solutions and applying classical local search techniques, such as Tabu search or greedy descent, to refine the global result.

This hybrid approach was benchmarked against pure Quantum Annealing (QA), commercial solvers (Gurobi), and traditional metaheuristics like Simulated Annealing (SA) and Tabu Search (TS).

Experimental Setup and Datasets

The performance of the QCHA algorithm was evaluated using two distinct datasets sourced from the WIND database, focusing on periods of high market volatility:

  • Dataset-1: Comprised of 10 publicly tradable stocks from the Shanghai and Shenzhen exchanges (Sept 1, 2021 – Dec 31, 2021). This dataset tested the algorithm on 50 variables/qubits.
  • Dataset-2: A more complex mix of 15 assets, including 5 stocks, 5 mutual funds, and 5 private equity funds (Jan 1, 2024 – Apr 18, 2024). This dataset scaled the problem to 128 variables/qubits, specifically testing the handling of mixed asset types.

Results and Discussion

The experimental results highlight several key advantages of the hybrid quantum approach:

Performance on Dataset-1

In the 50-variable test, QCHA achieved an Accumulated Return (ACC) of 1.227 and a Sharpe ratio of 3.130. This performance surpassed the industry-standard Gurobi solver (ACC = 1.211, Sharpe = 2.974) and significantly outperformed pure quantum annealing.

Scaling and Complexity on Dataset-2

Dataset-2 presented a significant challenge for pure quantum annealing, which failed to execute due to hardware qubit limitations. However, the QCHA algorithm successfully navigated the 128-variable problem. It achieved the best Sortino ratio among all tested methods, indicating superior management of downside risk. Notably, as the problem size increased, QCHA's Sharpe ratio improved linearly, eventually surpassing Gurobi at the 128-variable threshold.

Robustness to Constraints

The addition of real-world constraints, such as limits on the total number of assets, increased the complexity of the solution space. While classical algorithms often became trapped in local minima, the QCHA maintained high solution quality, demonstrating greater resilience to complex constraint landscapes.

Conclusion

This research demonstrates that quantum-classical hybrid algorithms can effectively bridge the gap between current quantum hardware limitations and the demands of real-world financial optimization. By partitioning large combinatorial problems and leveraging the strengths of both quantum annealers and classical solvers, the QCHA algorithm provides superior risk-adjusted returns and handles discrete asset constraints more effectively than traditional methods.

Limitations and Future Work: Current limitations include the qubit count and gate fidelity of existing hardware, which affects the precision of allocations for continuous assets. Future research will focus on developing dynamic portfolio optimization models that incorporate time-series data and integrating machine learning techniques to further enhance the scalability and accuracy of quantum financial applications.

Summary updated

BibTeX
@inproceedings{wei2025solving,
  author = {Huiyong Wei and Yanbo J. Wang and Haoxiang Yang and Xuan Yang and Mingming Cao and Qi Xu and Minglei Cai and Yiduo Wang and Zhendong Mao and Xiaofeng Cao and Q.-X. Mei and Jie Wang and Xiaojun Zhou and Lin Yao and W.-D. Zhao},
  title = {{Solving Multiple Discretization Portfolio Optimization Problem with Quantum-Classical Hybrid Algorithms}},
  booktitle = {Computational},
  year = {2025},
  doi = {10.1007/s10614-025-11061-5},
}
Figure