Crate qcs

Crate qcs 

Source
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.

Re-exports§

pub use quil_rs;

Modules§

build_info
Build information about the crate and environment in which it was built.
client
This module provides methods for getting clients for the desired API (e.g. gRPC or OpenAPI) and will properly initialize those clients (e.g. with authentication metadata).
compiler
This module contains functionality used to compile Quil programs for execution on QCS quantum processors.
diagnostics
Produce diagnostic information about the crate and its runtime environment in order to aid in debugging and remote user support.
qpu
This module contains all the functionality for running Quil programs on a real QPU. Specifically, the [Execution] struct in this module.
qvm
This module contains all the functionality for running Quil programs on a QVM. Specifically, the [Execution] struct in this module.

Structs§

Executable
The builder interface for executing Quil programs on QVMs and QPUs.
ExecutionData
The result of executing an Executable
JobHandle
The result of calling Executable::submit_to_qpu. Represents a quantum program running on a QPU. Can be passed to Executable::retrieve_results to retrieve the results of the job.
RegisterMap
A mapping of a register name (ie. “ro”) to a RegisterMatrix containing the values for the register.

Enums§

Error
The possible errors which can be returned by Executable::execute_on_qpu and Executable::execute_on_qvm..
RegisterData
Data resulting from Executable::execute_on_qvm
RegisterMatrix
An enum representing every possible register type as a 2 dimensional matrix.
RegisterMatrixConversionError
Errors that may occur when trying to build a RegisterMatrix from execution data
ResultData
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.
Service
The external services that this SDK may connect to. Used to differentiate between networking issues in Error::Connection.

Type Aliases§

ExecutionResult
The Result from executing on a QPU or QVM.