Quantum-Assisted Optimal Rebalancing with Uncorrelated Asset Selection for Algorithmic Trading Walk-Forward QUBO Scheduling via QAOA
Organizations: AI-WEINBERG, AI Experts, Tel Aviv, Israel
Abstract
We present a hybrid classical-quantum framework for portfolio construction and rebalancing. Asset selection is performed using Ledoit-Wolf shrinkage covariance estimation combined with hierarchical correlation clustering to extract n = 10 decorrelated stocks from the S&P 500 universe without survivorship bias. Portfolio weights are optimised via an entropy-regularised Genetic Algorithm (GA) accelerated on GPU, alongside closed-form minimum-variance and equal-weight benchmarks. Our primary contribution is the formulation of the portfolio rebalancing schedule as a Quadratic Unconstrained Binary Optimisation (QUBO) problem. The resulting combinatorial optimisation task is solved using the Quantum Approximate Optimisation Algorithm (QAOA) within a walk-forward framework designed to eliminate lookahead bias. This approach recasts dynamic rebalancing as a structured binary scheduling problem amenable to variational quantum methods. Backtests on S&P 500 data (training: 2010-2024; out-of-sample test: 2025, n = 249 trading days) show that the GA + QAOA strategy attains a Sharpe ratio of 0.588 and total return of 10.1%, modestly outperforming the strongest classical baseline (GA with 10-day periodic rebalancing, Sharpe 0.575) while executing 8 rebalances versus 24, corresponding to a 44.5% reduction in transaction costs. Multi-restart QAOA (4096 measurement shots per run) exhibits concentrated probability mass on high-quality schedules, indicating stable convergence of the variational procedure. These findings suggest that hybrid classical-quantum architectures can reduce turnover in portfolio rebalancing while preserving competitive risk-adjusted performance, providing a structured testbed for near-term quantum optimisation in financial applications.
Figures & tables
| Component | Version / Details |
|---|---|
| Python | 3.12 |
| PyTorch | 2.x (CUDA, Tesla T4) |
| Qiskit | 1.2.4 |
| Qiskit-Algorithms | 0.3.1 |
| Qiskit-Aer | 0.15.1 (CPU statevector) |
| PyGAD | latest |
| Weights | Schedule | Description |
|---|---|---|
| GA, MinVar, Equal, Ensemble | Buy & Hold | No rebalancing |
| GA | Periodic/1d | Rebalance every trading day |
| GA | Periodic/5d | Rebalance weekly |
| GA | Periodic/10d | Rebalance bi-weekly |
| GA | Periodic/21d | Rebalance monthly |
| GA | Threshold 5% | Rebalance when max weight drift |
| Parameter | Value |
|---|---|
| Circuit depth | 2 |
| Candidate dates per window | 8 |
| Walk-forward windows | 3 |
| Restarts | 5 |
| Optimisation shots | 2,048 |
| Evaluation shots | 4,096 |
| Stock | GA | MinVar | Equal | Ensemble |
|---|---|---|---|---|
| EXR | 7.5 | 4.1 | 10.0 | 7.2 |
| NI | 0.3 | 11.2 | 10.0 | 7.2 |
| CHD | 11.1 | 10.3 | 10.0 | 10.5 |
| LLY | 21.1 | 12.0 | 10.0 | 14.4 |
| COST | 21.1 | 20.2 | 10.0 | 17.1 |
| AVGO | 11.0 | 9.5 | 10.0 | 10.2 |
| Strategy | Return (%) | Sharpe | Sortino | MDD (%) | Calmar | Rebal / Cost (bp) |
|---|---|---|---|---|---|---|
| GA Buy&Hold | 7.68 | 0.471 | 0.610 | -15.88 | 0.484 | 0 / 0.0 |
| MinVar Buy&Hold | -0.86 | 0.060 | 0.077 | -16.46 | -0.052 | 0 / 0.0 |
| Equal Buy&Hold | 5.15 | 0.382 | 0.483 | -14.70 | 0.350 | 0 / 0.0 |
| Ensemble Buy&Hold | 3.99 | 0.325 | 0.415 | -14.24 | 0.280 | 0 / 0.0 |
| GA Rebal/1d | 9.12 | 0.541 | 0.701 | -15.51 | 0.588 | 248 / 31.6 |
| GA Rebal/5d | 9.63 | 0.567 | 0.735 | -15.74 | 0.612 | 49 / 15.8 |
Algorithmic Trading
Algorithmic trading uses computational models to generate signals, allocate portfolios, and execute orders across financial markets.
See all 149 papers