Skip to main content
POST
/
postprocess_skqd
Postprocess Skqd
curl --request POST \
  --url 'https://api.example.com/postprocess_skqd?HAIQU_API_KEY=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "experiment_id": "<string>",
  "h1e": [
    [
      123
    ]
  ],
  "h2e": [
    [
      [
        [
          123
        ]
      ]
    ]
  ],
  "results": [
    {}
  ],
  "num_shots": 123,
  "norb": 123,
  "nelec": [
    123,
    123
  ],
  "name": "SKQD Postprocessing",
  "params": {}
}
'
{
  "id": "<string>",
  "user_id": 123,
  "experiment_id": "<string>",
  "status": "Submitted",
  "job_type": "User local job",
  "creation_date": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "description": "<string>",
  "device_id": "Haiqu OS",
  "run_date": "2023-11-07T05:31:56Z",
  "finish_date": "2023-11-07T05:31:56Z",
  "logs": "<string>",
  "quality": 123,
  "info": {},
  "time": 123,
  "h1e": [
    [
      123
    ]
  ],
  "h2e": [
    [
      [
        [
          123
        ]
      ]
    ]
  ],
  "results": [
    {}
  ],
  "num_shots": 123,
  "norb": 123,
  "nelec": {
    "[0]": 123,
    "[1]": 123
  },
  "params": {}
}

Authorizations

HAIQU_API_KEY
string
query
required

Body

application/json

Data model for SKQD postprocessing job submission.

experiment_id
string
required
h1e
number[][]
required
h2e
number[][][][]
required
results
Results · object[]
required
num_shots
integer
required
norb
integer
required
nelec
Nelec · tuple
required
name
string
default:SKQD Postprocessing
params
Params · object

Response

Successful Response

Job model for SKQD postprocessing jobs.

Output data (energy, subspace_dimension, iteration_history) is stored in the inherited info dict so that adding or removing output fields does not require a database migration.

id
string
required
user_id
integer
required
experiment_id
string
required
status
enum<string>
required

Class for job status.

Available options:
Submitted,
Initializing,
Queued,
Validating,
Running,
Cancelled,
Done,
Error
job_type
enum<string>
required

Class for job types.

Available options:
User local job,
Analytics,
Device specific analytics,
Data Loading,
Run,
State Compression,
Transpilation,
Variational,
Pretraining,
SKQD
creation_date
string<date-time>
required
name
string | null
description
string | null
device_id
string | null
default:Haiqu OS
run_date
string<date-time> | null
finish_date
string<date-time> | null
logs
string | null
quality
number | null
info
Info · object
time
number | null
h1e
number[][] | null
h2e
number[][][][] | null
results
Results · object[] | null
num_shots
integer | null
norb
integer | null
nelec
Nelec · object
params
Params · object