Quantum Modeler · Portfolio Selection
Portfolio Selection
Select exactly K assets using supplied expected returns and covariance. Minimize riskWeight × xᵀΣx − returnsᵀx. Binary asset holdings only; no fractional allocation, market feeds, or trading.
Execute at most 8 total qubits using an ideal classical statevector simulator. Symbolic scaling does not execute or solve a larger instance.
Build your problem
The starter selects asset 0. With risk weight 1, its exact objective is 1 − 3 = −2.
Ready to validate a small instance.
Open the simulator to purchase more runs, then return here.
Results describe the last completed build.
Explain this model
Small-instance simulation
Independent classical reference
Scaling formula
Sampled states
| Bits | Count | Probability | Penalized energy | Feasible objective | Penalty constraints | Assignment |
|---|
Full probability distribution
| Bits | Count | Probability | Penalized energy | Feasible objective | Penalty constraints | Assignment |
|---|
Circuit artifacts
x0 is the leftmost assignment bit. Measurements map xi → q[i] → c[i]; tools displaying c[N−1]…c[0] require register-order conversion.
Variable mapping
QUBO and Ising coefficients
Generated DSL
OpenQASM 2.0
Planned model families
TSP · Job Scheduling · Vehicle Routing remain roadmap items, not executable solvers.
No quantum advantage, real-QPU performance, physical-qubit requirement, or production-scale solution quality is claimed.