Skip to main content
Glama

WAI Quantum job service

Solve an Ising, QUBO or Max-Cut problem

solve_ising
Read-onlyIdempotent

Solve 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

NameRequiredDescriptionDefault
c1NoBifurcation's coupling scale, c0 = c1 / (sigma_J sqrt(N)).
dtNoBifurcation's time step (the published value for its variant by default; a sparse graph wants a smaller one).
skNoThe all-to-all spin glass with couplings of +1 and -1 drawn from instance.
gsetNoA weighted graph in the G-set text format: a line `n m`, then m lines `i j w`, vertices from 1; solved as maxcut.
quboNoA 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.
seedNoThe seed (default 1).
beta0NoAnnealing's first inverse temperature (default 0.1).
beta1NoAnnealing's last inverse temperature (default 3).
gammaNoThe heating rate of hdsb and hbsb.
isingNoAn 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.
stepsNoSteps a trial runs (sweeps for sa; default 1000).
maxcutNoA weighted Max-Cut graph, solved with J = -w; the cut is reported.
methodNodsb, 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.
trialsNoIndependent trials, each seeded on its own (default 16).
descendNoTake each trial's state on to a single-flip local minimum (default false).
sample_everyNoBifurcation: read the spins every this many steps, and at the end (default 100).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare readOnly/idempotent/openWorld=false, yet the description adds real behavioral context: what the answer contains, that only exact claims the optimum, that results are sealed with the service key and re-verifiable via verify_quantum_receipt, and that out-of-bound requests are refused up front with error codes J200/J201. This is substantial disclosure beyond structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and method options are front-loaded, which is good, but the middle is a single run-on sentence enumerating every return field even though an output schema already exists. That detail is largely redundant and makes the definition heavier than it needs to be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 16-parameter, nested-object tool with an output schema, the description covers method semantics, optimality caveats, receipts and error codes well. It stops short of clarifying that exactly one of ising/qubo/maxcut/gset/sk must be supplied (zero required top-level params), which is the one operational detail an agent could get wrong.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so parameters like method, steps, trials and the problem variants are already documented with defaults and bounds. The description only restates the method list and the 30-spin exact limit, adding no syntax or format meaning beyond the schema; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (solve) and the exact resource families (Ising, QUBO, Max-Cut, with the wai.quantum.ising/1 format), and names the concrete method set (dsb, bsb, hdsb, hbsb, sa, exact). An agent knows precisely what this does and can distinguish it from sampling/QAOA-style siblings by the 'best state + energy + receipt' framing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives implied selection guidance: exact is capped at 30 spins and is the only method that claims optimality, so small problems should use it, and other methods return the best-of-trials result. However it never states when to choose this over siblings such as sample_ising or qaoa_maxcut, nor when-not to use it beyond the J200/J201 bound refusal.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources