YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
QAOA Portfolio Optimizer (Hugging Face Space)
This Space builds a mean–variance portfolio selection QUBO and solves it with a QAOA variational circuit (PennyLane).
Optionally verifies the solution with a classical brute-force when the asset count is small.
How to use
- Click "Run QAOA".
- With no file uploaded, a 6-asset demo runs.
- Or upload a CSV of prices:
- First column:
Date - Other columns: tickers (closing prices)
- First column:
- Adjust:
- Risk aversion
λ - Target picks
k - Penalty
α - QAOA depth
p, Steps, Shots
- Risk aversion
- Inspect logs, JSON, and selection table.
Data assumptions
- We compute annualized mean log-returns and covariance from your prices.
- Values are illustrative only; do your own backtesting before any real use.
Local run
pip install -r requirements.txt
python app.py
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support