334 void *value,
size_t *size_ret);
404 void *value,
size_t *size_ret);
458 void *value,
size_t *size_ret);
543 const QDMI_Site *sites,
size_t num_params,
const double *params,
819 void *data,
size_t *size_ret);
Defines all enums used within QDMI across the QDMI Client Interface and the QDMI Device Interface.
enum QDMI_JOB_STATUS_T QDMI_Job_Status
Job status type.
Definition constants.h:386
enum QDMI_JOB_RESULT_T QDMI_Job_Result
Job result type.
Definition constants.h:644
enum QDMI_SITE_PROPERTY_T QDMI_Site_Property
Site property type.
Definition constants.h:317
enum QDMI_OPERATION_PROPERTY_T QDMI_Operation_Property
Operation property type.
Definition constants.h:362
enum QDMI_DEVICE_PROPERTY_T QDMI_Device_Property
Device property type.
Definition constants.h:248
struct QDMI_Device_impl_d * QDMI_Device
A handle for a device implementing the QDMI Device Interface.
Definition client.h:63
int QDMI_job_submit(QDMI_Job job)
Submit a job to the device.
QDMI_JOB_PARAMETER_T
Enum of the job parameters that can be set.
Definition client.h:600
enum QDMI_JOB_PARAMETER_T QDMI_Job_Parameter
Job parameter type.
Definition client.h:650
int QDMI_job_set_parameter(QDMI_Job job, QDMI_Job_Parameter param, size_t size, const void *value)
Set a parameter for a job.
void QDMI_job_free(QDMI_Job job)
Free a job.
int QDMI_device_create_job(QDMI_Device device, QDMI_Job *job)
Create a job.
struct QDMI_Job_impl_d * QDMI_Job
A handle for a client-side job.
Definition client.h:575
int QDMI_job_get_results(QDMI_Job job, QDMI_Job_Result result, size_t size, void *data, size_t *size_ret)
Retrieve the results of a job.
int QDMI_job_wait(QDMI_Job job)
Wait for a job to finish.
int QDMI_job_cancel(QDMI_Job job)
Cancel an already submitted job.
int QDMI_job_check(QDMI_Job job, QDMI_Job_Status *status)
Check the status of a job.
@ QDMI_JOB_PARAMETER_CUSTOM1
This enum value is reserved for a custom parameter.
Definition client.h:638
@ QDMI_JOB_PARAMETER_CUSTOM4
Definition client.h:644
@ QDMI_JOB_PARAMETER_SHOTSNUM
size_t The number of shots to execute for a quantum circuit job.
Definition client.h:623
@ QDMI_JOB_PARAMETER_CUSTOM3
Definition client.h:642
@ QDMI_JOB_PARAMETER_CUSTOM5
Definition client.h:646
@ QDMI_JOB_PARAMETER_CUSTOM2
Definition client.h:640
@ QDMI_JOB_PARAMETER_MAX
The maximum value of the enum.
Definition client.h:631
@ QDMI_JOB_PARAMETER_PROGRAM
void* The program to be executed.
Definition client.h:618
@ QDMI_JOB_PARAMETER_PROGRAMFORMAT
QDMI_Program_Format The format of the program to be executed.
Definition client.h:608
int QDMI_device_query_device_property(QDMI_Device device, QDMI_Device_Property prop, size_t size, void *value, size_t *size_ret)
Query a device property.
int QDMI_device_query_operation_property(QDMI_Device device, QDMI_Operation operation, size_t num_sites, const QDMI_Site *sites, size_t num_params, const double *params, QDMI_Operation_Property prop, size_t size, void *value, size_t *size_ret)
Query an operation property.
int QDMI_device_query_site_property(QDMI_Device device, QDMI_Site site, QDMI_Site_Property prop, size_t size, void *value, size_t *size_ret)
Query a site property.
void QDMI_session_free(QDMI_Session session)
Free a session.
int QDMI_session_set_parameter(QDMI_Session session, QDMI_Session_Parameter param, size_t size, const void *value)
Set a parameter for a session.
struct QDMI_Session_impl_d * QDMI_Session
A handle for a session.
Definition client.h:88
int QDMI_session_query_session_property(QDMI_Session session, QDMI_Session_Property prop, size_t size, void *value, size_t *size_ret)
Query a property of a session.
QDMI_SESSION_PROPERTY_T
Enum of the session properties that can be queried via QDMI_session_query_session_property.
Definition client.h:245
int QDMI_session_alloc(QDMI_Session *session)
Allocate a new session.
QDMI_SESSION_PARAMETER_T
Enum of the session parameters that can be set via QDMI_session_set_parameter.
Definition client.h:114
enum QDMI_SESSION_PARAMETER_T QDMI_Session_Parameter
Session parameter type.
Definition client.h:163
enum QDMI_SESSION_PROPERTY_T QDMI_Session_Property
Session property type.
Definition client.h:277
int QDMI_session_init(QDMI_Session session)
Initialize a session.
@ QDMI_SESSION_PROPERTY_CUSTOM3
Definition client.h:269
@ QDMI_SESSION_PROPERTY_CUSTOM2
Definition client.h:267
@ QDMI_SESSION_PROPERTY_CUSTOM1
This enum value is reserved for a custom property.
Definition client.h:265
@ QDMI_SESSION_PROPERTY_CUSTOM5
Definition client.h:273
@ QDMI_SESSION_PROPERTY_MAX
The maximum value of the enum.
Definition client.h:258
@ QDMI_SESSION_PROPERTY_DEVICES
QDMI_Device* (QDMI_Device list) The devices the client has access to.
Definition client.h:250
@ QDMI_SESSION_PROPERTY_CUSTOM4
Definition client.h:271
@ QDMI_SESSION_PARAMETER_CUSTOM1
This enum value is reserved for a custom parameter.
Definition client.h:151
@ QDMI_SESSION_PARAMETER_CUSTOM3
Definition client.h:155
@ QDMI_SESSION_PARAMETER_MAX
The maximum value of the enum.
Definition client.h:144
@ QDMI_SESSION_PARAMETER_CUSTOM5
Definition client.h:159
@ QDMI_SESSION_PARAMETER_CUSTOM2
Definition client.h:153
@ QDMI_SESSION_PARAMETER_CUSTOM4
Definition client.h:157
@ QDMI_SESSION_PARAMETER_USERNAME
char* (string) The username to use for the session.
Definition client.h:128
@ QDMI_SESSION_PARAMETER_TOKEN
char* (string) The token to use for the session.
Definition client.h:121
@ QDMI_SESSION_PARAMETER_PROJECTID
char* (string) The project ID to use for the session.
Definition client.h:135
Defines all types used within QDMI across the QDMI Client Interface and the QDMI Device Interface.
struct QDMI_Site_impl_d * QDMI_Site
A handle for a site.
Definition types.h:53
struct QDMI_Operation_impl_d * QDMI_Operation
A handle for an operation.
Definition types.h:72