Expand description
This crate is the primary Rust API for interacting with Rigetti products. Specifically, this
crate allows you to run Quil programs against real QPUs or a QVM
using Executable
.
Modules§
- Build information about the crate and environment in which it was built.
- This module provides methods for getting clients for the desired API (e.g.
gRPC
orOpenAPI
) and will properly initialize those clients (e.g. with authentication metadata). - This module contains functionality used to compile Quil programs for execution on QCS quantum processors.
- Produce diagnostic information about the crate and its runtime environment in order to aid in debugging and remote user support.
- This module contains all the functionality for running Quil programs on a real QPU. Specifically, the [
Execution
] struct in this module. - This module contains all the functionality for running Quil programs on a QVM. Specifically, the [
Execution
] struct in this module.
Structs§
- The builder interface for executing Quil programs on QVMs and QPUs.
- The result of executing an
Executable
- The result of calling
Executable::submit_to_qpu
. Represents a quantum program running on a QPU. Can be passed toExecutable::retrieve_results
to retrieve the results of the job. - A mapping of a register name (ie. “ro”) to a
RegisterMatrix
containing the values for the register.
Enums§
- The possible errors which can be returned by
Executable::execute_on_qpu
andExecutable::execute_on_qvm
.. - Data resulting from
Executable::execute_on_qvm
- An enum representing every possible register type as a 2 dimensional matrix.
- Errors that may occur when trying to build a
RegisterMatrix
from execution data - Represents the two possible types of data returned from either the QVM or a real QPU. Each variant contains the original data returned from its respective executor.
- The external services that this SDK may connect to. Used to differentiate between networking issues in
Error::Connection
.
Type Aliases§
- The
Result
from executing on a QPU or QVM.