Solve an Ising, QUBO or Max-Cut problem
solve_isingSolve an Ising, QUBO or Max-Cut problem (wai.quantum.ising/1) by simulated bifurcation (dsb, bsb, hdsb, hbsb), simulated annealing (sa) or exact enumeration (exact, up to 30 spins). The answer gives the best state (+ or - a spin, spin 0 first), its energy E(s) = -sum J s s - sum h s, a QUBO's assignment and value or a graph's cut, the problem's digest, whether its arithmetic is exact, the trials that reached the best, a trace of energy against steps, and the operations counted. Only exact claims the optimum; every other method's answer is the best its trials found. Sealed with the service's key, with the run's joules as the host measured them or the reason it measured none; verify_quantum_receipt checks the seal and sums the state's energy again from the problem. A request past a bound is refused before anything runs (J200, J201).
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": "solve_ising"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| c1 | No | Bifurcation's coupling scale, c0 = c1 / (sigma_J sqrt(N)). | |
| dt | No | Bifurcation's time step (the published value for its variant by default; a sparse graph wants a smaller one). | |
| sk | No | The all-to-all spin glass with couplings of +1 and -1 drawn from instance. | |
| gset | No | A weighted graph in the G-set text format: a line `n m`, then m lines `i j w`, vertices from 1; solved as maxcut. | |
| qubo | No | A QUBO: Q(x) = sum q_ij x_i x_j + offset over x in {0, 1}^n; [i, i, q] is linear. Solved as its Ising form with s = 2x - 1, made exactly. | |
| seed | No | The seed (default 1). | |
| beta0 | No | Annealing's first inverse temperature (default 0.1). | |
| beta1 | No | Annealing's last inverse temperature (default 3). | |
| gamma | No | The heating rate of hdsb and hbsb. | |
| ising | No | An Ising problem: E(s) = -sum_{i<j} J_ij s_i s_j - sum_i h_i s_i over s in {-1, +1}^n. A pair given twice adds. | |
| steps | No | Steps a trial runs (sweeps for sa; default 1000). | |
| maxcut | No | A weighted Max-Cut graph, solved with J = -w; the cut is reported. | |
| method | No | dsb, bsb, hdsb, hbsb: simulated bifurcation (discrete, ballistic, and each heated); sa: simulated annealing; exact: every configuration enumerated, up to 30 spins (default dsb). Only exact claims the optimum. | |
| trials | No | Independent trials, each seeded on its own (default 16). | |
| descend | No | Take each trial's state on to a single-flip local minimum (default false). | |
| sample_every | No | Bifurcation: read the spins every this many steps, and at the end (default 100). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||