Draw verified samples from an Ising model's Boltzmann law
sample_isingDraw samples from the Boltzmann law p(s) proportional to exp(-beta E(s)) of an Ising, QUBO or Max-Cut model (wai.quantum.sample/1) by Gibbs sampling with the update a probabilistic bit makes, s_i = sgn(tanh(beta I_i) - r), in sequential or graph-coloured sweeps, in fixed point: the same samples on every machine. The answer gives the model's digest, the law's address and the draw's (the model, beta, the schedule, the seed and the sweeps), the digest of every sample, the histogram or the samples, the mean energy, the magnetisation and pair correlations each with its error bar from the integrated autocorrelation time and the effective sample size, and for up to 20 spins the exact law enumerated with the total-variation distance and the KL divergence of the samples from it. Sealed with the service's key, with the joules the host measured or the reason it measured none; verify_quantum_receipt checks the seal and the addresses. A request past a bound is refused before anything runs (J202, J203).
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": "sample_ising"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sk | No | The all-to-all spin glass with couplings of +1 and -1 drawn from instance. | |
| beta | No | The inverse temperature: the law is p(s) proportional to exp(-beta E(s)) (default 1). | |
| 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). | |
| thin | No | Keep every this many sweeps (default 1). | |
| exact | No | Enumerate the exact law and hold the samples to it (up to 20 spins; the default there). | |
| 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. | |
| pairs | No | The two-point correlations <s_i s_j> to estimate (default the first 8 coupled pairs). | |
| chains | No | Independent chains, each keyed by its index (default 4). | |
| maxcut | No | A weighted Max-Cut graph, solved with J = -w; the cut is reported. | |
| output | No | histogram: every configuration drawn and how often (up to 64 spins; the default there); samples: every sample kept, in order; none. | |
| sweeps | No | Sweeps each chain keeps from, after the burn-in (default 1000). | |
| burn_in | No | Sweeps each chain runs first and keeps nothing from (default 100). | |
| schedule | No | sequential: spins 0 to n-1 each sweep; coloured: the classes of a greedy colouring in turn, every spin of a class drawn from the same configuration of the rest (default sequential). | |
| frac_bits | No | Hold the model in units of 2^-frac_bits (default: the fewest that hold every number exactly). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||