STATION 7 · THERMO LAB · EXP 7

Markowitz Portfolio QUBO

Cardinality-constrained portfolio selection as a QUBO mapped to an Ising Hamiltonian, with quadratic penalties enforcing the exact budget. Pick assets below and watch the sampler’s trade-off — return, risk, and budget feasibility — move in real time.

Run this benchmark uv run thrml-bench run --exp 7
99.1%
Budget feasibility

simulated benchmark result, results may vary (not customer results)

94.1%
Pareto match

simulated benchmark result, results may vary (not customer results)

14.696s
Runtime · N = 20 assets

simulated benchmark result, results may vary (not customer results)

The frontier, live

Each faint dot is a randomly drawn feasible portfolio holding exactly K assets. The amber curve is their Pareto frontier — best return at each risk level. Your selection is the green dot.

Feasible portfolios (demo universe) Pareto frontier Your selection

Budget gauge

The QUBO only counts a portfolio when it holds exactly K assets. The penalty term grows quadratically with every asset over or under.

0 / 8 assets
Under budget

Penalty term: 0.000

Sampler controls

Shape the Hamiltonian, then let the annealer search it.

Synthetic N=20 Universe

Annealer idle. Toggle assets by hand, or anneal to search for a low-energy feasible portfolio.

Ising Hamiltonian

Energy of your current selection, term by term. Lower is better.

Return reward (−μ)0.000
Risk cost (λ·σ²)0.000
Budget penalty (P·(n−K)²)0.000
H = 0.000
H(x) = −Σ μᵢxᵢ + λ Σᵢⱼ Σᵢⱼxᵢxⱼ + P(Σxᵢ − K)²,  xᵢ ∈ {0,1}

Your portfolio — live

Computed in your browser from the demo universe below. Demo figures, not the benchmark above.

—
Expected return / yr
—
Volatility (risk)
—
Return / risk
—
Distance to frontier
1.00
Sokal τint
—
Live ESS

The universe — N = 20 assets

Tap an asset to include it (xᵢ = 1) or drop it (xᵢ = 0). μ is expected annual return, σ is annual volatility. This demo universe is illustrative; the published benchmark figures are in the cards at the top.