Skip to content

Latest commit

 

History

80 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Team Qedi 🐈‍⬛

EPFL Quantum Hackathon 2026 • Quandela Challenge

Hybrid Photonic Temporal QRC (HPT-QRC) — Swaption Volatility Surface Forecaster

Teaching photons to predict the market so we can finally sleep.


📖 1. The Challenge

A swaption volatility surface is a 2D grid indexed by tenor and maturity. Providing 224 high-dimensional features per day, the challenge demands two primary tasks:

  1. Predictive Forecasting — Forecasting the complex non-linear surface shifts for the next $H$ days smoothly.
  2. Data Imputation Reconstruction — Real markets suffer from outages, resulting in NaN entries across the option grid. The model must analytically infer missing surface areas by relying on deeply correlated temporal topologies.

The Quantum Solution: We compress the manifold via PCA and process the temporal dynamics using a entirely newly adapted Hybrid Photonic Temporal Quantum Reservoir Computer (HPT-QRC) architecture. Inspired by Li et al. (2024), we took their qubit-based framework and adapted it to a purely Photonic Quantum Reservoir powered by MerLin by Quandela.

You can check out our interactive showcase website here: https://qedi-qpfl.vercel.app, featuring all challenge details and interactive visualization of our solution.


⚙️ 2. Hybrid Photonic Temporal QRC Architecture

Instead of a standard QRC, our best solution is the state-of-the-art HPT-QRC pipeline (implemented as our main architecture in temporal_qrc.py):

  1. Preprocessing: Raw 224D Market Surface $\rightarrow$ StandardScaler + PCA (5D) $\rightarrow$ Rolling 5-Day Window (1×25)
  2. Dedicated Memory Modes: Instead of mapping data to all spatial modes simultaneously, our temporal array uses 5 input modes (phase encoded) and 3 dedicated memory modes (unencoded loop). The memory modes continuously accumulate historical state contexts across 5 time steps through serial phase mixing.
  3. Virtual Nodes: We sample the evolving physical system at multiple structural post-processing depths (Depths 1, 2, 3). These Virtual Nodes emulate capturing chronological measurement sub-intervals, massively expanding our temporal feature dimensionality without adding physical photon bounds.
  4. Ensemble LexGrouping Compression: Instead of measuring impossibly vast raw Fock states, we group the probability vectors via LexGrouping across 3 random seeds × 3 virtual depths (= 9 Circuits).
  5. Direct Target Ridge Forecaster: By augmenting 90 Quantum Features with the 25 Classic Features, extracting the most prominent Non-linear Mutual Information quantum channels, an $L2$ regularized Ridge Regression projection ($\alpha=10.0$) predicts the consecutive future states.

🚀 3. CLI Reference & Setup

Requires torch, pcvl, and standard ML arrays (numpy, pandas, scikit-learn).

# First create the environment and install dependencies
conda create -n quandela python=3.10
conda activate quandela
pip install -r requirements.txt

Main Solution & Naive Baseline

Our best model, the Hybrid Photonic Temporal QRC, along with a naive algorithm (repeat last known day) used as a baseline, is localized in temporal_qrc.py. Run this to reproduce our winning results:

python temporal_qrc.py

Benchmarking Models

We built multiple robust models to benchmark against our champion HPT-QRC architecture:

  • final_model.py: Runs our standard Photonic Linear QRC without dedicated memory modes.
  • train_final.py: Runs classical and hybrid benchmarks, including Classical LSTM, Classical Random Forest, QSVR, and Hybrid QNN.
# Evaluate the base Photonic Linear QRC
python final_model.py

# Evaluate classical/hybrid benchmarking models 
python train_final.py

📈 4. Final Benchmark Results

By executing the novel Hybrid Photonic Temporal QRC pipeline, we successfully beat our underlying standard QRC framework and left classical baselines absolutely obsolete.

Model RMSE Error
QSVR 0.0233
Hybrid QNN 0.0083
LSTM 0.0073
Photonic Linear QRC 0.0065
Hybrid Photonic Linear QRC 0.0028
🥇 Hybrid Photonic Temporal QRC (HPT-QRC) 0.0021

Maintains incredibly reliable sub-10% projection accuracy out to a 6-Day cascading prediction envelope.


👥 Meet Team Qedi

Proudly built during the 24-hour EPFL Quantum Hackathon 2026.


METU Logo Bilkent Logo
Middle East Technical University Bilkent University

About

Team Qedi, EPFL Quantum Hackathon Quandela Challenge

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages