Quantum optimize
quantum_optimizeSolve a factory decision with the Quantum Approximate Optimization Algorithm. Returns the decision in plain terms, how close it is to the proven optimum, and a post-quantum signed attestation (Ed25519 + ML-DSA-87) that is anchored on chain (Base). Paid per call via x402 when payments are on (see quantum_pricing).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"problem": "<problem>",
"data": "<data>"
},
"name": "quantum_optimize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Problem data in the shape quantum_problems describes | |
| shots | No | Measurements to sample from the trained circuit (1-100000) | |
| layers | No | QAOA depth p (1-4). Deeper finds better answers more often but runs longer. | |
| problem | Yes | balance_lines | select_lots | split_conflicts | qubo (see quantum_problems) | |
| include_qasm | No | Also return the trained circuit as OpenQASM 2.0 for real quantum hardware |