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]
class Arithmetic:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

destination
source
operator
class ArithmeticOperand:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

class ArithmeticOperand.LiteralInteger(quil.instructions.ArithmeticOperand):
class ArithmeticOperand.LiteralReal(quil.instructions.ArithmeticOperand):
class ArithmeticOperand.MemoryReference(quil.instructions.ArithmeticOperand):
class ArithmeticOperator:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

ADD = Add
SUBTRACT = Subtract
DIVIDE = Divide
MULTIPLY = Multiply
class AttributeValue:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

class AttributeValue.String(quil.instructions.AttributeValue):
class AttributeValue.Expression(quil.instructions.AttributeValue):
class BinaryLogic:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

source
destination
operator
class BinaryOperand:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

class BinaryOperand.LiteralInteger(quil.instructions.BinaryOperand):
class BinaryOperand.MemoryReference(quil.instructions.BinaryOperand):
class BinaryOperator:

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

def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

AND = And
IOR = Ior
XOR = Xor
SHL = Shl
SHR = Shr
ASHR = Ashr
class CalibrationDefinition:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

modifiers

The list of [GateModifier]s that this calibration definition is for.

name

The gate name that this calibration definition is for.

identifier
parameters

The list of parameters that this calibration definition is for.

instructions
qubits

The list of [Qubit]s that this calibration definition is for.

class CalibrationIdentifier:

Unique identifier for a calibration definition within a program

def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

name

The name of the gate

parameters

The parameters of the gate - these are the variables in the calibration definition

qubits

The qubits on which the gate is applied

modifiers

The modifiers applied to the gate

class Call:

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:

Also see [ExternSignature].

def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

name

The name of the call instruction. This must be a valid user identifier.

arguments

The arguments of the call instruction.

class CallArgument:

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.

def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

class CallArgument.Identifier(quil.instructions.CallArgument):

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.

class CallArgument.MemoryReference(quil.instructions.CallArgument):

A reference to a memory location. This may be resolved to a scalar.

class CallArgument.Immediate(quil.instructions.CallArgument):

An immediate value. This may be resolved to a non-mutable scalar.

class CallError(quil._quil.QuilError):

Errors that may occur when initializing a Call.

Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
add_note
args
class Capture:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

memory_reference
blocking
frame
waveform
class CircuitDefinition:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

parameters
name
instructions
qubit_variables
class Comparison:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

destination
operator
rhs
lhs
class ComparisonOperand:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

class ComparisonOperand.LiteralInteger(quil.instructions.ComparisonOperand):
class ComparisonOperand.LiteralReal(quil.instructions.ComparisonOperand):
class ComparisonOperand.MemoryReference(quil.instructions.ComparisonOperand):
class ComparisonOperator:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

EQUAL = Equal
GREATER_THAN_OR_EQUAL = GreaterThanOrEqual
GREATER_THAN = GreaterThan
LESS_THAN_OR_EQUAL = LessThanOrEqual
LESS_THAN = LessThan
class Convert:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

source
destination
class Declaration:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

name
size
sharing
class DefGateSequence:

A sequence of gates that make up a defined gate (i.e. with DEFGATE ... AS SEQUENCE).

qubits

The list of qubit variable names in the gate signature.

gates

The list of Gate objects that make up the sequence.

class DefGateSequenceError(quil.instructions.InstructionError):

Errors that can occur when initializing a sequence gate definition.

Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
add_note
args
class Delay:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

duration
frame_names
qubits
class Exchange:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

right
left
class ExternError(quil._quil.QuilError):

Errors that may occur when initializing or validating a PRAGMA EXTERN instruction.

Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
add_note
args
class ExternParameter:

An extern parameter with a name, mutability, and data type.

def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

data_type

The data type of the parameter.

mutable

Whether the parameter is mutable.

name

The name of the parameter. This must be a valid user identifier.

class ExternParameterType:

A parameter type within an extern signature.

def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

class ExternParameterType.Scalar(quil.instructions.ExternParameterType):

A scalar parameter, which may accept a memory reference or immediate value.

For instance PRAGMA EXTERN foo "(bar : INTEGER)".

class ExternParameterType.FixedLengthVector(quil.instructions.ExternParameterType):

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])".

