Module program

Source

Modules§

analysis
This module contains analysis tools for Quil programs.
scheduling
type_check
Type check Quil programs.

Structs§

CalibrationExpansion
Details about the expansion of a calibration
CalibrationExpansionOutput
The product of expanding an instruction using a calibration
CalibrationSet
A CalibrationSet is a collection of calibration instructions that respect how calibrations work in a Quil program.
Calibrations
A collection of Quil calibrations (DEFCAL instructions) with utility methods.
FrameSet
A collection of Quil frames (DEFFRAME instructions) with utility methods.
InstructionIndex
LeftoverError
The parser returned success, but there was unexpected leftover input.
MatchedFrames
The product of evaluating [FrameMatchConditions] in the scope of available frames (such as within a crate::Program).
MemoryAccess
MemoryAccesses
MemoryRegion
Program
A Quil Program instance describes a quantum program with metadata used in execution.
ProgramCalibrationExpansion
SourceMap
A SourceMap provides information necessary to understand which parts of a target were derived from which parts of a source artifact, in such a way that they can be mapped in either direction.
SourceMapEntry

Enums§

CalibrationSource
A source of a calibration, either a Calibration or a MeasureCalibrationDefinition
MaybeCalibrationExpansion
The result of an attempt to expand an instruction within a [Program]
MemoryAccessesError
ParseProgramError
Errors that may occur while parsing a Program.
ProgramError
SyntaxError
Failed to deserialize a Quil program for some reason.

Functions§

disallow_leftover
If parsing was successful but there is leftover input, returns a SyntaxError::Leftover containing the output.
map_parsed
Map the parsed output into another value.
recover
If this result is Err(ProgramParsingError::Leftover), converts it to Ok(_) with the parsed output.

Type Aliases§

MemoryAccessesResult
ProgramCalibrationExpansionSourceMap