quil.instructions
1# This file is automatically generated by pyo3_stub_gen 2# ruff: noqa: F401 3 4from quil._quil.instructions import Arithmetic, ArithmeticOperand, ArithmeticOperator, AttributeValue, BinaryLogic, BinaryOperand, BinaryOperator, CalibrationDefinition, CalibrationIdentifier, Call, CallArgument, CallError, Capture, CircuitDefinition, Comparison, ComparisonOperand, ComparisonOperator, Convert, Declaration, DefGateSequence, DefGateSequenceError, Delay, Exchange, ExternError, ExternParameter, ExternParameterType, ExternSignature, Fence, FrameDefinition, FrameIdentifier, Gate, GateDefinition, GateError, GateModifier, GateSignature, GateSpecification, GateType, Include, Instruction, InstructionError, Jump, JumpUnless, JumpWhen, Label, Load, MeasureCalibrationDefinition, MeasureCalibrationIdentifier, Measurement, MemoryReference, Move, Offset, ParseInstructionError, ParseMemoryReferenceError, PauliGate, PauliSum, PauliTerm, Pragma, PragmaArgument, Pulse, Qubit, QubitPlaceholder, RawCapture, Reset, ScalarType, SetFrequency, SetPhase, SetScale, Sharing, ShiftFrequency, ShiftPhase, Store, SwapPhases, Target, TargetPlaceholder, UnaryLogic, UnaryOperator, Vector, Waveform, WaveformDefinition, WaveformInvocation 5__all__ = [ 6 "Arithmetic", 7 "ArithmeticOperand", 8 "ArithmeticOperator", 9 "AttributeValue", 10 "BinaryLogic", 11 "BinaryOperand", 12 "BinaryOperator", 13 "CalibrationDefinition", 14 "CalibrationIdentifier", 15 "Call", 16 "CallArgument", 17 "CallError", 18 "Capture", 19 "CircuitDefinition", 20 "Comparison", 21 "ComparisonOperand", 22 "ComparisonOperator", 23 "Convert", 24 "Declaration", 25 "DefGateSequence", 26 "DefGateSequenceError", 27 "Delay", 28 "Exchange", 29 "ExternError", 30 "ExternParameter", 31 "ExternParameterType", 32 "ExternSignature", 33 "Fence", 34 "FrameDefinition", 35 "FrameIdentifier", 36 "Gate", 37 "GateDefinition", 38 "GateError", 39 "GateModifier", 40 "GateSignature", 41 "GateSpecification", 42 "GateType", 43 "Include", 44 "Instruction", 45 "InstructionError", 46 "Jump", 47 "JumpUnless", 48 "JumpWhen", 49 "Label", 50 "Load", 51 "MeasureCalibrationDefinition", 52 "MeasureCalibrationIdentifier", 53 "Measurement", 54 "MemoryReference", 55 "Move", 56 "Offset", 57 "ParseInstructionError", 58 "ParseMemoryReferenceError", 59 "PauliGate", 60 "PauliSum", 61 "PauliTerm", 62 "Pragma", 63 "PragmaArgument", 64 "Pulse", 65 "Qubit", 66 "QubitPlaceholder", 67 "RawCapture", 68 "Reset", 69 "ScalarType", 70 "SetFrequency", 71 "SetPhase", 72 "SetScale", 73 "Sharing", 74 "ShiftFrequency", 75 "ShiftPhase", 76 "Store", 77 "SwapPhases", 78 "Target", 79 "TargetPlaceholder", 80 "UnaryLogic", 81 "UnaryOperator", 82 "Vector", 83 "Waveform", 84 "WaveformDefinition", 85 "WaveformInvocation", 86]
Inherited Members
Inherited Members
Inherited Members
Inherited Members
Inherited Members
Inherited Members
Inherited Members
Bitwise operators. These are "binary" in the sense that they operate on binary representations, not in the sense that they take two arguments (although they also do that).
Unique identifier for a calibration definition within a program
A call instruction with a name and arguments.
An instruction that calls an external function declared with a PRAGMA EXTERN instruction.
These calls are generally specific to a particular hardware or virtual machine backend.
For further detail, see:
- Other instructions and Directives in the Quil specification.
- EXTERN / CALL RFC
- quil#87
Also see [ExternSignature].
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.
A reference to a declared memory location. Note, this may be resolved to either a scalar or vector. In the former case, the assumed index is 0.
Inherited Members
A reference to a memory location. This may be resolved to a scalar.
Inherited Members
An immediate value. This may be resolved to a non-mutable scalar.
Inherited Members
Errors that may occur when initializing a Call.
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- add_note
- args
Inherited Members
Inherited Members
Inherited Members
A sequence of gates that make up a defined gate (i.e. with DEFGATE ... AS SEQUENCE).
Errors that can occur when initializing a sequence gate definition.
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- add_note
- args
Errors that may occur when initializing or validating a PRAGMA EXTERN instruction.
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- add_note
- args
An extern parameter with a name, mutability, and data type.
A parameter type within an extern signature.
A scalar parameter, which may accept a memory reference or immediate value.
For instance PRAGMA EXTERN foo "(bar : INTEGER)".
Inherited Members
A fixed-length vector, which must accept a memory region name of the appropriate length and data type.
For instance PRAGMA EXTERN foo "(bar : INTEGER[2])".
Inherited Members
A variable-length vector, which must accept a memory region name of the appropriate data type.
For instance PRAGMA EXTERN foo "(bar : INTEGER[])".
Inherited Members
An extern signature with a return type and parameters.
The signature of a PRAGMA EXTERN instruction.
This signature is defined by a list of ExternParameters and an optional return type.
See the Quil Specification
for details on how these signatures are formed.
A struct encapsulating all the properties of a Quil Quantum Gate.
Return a copy of the Gate with the CONTROLLED modifier added to it.
Get the matrix resulting from lifting this Gate
to the full n_qubits-qubit Hilbert space.
Raises a GateError if any of the parameters of this Gate are non-constant,
if any of the Qubits are variable,
if the name of this Gate is unknown,
or if there are an unexpected number of parameters.
Notes
A previous version of this library called this to_unitary_mut,
and modified the Gate when called.
This is no longer possible, as it would modify the Gate's hash,
leading to confusing bugs.
Gates, as well as all other hashable classes, are immutable from Python.
Bugs
Supplying n_qubits as 0 will raise an unspecified exception;
other invalid input parameters may silently return an invalid result.
A struct encapsulating a quil Gate Definition
Errors that may occur when performing operations on a Gate.
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- add_note
- args
An enum of all the possible modifiers on a quil [Gate]
A signature for a gate definition; this does not include the gate definition content.
To get a signature from a definition, use GateDefinition.signature.
An enum representing a the specification of a [GateDefinition] for a given [GateType]
A matrix of [Expression]s representing a unitary operation for a [GateType::Matrix].
Inherited Members
A vector of integers that defines the permutation used for a [GateType::Permutation]
Inherited Members
A Hermitian operator specified as a Pauli sum, a sum of combinations of Pauli operators,
used for a [GateType::PauliSum]
Inherited Members
A sequence of gates.
Inherited Members
The type of a [GateDefinition].
A Quil instruction.
Each variant (for Python users, each nested subclass) corresponds to a possible type of Quil instruction, which is accessible as a member within the variant.
Python Users
The subclasses of this class are class attributes defined on it, and can be used to "wrap" instructions when they should be stored together. In particular, they are NOT the instruction classes you'd typically create, and instances of instruction classes are NOT subclasses of this class:
>>> from quil.instructions import Instruction, Gate, Qubit
>>> issubclass(Instruction.Gate, Instruction)
True
>>> issubclass(Gate, Instruction)
False
>>> g = Gate("X", (), (Qubit.Fixed(0),), ())
>>> isinstance(g, Gate)
True
>>> isinstance(g, Instruction.Gate)
False
>>> g_instr = Instruction.Gate(g)
>>> isinstance(g_instr, Gate)
False
>>> isinstance(g_instr, Instruction.Gate)
True
>>> isinstance(g_instr._0, Gate)
True
>>> g_instr._0 == g
True
The point of this class is to wrap different kinds of instructions
when stored together in a collection, all of which are of type Instruction.
You can check for different instruction variants and destructure them using match:
match g_instr:
case Instruction.Gate(gate):
assert isinstance(gate, Gate)
case Instruction.Wait() | Instruction.Nop():
# note the `()` -- these aren't like Python's enumerations!
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Inherited Members
- Instruction
- is_quil_t
- parse
- to_quil
- to_quil_or_debug
- Arithmetic
- BinaryLogic
- CalibrationDefinition
- Call
- Capture
- CircuitDefinition
- Convert
- Comparison
- Declaration
- Delay
- Exchange
- Fence
- FrameDefinition
- Gate
- GateDefinition
- Halt
- Include
- Jump
- JumpUnless
- JumpWhen
- Label
- Load
- MeasureCalibrationDefinition
- Measurement
- Move
- Nop
- Pragma
- Pulse
- RawCapture
- Reset
- SetFrequency
- SetPhase
- SetScale
- ShiftFrequency
- ShiftPhase
- Store
- SwapPhases
- UnaryLogic
- WaveformDefinition
- Wait
Base error type for errors related to Instruction processing.
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- add_note
- args
A unique identifier for a measurement calibration definition within a program
Errors that may occur while parsing an Instruction.
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- add_note
- args
Errors that may occur while parsing a MemoryReference.
Inherited Members
- builtins.Exception
- Exception
- builtins.BaseException
- with_traceback
- add_note
- args
Parse a PauliGate from a string.
Raises a ParseExpressionError error if the string isn't a valid Quil expression.
Inherited Members
Inherited Members
Inherited Members
Inherited Members
Inherited Members
An opaque placeholder for a qubit whose index may be assigned at a later time.
Inherited Members
Inherited Members
An opaque placeholder for a label whose index may be assigned at a later time.