class ExternParameterType.VariableLengthVector(quil.instructions.ExternParameterType):

A variable-length vector, which must accept a memory region name of the appropriate data type.

For instance PRAGMA EXTERN foo "(bar : INTEGER[])".

class ExternSignature:

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.

def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

return_type

The return type of the extern signature, if any.

parameters

The parameters of the extern signature.

class Fence:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

qubits
class FrameDefinition:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

identifier
attributes
class FrameIdentifier:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

name
qubits
class Gate:

A struct encapsulating all the properties of a Quil Quantum Gate.

def dagger(self, /):

Return a copy of the Gate with the DAGGER modifier added to it.

def controlled(self, /, control_qubit):

Return a copy of the Gate with the CONTROLLED modifier added to it.

def forked(self, /, fork_qubit, alt_params):

Return a copy of the Gate with the FORKED modifier added to it.

Raises a GateError if the number of provided alternate parameters don't equal the number of existing parameters.

def to_unitary(self, /, n_qubits):

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.

def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

parameters
modifiers
name
qubits
class GateDefinition:

A struct encapsulating a quil Gate Definition

def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

name
specification
parameters
signature
class GateError(quil._quil.QuilError):

Errors that may occur when performing operations on a Gate.

Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
add_note
args
class GateModifier:

An enum of all the possible modifiers on a quil [Gate]

def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

CONTROLLED = Controlled
DAGGER = Dagger
FORKED = Forked
class GateSignature:

A signature for a gate definition; this does not include the gate definition content. To get a signature from a definition, use GateDefinition.signature.

name
gate_type
gate_parameters
qubit_parameters
class GateSpecification:

An enum representing a the specification of a [GateDefinition] for a given [GateType]

def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

class GateSpecification.Matrix(quil.instructions.GateSpecification):

A matrix of [Expression]s representing a unitary operation for a [GateType::Matrix].

class GateSpecification.Permutation(quil.instructions.GateSpecification):

A vector of integers that defines the permutation used for a [GateType::Permutation]

class GateSpecification.PauliSum(quil.instructions.GateSpecification):

A Hermitian operator specified as a Pauli sum, a sum of combinations of Pauli operators, used for a [GateType::PauliSum]

class GateSpecification.Sequence(quil.instructions.GateSpecification):

A sequence of gates.

class GateType:

The type of a [GateDefinition].

def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

MATRIX = Matrix
PERMUTATION = Permutation
PAULI_SUM = PauliSum
SEQUENCE = Sequence
class Include:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

filename
class Instruction:

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!
def is_quil_t(self, /):

Returns true if the instruction is a Quil-T instruction.

def parse(string):

The type of the None singleton.

def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

class Instruction.Arithmetic(quil.instructions.Instruction):
class Instruction.BinaryLogic(quil.instructions.Instruction):
class Instruction.CalibrationDefinition(quil.instructions.Instruction):
class Instruction.Call(quil.instructions.Instruction):
class Instruction.Capture(quil.instructions.Instruction):
class Instruction.CircuitDefinition(quil.instructions.Instruction):
class Instruction.Convert(quil.instructions.Instruction):
class Instruction.Comparison(quil.instructions.Instruction):
class Instruction.Declaration(quil.instructions.Instruction):
class Instruction.Delay(quil.instructions.Instruction):
class Instruction.Exchange(quil.instructions.Instruction):
class Instruction.Fence(quil.instructions.Instruction):
class Instruction.FrameDefinition(quil.instructions.Instruction):
class Instruction.Gate(quil.instructions.Instruction):
class Instruction.GateDefinition(quil.instructions.Instruction):
class Instruction.Halt(quil.instructions.Instruction):
class Instruction.Include(quil.instructions.Instruction):
class Instruction.Jump(quil.instructions.Instruction):
class Instruction.JumpUnless(quil.instructions.Instruction):
class Instruction.JumpWhen(quil.instructions.Instruction):
class Instruction.Label(quil.instructions.Instruction):
class Instruction.Load(quil.instructions.Instruction):
class Instruction.MeasureCalibrationDefinition(quil.instructions.Instruction):
class Instruction.Measurement(quil.instructions.Instruction):
class Instruction.Move(quil.instructions.Instruction):
class Instruction.Nop(quil.instructions.Instruction):
class Instruction.Pragma(quil.instructions.Instruction):
class Instruction.Pulse(quil.instructions.Instruction):
class Instruction.RawCapture(quil.instructions.Instruction):
class Instruction.Reset(quil.instructions.Instruction):
class Instruction.SetFrequency(quil.instructions.Instruction):
class Instruction.SetPhase(quil.instructions.Instruction):
class Instruction.SetScale(quil.instructions.Instruction):
class Instruction.ShiftFrequency(quil.instructions.Instruction):
class Instruction.ShiftPhase(quil.instructions.Instruction):
class Instruction.Store(quil.instructions.Instruction):
class Instruction.SwapPhases(quil.instructions.Instruction):
class Instruction.UnaryLogic(quil.instructions.Instruction):
class Instruction.WaveformDefinition(quil.instructions.Instruction):
class Instruction.Wait(quil.instructions.Instruction):
class InstructionError(quil._quil.QuilError):

