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

  1. Click "Run QAOA".
  2. With no file uploaded, a 6-asset demo runs.
  3. Or upload a CSV of prices:
    • First column: Date
    • Other columns: tickers (closing prices)
  4. Adjust:
    • Risk aversion λ
    • Target picks k
    • Penalty α
    • QAOA depth p, Steps, Shots
  5. 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
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support