Portfolio optimization (QAOA + classical)
quantum_portfolio_optimizeUse this to compute mean-variance portfolio weights from your own returns or covariance, optionally limited to a maximum number of assets; QAOA asset selection next to an exact classical baseline. Price: $0.05 USDC per call via x402 (no account). Not charged if it fails.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "quantum_portfolio_optimize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assets | No | ||
| backend | No | aer | |
| returns | No | T x N periodic returns | |
| covariance | No | ||
| max_assets | No | ||
| max_weight | No | ||
| backend_note | No | set by Ellimist; leave empty | |
| risk_aversion | No | ||
| current_weights | No | Your current holdings (weights by asset). Given, the result trades off turnover cost. | |
| expected_returns | No | ||
| periods_per_year | No | ||
| turnover_penalty | No | cost per unit of turnover (e.g. fees + slippage) | |
| requested_backend | No | set by Ellimist; leave empty |