Skip to main content
POST
Postprocess Measurement Counts

Authorizations

HAIQU_API_KEY
string
query
required

Body

application/json

Define payload for post-processing QUBO measurement counts.

Attributes: lp_problem: QUBO problem in LP file format. counts: Measured bitstring counts to optimize. run_job_id: Run job whose stored results supply counts. params: Optional post-processing parameter overrides. max_solutions: Cap on how many solutions are returned inline.

lp_problem
string
required

QUBO problem serialized in LP file format.

counts
Counts · object | null

Measured bitstring counts, for example {'0101': 120, '1010': 87}. Provide this or run_job_id, not both.

run_job_id
string | null

Run job whose stored measurement results are used as counts, so large count dictionaries never have to be passed inline. Provide this or counts.

params
Params · object | null

Optional overrides: method (none, bitflip_incremental, bitflip_steepest_descent), postprocess_iterations, use_fast_eval, seed.

max_solutions
integer
default:20

Maximum number of solutions returned inline, best cost first.

Required range: 1 <= x <= 500

Response

Successful Response

Represent post-processed QUBO solutions, truncated for tool output.

Attributes: best_bitstring: Lowest-cost solution found. best_cost: Objective value of best_bitstring. solutions: Best solutions as bitstring / cost / count entries, ordered by cost. returned_solutions: Number of entries in solutions. total_solutions: Number of solutions the post-processor produced. truncated: Whether solutions omits some results. context: Summary of the outcome and how to read it.

solutions
Solutions · object[]
required
returned_solutions
integer
required
total_solutions
integer
required
truncated
boolean
required
context
string
required
best_bitstring
string | null
best_cost
number | null