ExecutionData
ExecutionData
contains a ResultHandle
to the RegisterData
containing the results of the program, as well as some metadata about the execution itself. You get an ExecutionData
from the Success
variant of an ExecutionResult
.
Definition
typedef struct ExecutionData {
unsigned long execution_duration_microseconds;
struct ResultHandle *handle;
} ExecutionData;
Safety
The memory for any ExecutionData
will be freed when calling free_execution_result
for the corresponding ExecutionResult
. Make sure not to free the ExecutionResult
until after you're done with the data.
Attributes
execution_duration_microseconds
is how long the program took to execute on the QPU. This is always 0 for QVM executions.handle
is theResultHandle
that can be passed toget_data
to getRegisterData
containing the results of the program.