QDMI on IQM 1.6.1
Implementation of a QDMI device for IQM Quantum Computers
Loading...
Searching...
No Matches
calibration.h File Reference

IQM-specific calibration job submission. More...

#include "iqm_qdmi/device.h"

Go to the source code of this file.

Functions

int IQM_QDMI_device_job_submit_calibration (IQM_QDMI_Device_Job job)
 Submit an IQM calibration job.

Detailed Description

IQM-specific calibration job submission.

Function Documentation

◆ IQM_QDMI_device_job_submit_calibration()

int IQM_QDMI_device_job_submit_calibration ( IQM_QDMI_Device_Job job)

Submit an IQM calibration job.

Create the job with IQM_QDMI_device_session_create_device_job and use IQM_QDMI_device_job_set_programs to set one program in QDMI_PROGRAM_FORMAT_IQMJSON containing the IQM Server calibration configuration as a JSON string with exactly one trailing NUL byte. The program format, shot count, and circuit-specific parameters are ignored. Calibration support is checked during session initialization.

On success, use the normal QDMI job check, wait, cancel, and free functions. QDMI_JOB_RESULT_CUSTOM1 returns the new calibration set ID and refreshes the session's calibration data, invalidating previously queried operation handles. Program-format and shot-count queries return QDMI_ERROR_NOTSUPPORTED.

Parameters
jobAn unsubmitted job belonging to an initialized IQM session.
Returns
QDMI_SUCCESS if the job was submitted; QDMI_ERROR_INVALIDARGUMENT for a null job or an unset program; QDMI_ERROR_BADSTATE for a job that is not in QDMI_JOB_STATUS_CREATED; QDMI_ERROR_NOTSUPPORTED if calibration is unavailable or the job contains multiple programs; QDMI_ERROR_PERMISSIONDENIED for an authentication failure; QDMI_ERROR_OUTOFMEM for an allocation failure; QDMI_ERROR_FATAL otherwise.