Modules§
- analysis
- This module contains analysis tools for Quil programs.
- scheduling
- type_
check - Type check Quil programs.
Structs§
- Calibration
Expansion - Details about the expansion of a calibration
- Calibration
Expansion Output - The product of expanding an instruction using a calibration
- Calibration
Set - 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. - Frame
Set - A collection of Quil frames (
DEFFRAME
instructions) with utility methods. - Instruction
Index - Leftover
Error - The parser returned success, but there was unexpected leftover input.
- Matched
Frames - The product of evaluating [
FrameMatchConditions
] in the scope of available frames (such as within acrate::Program
). - Memory
Access - Memory
Accesses - Memory
Region - Program
- A Quil Program instance describes a quantum program with metadata used in execution.
- Program
Calibration Expansion - Source
Map - 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.
- Source
MapEntry
Enums§
- Calibration
Source - A source of a calibration, either a
Calibration
or aMeasureCalibrationDefinition
- Maybe
Calibration Expansion - The result of an attempt to expand an instruction within a [
Program
] - Memory
Accesses Error - Parse
Program Error - Errors that may occur while parsing a
Program
. - Program
Error - Syntax
Error - 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
isErr(ProgramParsingError::Leftover)
, converts it toOk(_)
with the parsed output.