Skip to main content
POST
Postprocess Skqd Samples

Authorizations

HAIQU_API_KEY
string
query
required

Body

application/json

Define payload for a sample-based quantum diagonalization job.

Attributes: experiment_id: Parent experiment identifier. h1e: One-body integrals, shape (norb, norb). h2e: Two-body integrals, shape (norb, norb, norb, norb). norb: Number of spatial orbitals. nelec: Alpha and beta electron counts. results: Measured bitstring counts per batch. run_job_id: Run job whose stored results supply results. num_shots: Shots behind the supplied results. name: Optional job name. params: Optional diagonalization parameter overrides.

experiment_id
string
required
h1e
number[][]
required

One-body integrals as a norb x norb matrix.

h2e
number[][][][]
required

Two-body integrals as a rank-4 norb array. This grows as norb**4, so prefer small active spaces when calling through a tool; use the SDK for large ones.

norb
integer
required

Number of spatial orbitals.

Required range: x >= 1
nelec
Nelec · tuple
required

Alpha and beta electron counts as [n_alpha, n_beta].

results
Results · object[] | null

Measured bitstring counts per batch. Provide this or run_job_id, not both.

run_job_id
string | null

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

num_shots
integer | null

Shots behind the supplied results. Derived from the run job when run_job_id is used.

name
string
default:SKQD Postprocessing
params
Params · object | null

Optional overrides: samples_per_batch, num_batches, max_iterations, symmetrize_spin, configuration_recovery, seed.

Response

Successful Response

Represent the outcome of a job lifecycle action such as cancel or restart.

Attributes: job_id: Identifier of the affected job. status: Job status after the action was applied. context: Summary of what changed and the recommended next step.

job_id
string
required
status
string
required
context
string
required