execute_on_qvm
Run an Executable
against a locally-running simulator.
Definition
struct ExecutionResult *execute_on_qvm(struct Executable *executable);
Safety
- You must provide the return value from this function to
free_execution_result
once you're done with it.
Usage
In order to execute, QVM must be running at http://localhost:5000 (unless you've specified a different endpoint in config).
Arguments
executable
: AnExecutable
Errors
This program will return the Error
variant of ExecutionResult
with a human-readable description of the error. Some common errors:
- QVM was not running or not reachable.
- A syntax error in the provided Quil
program
. - There was no data to read (improper or missing
read_from
option).