QDMI v1.3.4-dev
Quantum Device Management Interface
Loading...
Searching...
No Matches
constants.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 - 2026 QDMI Maintainers
3 * All rights reserved.
4 *
5 * Licensed under the Apache License v2.0 with LLVM Exceptions (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * https://llvm.org/LICENSE.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 *
17 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
18 */
19
24
25#ifndef QDMI_CONSTANTS_H
26#define QDMI_CONSTANTS_H
27
28#include <stddef.h>
29#include <stdint.h>
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
35// The following clang-tidy warnings cannot be addressed because this header is
36// used from both C and C++ code.
37// NOLINTBEGIN(performance-enum-size, modernize-use-using)
38
58
68#define QDMI_CUSTOM_ENUM_VALUE_MIN 999999995
70#define QDMI_CUSTOM_ENUM_VALUE_MAX INT32_MAX
71
173
176
226
229
323
326
514
517
536
539
751
754
903
906
931
934
936#define QDMI_PROGRAM_ID_SIZE 64U
937
945#define QDMI_MAKE_VERSION(major, minor, patch) \
946 ((((uint32_t)(major) & 0x3FFU) << 22U) | \
947 (((uint32_t)(minor) & 0x3FFU) << 12U) | ((uint32_t)(patch) & 0xFFFU))
948
950#define QDMI_VERSION_MAJOR(version) (((uint32_t)(version) >> 22U) & 0x3FFU)
952#define QDMI_VERSION_MINOR(version) (((uint32_t)(version) >> 12U) & 0x3FFU)
954#define QDMI_VERSION_PATCH(version) ((uint32_t)(version) & 0xFFFU)
955
963
966
1031typedef struct QDMI_PROGRAM_FORMAT_T {
1032 uint32_t version;
1033 uint32_t encoding;
1037
1038#ifdef __cplusplus
1039static_assert(sizeof(QDMI_Program_Format) == 136U);
1040static_assert(alignof(QDMI_Program_Format) == 4U);
1041static_assert(offsetof(QDMI_Program_Format, version) == 0U);
1042static_assert(offsetof(QDMI_Program_Format, encoding) == 4U);
1043static_assert(offsetof(QDMI_Program_Format, id) == 8U);
1044static_assert(offsetof(QDMI_Program_Format, profile) == 72U);
1045#else
1046_Static_assert(sizeof(QDMI_Program_Format) == 136U,
1047 "QDMI_Program_Format must be 136 bytes");
1048_Static_assert(_Alignof(QDMI_Program_Format) == 4U,
1049 "QDMI_Program_Format must have four-byte alignment");
1050_Static_assert(offsetof(QDMI_Program_Format, version) == 0U,
1051 "QDMI_Program_Format.version must start at byte 0");
1052_Static_assert(offsetof(QDMI_Program_Format, encoding) == 4U,
1053 "QDMI_Program_Format.encoding must start at byte 4");
1054_Static_assert(offsetof(QDMI_Program_Format, id) == 8U,
1055 "QDMI_Program_Format.id must start at byte 8");
1056_Static_assert(offsetof(QDMI_Program_Format, profile) == 72U,
1057 "QDMI_Program_Format.profile must start at byte 72");
1058#endif
1059
1066static inline int
1067QDMI_program_format_equal(const QDMI_Program_Format *const lhs,
1068 const QDMI_Program_Format *const rhs) {
1069 if (lhs == NULL || rhs == NULL || lhs->version != rhs->version ||
1070 lhs->encoding != rhs->encoding) {
1071 return 0;
1072 }
1073 for (size_t index = 0U; index < QDMI_PROGRAM_ID_SIZE; ++index) {
1074 if (lhs->id[index] != rhs->id[index] ||
1075 lhs->profile[index] != rhs->profile[index]) {
1076 return 0;
1077 }
1078 }
1079 return 1;
1080}
1081
1083#define QDMI_PROGRAM_FEATURE_ID_SIZE 64U
1084
1086#define QDMI_PROGRAM_CONSTRAINT_ID_SIZE 64U
1087
1117
1123#define QDMI_PROGRAM_FEATURE_UNCONSTRAINED(feature_id, feature_value) \
1124 {feature_id, feature_value, "", 0U}
1125
1131#define QDMI_PROGRAM_FEATURE_MID_CIRCUIT_MEASUREMENT "mid-circuit-measurement"
1136#define QDMI_PROGRAM_FEATURE_MEASURED_QUBIT_REUSE "measured-qubit-reuse"
1142#define QDMI_PROGRAM_FEATURE_MEASUREMENT_RESULT_USE "measurement-result-use"
1148#define QDMI_PROGRAM_FEATURE_BOOLEAN_COMPUTATION "boolean-computation"
1154#define QDMI_PROGRAM_FEATURE_FORWARD_BRANCHING "forward-branching"
1160#define QDMI_PROGRAM_FEATURE_COUNTED_ITERATION "counted-iteration"
1165#define QDMI_PROGRAM_FEATURE_CONDITIONAL_LOOP "conditional-loop"
1171#define QDMI_PROGRAM_FEATURE_MULTIWAY_BRANCHING "multiway-branching"
1177#define QDMI_PROGRAM_FEATURE_INTEGER_COMPUTATION "integer-computation"
1183#define QDMI_PROGRAM_FEATURE_FLOAT_COMPUTATION "float-computation"
1189#define QDMI_PROGRAM_FEATURE_IR_FUNCTIONS "ir-functions"
1194#define QDMI_PROGRAM_FEATURE_MULTIPLE_RETURN_POINTS "multiple-return-points"
1199#define QDMI_PROGRAM_FEATURE_DYNAMIC_QUBIT_MANAGEMENT "dynamic-qubit-management"
1204#define QDMI_PROGRAM_FEATURE_DYNAMIC_RESULT_MANAGEMENT \
1205 "dynamic-result-management"
1206
1211#define QDMI_PROGRAM_FEATURE_ARRAYS "arrays"
1212
1219#define QDMI_PROGRAM_CONSTRAINT_MAX_CONTROL_FLOW_NESTING_DEPTH \
1220 "max-control-flow-nesting-depth"
1221
1227#define QDMI_PROGRAM_CONSTRAINT_MAX_ITERATION_COUNT "max-iteration-count"
1233#define QDMI_PROGRAM_CONSTRAINT_MAX_CASE_COUNT "max-case-count"
1234
1381
1384
1420
1423
1424// NOLINTEND(performance-enum-size, modernize-use-using)
1425
1426#ifdef __cplusplus
1427} // extern "C"
1428#endif
1429
1430#endif // QDMI_CONSTANTS_H
QDMI_JOB_STATUS_T
Enum of the status a job can have.
Definition constants.h:912
@ QDMI_JOB_STATUS_CANCELED
The job was canceled, and the result is not available.
Definition constants.h:927
@ QDMI_JOB_STATUS_CREATED
The job was created and can be configured via QDMI_job_set_parameter.
Definition constants.h:917
@ QDMI_JOB_STATUS_SUBMITTED
The job was submitted.
Definition constants.h:919
@ QDMI_JOB_STATUS_QUEUED
The job was received, and is waiting to be executed.
Definition constants.h:921
@ QDMI_JOB_STATUS_FAILED
One or more programs failed, or another error occurred in the lifecycle.
Definition constants.h:929
@ QDMI_JOB_STATUS_RUNNING
The job is running, and the result is not yet available.
Definition constants.h:923
@ QDMI_JOB_STATUS_DONE
The job is done, and the result can be retrieved.
Definition constants.h:925
enum QDMI_DEVICE_STATUS_T QDMI_Device_Status
Device status type.
Definition constants.h:538
enum QDMI_JOB_STATUS_T QDMI_Job_Status
Job status type.
Definition constants.h:933
QDMI_DEVICE_JOB_PARAMETER_T
Enum of the device job parameters that can be set via QDMI_device_job_set_parameter.
Definition constants.h:183
@ QDMI_DEVICE_JOB_PARAMETER_CUSTOM_MAX
The largest syntactically valid custom value.
Definition constants.h:224
@ QDMI_DEVICE_JOB_PARAMETER_SHOTSNUM
size_t The number of shots to execute for a quantum circuit job.
Definition constants.h:198
@ QDMI_DEVICE_JOB_PARAMETER_MAX
The maximum value of the enum.
Definition constants.h:207
@ QDMI_DEVICE_JOB_PARAMETER_CUSTOM1
This enum value is reserved for a custom parameter.
Definition constants.h:214
@ QDMI_DEVICE_JOB_PARAMETER_PROGRAMFORMAT
QDMI_Program_Format The format of the program to be executed.
Definition constants.h:193
@ QDMI_DEVICE_JOB_PARAMETER_CUSTOM4
Definition constants.h:220
@ QDMI_DEVICE_JOB_PARAMETER_CUSTOM2
Definition constants.h:216
@ QDMI_DEVICE_JOB_PARAMETER_CUSTOM5
Definition constants.h:222
@ QDMI_DEVICE_JOB_PARAMETER_CUSTOM3
Definition constants.h:218
QDMI_STATUS
Status codes returned by the API.
Definition constants.h:42
@ QDMI_ERROR_NOTFOUND
Element not found.
Definition constants.h:49
@ QDMI_ERROR_OUTOFMEM
Out of memory.
Definition constants.h:46
@ QDMI_ERROR_NOTSUPPORTED
Definition constants.h:53
@ QDMI_WARN_GENERAL
A general warning.
Definition constants.h:43
@ QDMI_ERROR_INVALIDARGUMENT
Invalid argument.
Definition constants.h:51
@ QDMI_ERROR_FATAL
A fatal error.
Definition constants.h:45
@ QDMI_SUCCESS
The operation was successful.
Definition constants.h:44
@ QDMI_ERROR_BADSTATE
Resource is in the wrong state for the operation.
Definition constants.h:55
@ QDMI_ERROR_OUTOFRANGE
Out of range.
Definition constants.h:50
@ QDMI_ERROR_NOTIMPLEMENTED
Not implemented.
Definition constants.h:47
@ QDMI_ERROR_PERMISSIONDENIED
Permission denied.
Definition constants.h:52
@ QDMI_ERROR_TIMEOUT
Operation timed out.
Definition constants.h:56
@ QDMI_ERROR_LIBNOTFOUND
Library not found.
Definition constants.h:48
#define QDMI_PROGRAM_ID_SIZE
Maximum bytes, including the terminating NUL, in a format or profile ID.
Definition constants.h:936
QDMI_DEVICE_PULSE_SUPPORT_LEVEL_T
Enum to indicate the level of pulse support a device has.
Definition constants.h:1388
@ QDMI_DEVICE_PULSE_SUPPORT_LEVEL_CHANNEL
The device supports pulse-level control at an abstraction level of QDMI_Pulse_Channel.
Definition constants.h:1411
@ QDMI_DEVICE_PULSE_SUPPORT_LEVEL_NONE
The device does not support pulse-level control.
Definition constants.h:1390
@ QDMI_DEVICE_PULSE_SUPPORT_LEVEL_SITEANDCHANNEL
The device supports pulse-level control at an abstraction level of QDMI_Site and QDMI_Pulse_Channel.
Definition constants.h:1418
@ QDMI_DEVICE_PULSE_SUPPORT_LEVEL_SITE
The device supports pulse-level control at an abstraction level of QDMI_Site.
Definition constants.h:1401
enum QDMI_JOB_RESULT_T QDMI_Job_Result
Job result type.
Definition constants.h:1383
enum QDMI_DEVICE_JOB_PARAMETER_T QDMI_Device_Job_Parameter
Device job parameter type.
Definition constants.h:228
enum QDMI_SITE_PROPERTY_T QDMI_Site_Property
Site property type.
Definition constants.h:753
QDMI_SITE_PROPERTY_T
Definition constants.h:544
@ QDMI_SITE_PROPERTY_INDEX
size_t The unique index (or ID) to identify the site in a program.
Definition constants.h:556
@ QDMI_SITE_PROPERTY_XCOORDINATE
int64_t The raw, unscaled X-coordinate of the site.
Definition constants.h:603
@ QDMI_SITE_PROPERTY_ZEXTENT
uint64_t The raw, unscaled extent of a zone along the Z-axis.
Definition constants.h:708
@ QDMI_SITE_PROPERTY_CUSTOM1
This enum value is reserved for a custom property.
Definition constants.h:739
@ QDMI_SITE_PROPERTY_CUSTOM4
Definition constants.h:745
@ QDMI_SITE_PROPERTY_XEXTENT
uint64_t The raw, unscaled extent of a zone along the X-axis.
Definition constants.h:676
@ QDMI_SITE_PROPERTY_CUSTOM2
Definition constants.h:741
@ QDMI_SITE_PROPERTY_CUSTOM3
Definition constants.h:743
@ QDMI_SITE_PROPERTY_T1
uint64_t The raw, unscaled T1 time of a site.
Definition constants.h:567
@ QDMI_SITE_PROPERTY_ISZONE
bool Whether the site is a zone.
Definition constants.h:660
@ QDMI_SITE_PROPERTY_T2
uint64_t The raw, unscaled T2 time of a site.
Definition constants.h:578
@ QDMI_SITE_PROPERTY_YEXTENT
uint64_t The raw, unscaled extent of a zone along the Y-axis.
Definition constants.h:692
@ QDMI_SITE_PROPERTY_MODULEINDEX
uint64_t an unsigned integer that uniquely identifies the module.
Definition constants.h:714
@ QDMI_SITE_PROPERTY_SUBMODULEINDEX
uint64_t an unsigned integer uniquely identifying the submodule within a module.
Definition constants.h:723
@ QDMI_SITE_PROPERTY_YCOORDINATE
int64_t The raw, unscaled Y-coordinate of the site.
Definition constants.h:623
@ QDMI_SITE_PROPERTY_ZCOORDINATE
int64_t The raw, unscaled Z-coordinate of the site.
Definition constants.h:643
@ QDMI_SITE_PROPERTY_NAME
Definition constants.h:583
@ QDMI_SITE_PROPERTY_MAX
The maximum value of the enum.
Definition constants.h:732
@ QDMI_SITE_PROPERTY_CUSTOM5
Definition constants.h:747
@ QDMI_SITE_PROPERTY_CUSTOM_MAX
The largest syntactically valid custom value.
Definition constants.h:749
QDMI_DEVICE_JOB_PROPERTY_T
Enum of the device job properties that can be queried via QDMI_device_job_query_property as part of t...
Definition constants.h:237
@ QDMI_DEVICE_JOB_PROPERTY_CUSTOM5
Definition constants.h:319
@ QDMI_DEVICE_JOB_PROPERTY_PROGRAM
void* The program to be executed.
Definition constants.h:267
@ QDMI_DEVICE_JOB_PROPERTY_CUSTOM1
This enum value is reserved for a custom parameter.
Definition constants.h:311
@ QDMI_DEVICE_JOB_PROPERTY_QUEUEPOSITION
size_t The current number of jobs ahead of this job in its queue.
Definition constants.h:288
@ QDMI_DEVICE_JOB_PROPERTY_PROGRAMFORMAT
QDMI_Program_Format The format of the program to be executed.
Definition constants.h:259
@ QDMI_DEVICE_JOB_PROPERTY_CUSTOM4
Definition constants.h:317
@ QDMI_DEVICE_JOB_PROPERTY_PROGRAMSNUM
size_t The number of programs in the job.
Definition constants.h:295
@ QDMI_DEVICE_JOB_PROPERTY_CUSTOM3
Definition constants.h:315
@ QDMI_DEVICE_JOB_PROPERTY_SHOTSNUM
size_t The number of shots to execute for a quantum circuit job.
Definition constants.h:273
@ QDMI_DEVICE_JOB_PROPERTY_MAX
The maximum value of the enum.
Definition constants.h:304
@ QDMI_DEVICE_JOB_PROPERTY_CUSTOM2
Definition constants.h:313
@ QDMI_DEVICE_JOB_PROPERTY_ID
char* (string) The job's ID.
Definition constants.h:248
@ QDMI_DEVICE_JOB_PROPERTY_CUSTOM_MAX
The largest syntactically valid custom value.
Definition constants.h:321
#define QDMI_CUSTOM_ENUM_VALUE_MAX
Last value in every provider-defined enum range.
Definition constants.h:70
#define QDMI_CUSTOM_ENUM_VALUE_MIN
First value in every provider-defined enum range.
Definition constants.h:68
enum QDMI_DEVICE_JOB_PROPERTY_T QDMI_Device_Job_Property
Device job property type.
Definition constants.h:325
QDMI_DEVICE_SESSION_PARAMETER_T
Enum of the device session parameters that can be set via QDMI_device_session_set_parameter.
Definition constants.h:78
@ QDMI_DEVICE_SESSION_PARAMETER_MAX
The maximum value of the enum.
Definition constants.h:154
@ QDMI_DEVICE_SESSION_PARAMETER_CUSTOM_MAX
The largest syntactically valid custom value.
Definition constants.h:171
@ QDMI_DEVICE_SESSION_PARAMETER_PASSWORD
char* (string) The password to use for the session.
Definition constants.h:133
@ QDMI_DEVICE_SESSION_PARAMETER_CUSTOM4
Definition constants.h:167
@ QDMI_DEVICE_SESSION_PARAMETER_TOKEN
char* (string) A token to be used in the session initialization for authenticating with the device.
Definition constants.h:96
@ QDMI_DEVICE_SESSION_PARAMETER_CUSTOM5
Definition constants.h:169
@ QDMI_DEVICE_SESSION_PARAMETER_USERNAME
char* (string) The username to use for the device session.
Definition constants.h:126
@ QDMI_DEVICE_SESSION_PARAMETER_CUSTOM2
Definition constants.h:163
@ QDMI_DEVICE_SESSION_PARAMETER_CUSTOM3
Definition constants.h:165
@ QDMI_DEVICE_SESSION_PARAMETER_BASEURL
char* (string) The baseURL or API endpoint to be used for accessing the device within the session.
Definition constants.h:87
@ QDMI_DEVICE_SESSION_PARAMETER_CUSTOM1
This enum value is reserved for a custom parameter.
Definition constants.h:161
@ QDMI_DEVICE_SESSION_PARAMETER_CHILDDEVICE
QDMI_Child_Device The child device to establish the session with.
Definition constants.h:145
@ QDMI_DEVICE_SESSION_PARAMETER_AUTHURL
char* (string) The URL to an authentication server used as part of the authentication procedure.
Definition constants.h:119
@ QDMI_DEVICE_SESSION_PARAMETER_AUTHFILE
char* (string) A file path to a file containing authentication information.
Definition constants.h:105
QDMI_DEVICE_STATUS_T
Enum of different status the device can be in.
Definition constants.h:519
@ QDMI_DEVICE_STATUS_IDLE
The device is idle.
Definition constants.h:521
@ QDMI_DEVICE_STATUS_OFFLINE
The device is offline.
Definition constants.h:520
@ QDMI_DEVICE_STATUS_ERROR
The device is in an error state.
Definition constants.h:523
@ QDMI_DEVICE_STATUS_MAX
The maximum value of the enum.
Definition constants.h:534
@ QDMI_DEVICE_STATUS_CALIBRATION
The device is in calibration.
Definition constants.h:525
@ QDMI_DEVICE_STATUS_MAINTENANCE
The device is in maintenance.
Definition constants.h:524
@ QDMI_DEVICE_STATUS_BUSY
The device is busy.
Definition constants.h:522
QDMI_JOB_RESULT_T
Enum of the formats the results can be returned in.
Definition constants.h:1240
@ QDMI_JOB_RESULT_PROBABILITIES_DENSE
double* (double list) The probabilities of the result.
Definition constants.h:1305
@ QDMI_JOB_RESULT_CUSTOM_MAX
The largest syntactically valid custom value.
Definition constants.h:1379
@ QDMI_JOB_RESULT_MAX
The maximum value of the enum.
Definition constants.h:1362
@ QDMI_JOB_RESULT_STATEVECTOR_DENSE
double* (double list) The state vector of the result.
Definition constants.h:1296
@ QDMI_JOB_RESULT_HIST_KEYS
char* (string) The keys for the histogram of the results.
Definition constants.h:1280
@ QDMI_JOB_RESULT_PROBABILITIES_SPARSE_VALUES
double* (double list) The values for the sparse probabilities of the result.
Definition constants.h:1342
@ QDMI_JOB_RESULT_PROGRAMOUTPUT
void* The complete format-native program output.
Definition constants.h:1353
@ QDMI_JOB_RESULT_HIST_VALUES
size_t* (size_t list) The values for the histogram of the results.
Definition constants.h:1286
@ QDMI_JOB_RESULT_STATEVECTOR_SPARSE_VALUES
double* (double list) The values for the sparse state vector of the result.
Definition constants.h:1323
@ QDMI_JOB_RESULT_CUSTOM1
This enum value is reserved for a custom result.
Definition constants.h:1369
@ QDMI_JOB_RESULT_CUSTOM5
Definition constants.h:1377
@ QDMI_JOB_RESULT_CUSTOM2
Definition constants.h:1371
@ QDMI_JOB_RESULT_STATEVECTOR_SPARSE_KEYS
char* (string) The keys for the sparse state vector of the result.
Definition constants.h:1314
@ QDMI_JOB_RESULT_SHOTS
char* (string) The results of the individual shots as a comma-separated list.
Definition constants.h:1268
@ QDMI_JOB_RESULT_CUSTOM4
Definition constants.h:1375
@ QDMI_JOB_RESULT_CUSTOM3
Definition constants.h:1373
@ QDMI_JOB_RESULT_PROBABILITIES_SPARSE_KEYS
char* (string) The keys for the sparse probabilities of the result.
Definition constants.h:1333
QDMI_OPERATION_PROPERTY_T
Definition constants.h:760
@ QDMI_OPERATION_PROPERTY_CUSTOM2
Definition constants.h:893
@ QDMI_OPERATION_PROPERTY_MAX
The maximum value of the enum.
Definition constants.h:884
@ QDMI_OPERATION_PROPERTY_BLOCKINGRADIUS
uint64_t The raw, unscaled blocking radius of the operation.
Definition constants.h:817
@ QDMI_OPERATION_PROPERTY_ISZONED
bool Whether the operation is a zoned (global) operation.
Definition constants.h:844
@ QDMI_OPERATION_PROPERTY_QUBITSNUM
size_t The number of qubits involved in the operation.
Definition constants.h:764
@ QDMI_OPERATION_PROPERTY_NAME
char* (string) The string identifier of the operation.
Definition constants.h:762
@ QDMI_OPERATION_PROPERTY_PARAMETERSNUM
size_t The number of floating point parameters the operation takes.
Definition constants.h:766
@ QDMI_OPERATION_PROPERTY_INTERACTIONRADIUS
uint64_t The raw, unscaled interaction radius of the operation.
Definition constants.h:798
@ QDMI_OPERATION_PROPERTY_CUSTOM1
This enum value is reserved for a custom property.
Definition constants.h:891
@ QDMI_OPERATION_PROPERTY_CUSTOM3
Definition constants.h:895
@ QDMI_OPERATION_PROPERTY_DURATION
uint64_t The raw, unscaled duration of an operation.
Definition constants.h:777
@ QDMI_OPERATION_PROPERTY_CUSTOM_MAX
The largest syntactically valid custom value.
Definition constants.h:901
@ QDMI_OPERATION_PROPERTY_MEANSHUTTLINGSPEED
uint64_t The raw, unscaled mean shuttling speed of an operation.
Definition constants.h:875
@ QDMI_OPERATION_PROPERTY_CUSTOM5
Definition constants.h:899
@ QDMI_OPERATION_PROPERTY_IDLINGFIDELITY
double Fidelity of qubits idling during a global operation.
Definition constants.h:830
@ QDMI_OPERATION_PROPERTY_FIDELITY
double The fidelity of an operation.
Definition constants.h:779
@ QDMI_OPERATION_PROPERTY_SITES
QDMI_Site* (list) The sites to which the operation is applicable.
Definition constants.h:857
@ QDMI_OPERATION_PROPERTY_CUSTOM4
Definition constants.h:897
enum QDMI_DEVICE_SESSION_PARAMETER_T QDMI_Device_Session_Parameter
Device session parameter type.
Definition constants.h:175
enum QDMI_OPERATION_PROPERTY_T QDMI_Operation_Property
Operation property type.
Definition constants.h:905
enum QDMI_PROGRAM_ENCODING_T QDMI_Program_Encoding
Program encoding type.
Definition constants.h:965
QDMI_DEVICE_PROPERTY_T
Definition constants.h:334
@ QDMI_DEVICE_PROPERTY_QUEUELENGTH
size_t The current number of jobs waiting to access the device.
Definition constants.h:486
@ QDMI_DEVICE_PROPERTY_MINATOMDISTANCE
uint64_t The raw, unscaled minimum required distance between qubits during quantum computation.
Definition constants.h:448
@ QDMI_DEVICE_PROPERTY_NAME
char* (string) The name of the device.
Definition constants.h:336
@ QDMI_DEVICE_PROPERTY_CHILDDEVICES
QDMI_Child_Device* (QDMI_Child_Device list) A list of device handles corresponding to the device's ch...
Definition constants.h:471
@ QDMI_DEVICE_PROPERTY_LENGTHSCALEFACTOR
double A scale factor for all length values.
Definition constants.h:410
@ QDMI_DEVICE_PROPERTY_CUSTOM3
Definition constants.h:506
@ QDMI_DEVICE_PROPERTY_CUSTOM2
Definition constants.h:504
@ QDMI_DEVICE_PROPERTY_LENGTHUNIT
char* (string) The length unit reported by the device.
Definition constants.h:400
@ QDMI_DEVICE_PROPERTY_NEEDSCALIBRATION
size_t Whether the device needs calibration.
Definition constants.h:383
@ QDMI_DEVICE_PROPERTY_STATUS
QDMI_Device_Status The status of the device.
Definition constants.h:340
@ QDMI_DEVICE_PROPERTY_VERSION
char* (string) The version of the device.
Definition constants.h:338
@ QDMI_DEVICE_PROPERTY_CUSTOM_MAX
The largest syntactically valid custom value.
Definition constants.h:512
@ QDMI_DEVICE_PROPERTY_LIBRARYVERSION
char* (string) The implemented version of QDMI.
Definition constants.h:342
@ QDMI_DEVICE_PROPERTY_PULSESUPPORT
QDMI_Device_Pulse_Support_Level Whether the device supports pulse-level control.
Definition constants.h:391
@ QDMI_DEVICE_PROPERTY_SUPPORTEDPROGRAMFORMATS
QDMI_Program_Format* (QDMI_Program_Format list) The exact program formats supported by the device.
Definition constants.h:457
@ QDMI_DEVICE_PROPERTY_QUBITSNUM
size_t The number of qubits in the device.
Definition constants.h:344
@ QDMI_DEVICE_PROPERTY_COUPLINGMAP
QDMI_Site* (QDMI_Site list) The coupling map of the device.
Definition constants.h:375
@ QDMI_DEVICE_PROPERTY_DURATIONSCALEFACTOR
double A scale factor for all duration values.
Definition constants.h:429
@ QDMI_DEVICE_PROPERTY_OPERATIONS
QDMI_Operation* (QDMI_Operation list) The operations supported by the device.
Definition constants.h:363
@ QDMI_DEVICE_PROPERTY_DURATIONUNIT
char* (string) The duration unit reported by the device.
Definition constants.h:419
@ QDMI_DEVICE_PROPERTY_CUSTOM1
This enum value is reserved for a custom property.
Definition constants.h:502
@ QDMI_DEVICE_PROPERTY_CUSTOM4
Definition constants.h:508
@ QDMI_DEVICE_PROPERTY_CUSTOM5
Definition constants.h:510
@ QDMI_DEVICE_PROPERTY_SITES
QDMI_Site* (QDMI_Site list) The sites of the device.
Definition constants.h:356
@ QDMI_DEVICE_PROPERTY_MAX
The maximum value of the enum.
Definition constants.h:495
QDMI_PROGRAM_ENCODING_T
Encoding of a submitted payload.
Definition constants.h:957
@ QDMI_PROGRAM_ENCODING_BINARY
A nonempty arbitrary byte sequence.
Definition constants.h:961
@ QDMI_PROGRAM_ENCODING_TEXT
Text with exactly one trailing NUL and no earlier NUL.
Definition constants.h:959
#define QDMI_PROGRAM_CONSTRAINT_ID_SIZE
Maximum bytes, including the terminating NUL, in a constraint ID.
Definition constants.h:1086
enum QDMI_DEVICE_PULSE_SUPPORT_LEVEL_T QDMI_Device_Pulse_Support_Level
Pulse support level type.
Definition constants.h:1422
#define QDMI_PROGRAM_FEATURE_ID_SIZE
Maximum bytes, including the terminating NUL, in a feature ID.
Definition constants.h:1083
enum QDMI_DEVICE_PROPERTY_T QDMI_Device_Property
Device property type.
Definition constants.h:516
One optional feature guarantee for an exact program format.
Definition constants.h:1110
char constraint_id[QDMI_PROGRAM_CONSTRAINT_ID_SIZE]
NUL-terminated constraint ID, or empty for no constraint.
Definition constants.h:1113
uint64_t value
Feature-specific value.
Definition constants.h:1112
uint64_t constraint_value
Constraint-specific value.
Definition constants.h:1115
Exact program format accepted by a device.
Definition constants.h:1031
char profile[QDMI_PROGRAM_ID_SIZE]
NUL-terminated profile ID.
Definition constants.h:1035
char id[QDMI_PROGRAM_ID_SIZE]
NUL-terminated format ID.
Definition constants.h:1034
uint32_t version
Exact version packed with QDMI_MAKE_VERSION.
Definition constants.h:1032
uint32_t encoding
One QDMI_Program_Encoding value.
Definition constants.h:1033