Base error type for errors related to Instruction processing.

Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
add_note
args
class Jump:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

target
class JumpUnless:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

condition
target
class JumpWhen:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

condition
target
class Label:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

target
class Load:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

destination
offset
source
class MeasureCalibrationDefinition:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

instructions
name

The Quil-T name of the measurement that this measure calibration definition is for, if any.

qubit

The qubit that this measure calibration definition is for.

identifier
target

The name the measurement calibration uses for the variable it will write the measurement result to, if this is a measurement for record.

class MeasureCalibrationIdentifier:

A unique identifier for a measurement calibration definition within a program

def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

target

The name the definition uses for the variable it will write the measurement result to, if this is a measurement for record.

If this is missing, this is a calibration for a measurement for effect.

name

The Quil-T name of the measurement, if any.

qubit

The qubit which is being measured.

class Measurement:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

name
target
qubit
class MemoryReference:
def parse(string):

The type of the None singleton.

def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

index
name
class Move:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

destination
source
class Offset:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

offset
data_type
class ParseInstructionError(quil.instructions.InstructionError):

Errors that may occur while parsing an Instruction.

Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
add_note
args
class ParseMemoryReferenceError(quil._quil.QuilError):

Errors that may occur while parsing a MemoryReference.

Inherited Members
builtins.Exception
Exception
builtins.BaseException
with_traceback
add_note
args
class PauliGate:
def parse(input):

Parse a PauliGate from a string.

Raises a ParseExpressionError error if the string isn't a valid Quil expression.

I = I
X = X
Y = Y
Z = Z
class PauliSum:
terms
arguments
class PauliTerm:
arguments
expression
class Pragma:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

data
arguments
name
class PragmaArgument:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

class PragmaArgument.Identifier(quil.instructions.PragmaArgument):
class PragmaArgument.Integer(quil.instructions.PragmaArgument):
class Pulse:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

frame
blocking
waveform
class Qubit:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

class Qubit.Fixed(quil.instructions.Qubit):
class Qubit.Placeholder(quil.instructions.Qubit):
class Qubit.Variable(quil.instructions.Qubit):
class QubitPlaceholder:

An opaque placeholder for a qubit whose index may be assigned at a later time.

class RawCapture:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

memory_reference
frame
blocking
duration
class Reset:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

qubit
class ScalarType:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

BIT = Bit
INTEGER = Integer
OCTET = Octet
REAL = Real
class SetFrequency:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

frequency
frame
class SetPhase:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

frame
phase
class SetScale:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

frame
scale
class Sharing:
offsets
name
class ShiftFrequency:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

frame
frequency
class ShiftPhase:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

frame
phase
class Store:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

destination
offset
source
class SwapPhases:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

frame_2
frame_1
class Target:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

class Target.Fixed(quil.instructions.Target):
class Target.Placeholder(quil.instructions.Target):
class TargetPlaceholder:

An opaque placeholder for a label whose index may be assigned at a later time.

base_label
class UnaryLogic:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

operator
operand
class UnaryOperator:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

NEG = Neg
NOT = Not
class Vector:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

data_type
length
class Waveform:
parameters
matrix
class WaveformDefinition:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

name
definition
class WaveformInvocation:
def to_quil(self, /):

The type of the None singleton.

def to_quil_or_debug(self, /):

The type of the None singleton.

name
parameters