Module instruction

Source

Structs§

Arithmetic
BinaryLogic
Calibration
CalibrationIdentifier
Unique identifier for a calibration definition within a program
Call
A call instruction with a name and arguments.
Capture
CircuitDefinition
Comparison
Convert
Declaration
Delay
Exchange
ExternParameter
An extern parameter with a name, mutability, and data type.
ExternPragmaMap
A map of all program PRAGMA EXTERN instructions from their name (if any) to the corresponding Pragma instruction. Note, keys are Options, but a None key will be considered invalid when converting to an ExternSignatureMap.
ExternSignature
An extern signature with a return type and parameters.
ExternSignatureMap
A map of all program PRAGMA EXTERN instructions from their name to the corresponding parsed and validated ExternSignature.
Fence
FrameDefinition
FrameIdentifier
Gate
A struct encapsulating all the properties of a Quil Quantum Gate.
GateDefinition
A struct encapsulating a quil Gate Definition
Include
InstructionHandler
A struct that allows setting optional overrides for key Instruction methods.
Jump
JumpUnless
JumpWhen
Label
Load
MeasureCalibrationDefinition
MeasureCalibrationIdentifier
A unique identifier for a measurement calibration definition within a program
Measurement
MemoryReference
Move
Offset
PauliSum
PauliTerm
Pragma
Pulse
QubitPlaceholder
An opaque placeholder for a qubit whose index may be assigned at a later time.
RawCapture
Reset
SetFrequency
SetPhase
SetScale
Sharing
ShiftFrequency
ShiftPhase
Store
SwapPhases
TargetPlaceholder
An opaque placeholder for a label whose index may be assigned at a later time.
UnaryLogic
Vector
Waveform
WaveformDefinition
WaveformInvocation

Enums§

ArithmeticOperand
ArithmeticOperator
AttributeValue
BinaryOperand
BinaryOperator
CallArgumentError
An error that can occur when resolving a call instruction argument.
CallArgumentResolutionError
An error that can occur when resolving a call instruction.
CallError
An error that can occur when validating a call instruction.
CallResolutionError
An error that can occur when resolving a call instruction, given a complete ExternPragmaMap for the crate::program::Program.
CallSignatureError
An error that can occur when resolving a call instruction to a specific ExternSignature.
ComparisonOperand
ComparisonOperator
ExternError
An error that can occur when parsing an extern signature.
ExternParameterType
A parameter type within an extern signature.
GateError
GateModifier
An enum of all the possible modifiers on a quil Gate
GateSpecification
An enum representing a the specification of a GateDefinition for a given GateType
GateType
The type of a GateDefinition
Instruction
InstructionRole
ParseInstructionError
PauliGate
PragmaArgument
Qubit
ResolvedCallArgument
A resolved call argument. This is the result of resolving an UnresolvedCallArgument with the appropriate ExternParameter. It annotates the argument both with a type (and possibly a length in the case of a vector) and mutability.
ScalarType
Target
UnaryOperator
UnresolvedCallArgument
A parsed, but unresolved call argument. This may be resolved into a ResolvedCallArgument with the appropriate ExternSignature. Resolution is required for building the crate::Program memory graph.
ValidationError

Constants§

RESERVED_PRAGMA_EXTERN

Traits§

CalibrationSignature
GetIsScheduledFnMut
Trait signature for a function or closure that returns an optional override for whether an instruction should be scheduled.
GetMatchingFramesFnMut
Trait signature for a function or closure that returns an optional override for an instruction’s MatchedFrames.
GetMemoryAccessesFnMut
Trait signature for a function or closure that returns an optional override for an instruction’s MemoryAccesses.
GetRoleForInstructionFnMut
Trait signature for a function or closure that returns an optional override for an instruction’s InstructionRole.

Functions§

format_integer_vector
write_instruction_block

Type Aliases§

FrameAttributes
Matrix
Matrix version of a gate.
WaveformParameters