quil.instructions

class Instruction:
def from_arithmetic(inner):
def from_binary_logic(inner):
def from_calibration_definition(inner):
def from_call(inner):
def from_capture(inner):
def from_circuit_definition(inner):
def from_convert(inner):
def from_comparison(inner):
def from_declaration(inner):
def from_delay(inner):
def from_exchange(inner):
def from_fence(inner):
def from_frame_definition(inner):
def from_gate(inner):
def from_gate_definition(inner):
def new_halt():
def from_include(inner):
def from_jump(inner):
def from_jump_when(inner):
def from_jump_unless(inner):
def from_label(inner):
def from_load(inner):
def from_measure_calibration_definition(inner):
def from_measurement(inner):
def from_move(inner):
def new_nop():
def from_pragma(inner):
def from_pulse(inner):
def from_raw_capture(inner):
def from_reset(inner):
def from_set_frequency(inner):
def from_set_phase(inner):
def from_set_scale(inner):
def from_shift_frequency(inner):
def from_shift_phase(inner):
def from_store(inner):
def from_swap_phases(inner):
def from_unary_logic(inner):
def from_waveform_definition(inner):
def new_wait():
def inner(self, /):
def is_arithmetic(self, /):
def as_arithmetic(self, /):
def to_arithmetic(self, /):
def is_binary_logic(self, /):
def as_binary_logic(self, /):
def to_binary_logic(self, /):
def is_calibration_definition(self, /):
def as_calibration_definition(self, /):
def to_calibration_definition(self, /):
def is_call(self, /):
def as_call(self, /):
def to_call(self, /):
def is_capture(self, /):
def as_capture(self, /):
def to_capture(self, /):
def is_circuit_definition(self, /):
def as_circuit_definition(self, /):
def to_circuit_definition(self, /):
def is_convert(self, /):
def as_convert(self, /):
def to_convert(self, /):
def is_comparison(self, /):
def as_comparison(self, /):
def to_comparison(self, /):
def is_declaration(self, /):
def as_declaration(self, /):
def to_declaration(self, /):
def is_delay(self, /):
def as_delay(self, /):
def to_delay(self, /):
def is_exchange(self, /):
def as_exchange(self, /):
def to_exchange(self, /):
def is_fence(self, /):
def as_fence(self, /):
def to_fence(self, /):
def is_frame_definition(self, /):
def as_frame_definition(self, /):
def to_frame_definition(self, /):
def is_gate(self, /):
def as_gate(self, /):
def to_gate(self, /):
def is_gate_definition(self, /):
def as_gate_definition(self, /):
def to_gate_definition(self, /):
def is_halt(self, /):
def is_include(self, /):
def as_include(self, /):
def to_include(self, /):
def is_jump(self, /):
def as_jump(self, /):
def to_jump(self, /):
def is_jump_when(self, /):
def as_jump_when(self, /):
def to_jump_when(self, /):
def is_jump_unless(self, /):
def as_jump_unless(self, /):
def to_jump_unless(self, /):
def is_label(self, /):
def as_label(self, /):
def to_label(self, /):
def is_load(self, /):
def as_load(self, /):
def to_load(self, /):
def is_measure_calibration_definition(self, /):
def as_measure_calibration_definition(self, /):
def to_measure_calibration_definition(self, /):
def is_measurement(self, /):
def as_measurement(self, /):
def to_measurement(self, /):
def is_move(self, /):
def as_move(self, /):
def to_move(self, /):
def is_nop(self, /):
def is_pragma(self, /):
def as_pragma(self, /):
def to_pragma(self, /):
def is_pulse(self, /):
def as_pulse(self, /):
def to_pulse(self, /):
def is_raw_capture(self, /):
def as_raw_capture(self, /):
def to_raw_capture(self, /):
def is_reset(self, /):
def as_reset(self, /):
def to_reset(self, /):
def is_set_frequency(self, /):
def as_set_frequency(self, /):
def to_set_frequency(self, /):
def is_set_phase(self, /):
def as_set_phase(self, /):
def to_set_phase(self, /):
def is_set_scale(self, /):
def as_set_scale(self, /):
def to_set_scale(self, /):
def is_shift_frequency(self, /):
def as_shift_frequency(self, /):
def to_shift_frequency(self, /):
def is_shift_phase(self, /):
def as_shift_phase(self, /):
def to_shift_phase(self, /):
def is_store(self, /):
def as_store(self, /):
def to_store(self, /):
def is_swap_phases(self, /):
def as_swap_phases(self, /):
def to_swap_phases(self, /):
def is_unary_logic(self, /):
def as_unary_logic(self, /):
def to_unary_logic(self, /):
def is_waveform_definition(self, /):
def as_waveform_definition(self, /):
def to_waveform_definition(self, /):
def is_wait(self, /):
def to_quil(self, /):
def to_quil_or_debug(self, /):
def is_quil_t(self, /):
def parse(string):
class Arithmetic:
def to_quil(self, /):
def to_quil_or_debug(self, /):
operator
destination
source
class ArithmeticOperand:
def from_literal_integer(inner):
def from_literal_real(inner):
def from_memory_reference(inner):
def inner(self, /):
def is_literal_integer(self, /):
def as_literal_integer(self, /):
def to_literal_integer(self, /):
def is_literal_real(self, /):
def as_literal_real(self, /):
def to_literal_real(self, /):
def is_memory_reference(self, /):
def as_memory_reference(self, /):
def to_memory_reference(self, /):
def to_quil(self, /):
def to_quil_or_debug(self, /):
class ArithmeticOperator:
def to_quil(self, /):
def to_quil_or_debug(self, /):
Add = Add
Subtract = Subtract
Divide = Divide
Multiply = Multiply
class BinaryLogic:
def to_quil(self, /):
def to_quil_or_debug(self, /):
source
operator
destination
class BinaryOperand:
def from_literal_integer(inner):
def from_memory_reference(inner):
def inner(self, /):
def is_literal_integer(self, /):
def as_literal_integer(self, /):
def to_literal_integer(self, /):
def is_memory_reference(self, /):
def as_memory_reference(self, /):
def to_memory_reference(self, /):
def to_quil(self, /):
def to_quil_or_debug(self, /):
class BinaryOperator:
def to_quil(self, /):
def to_quil_or_debug(self, /):
And = And
Ior = Ior
Xor = Xor
class Call:
def to_quil(self, /):
def to_quil_or_debug(self, /):
name
arguments
class CallArgument:
def from_identifier(inner):
def from_memory_reference(inner):
def from_immediate(inner):
def inner(self, /):
def is_identifier(self, /):
def as_identifier(self, /):
def to_identifier(self, /):
def is_memory_reference(self, /):
def as_memory_reference(self, /):
def to_memory_reference(self, /):
def is_immediate(self, /):
def as_immediate(self, /):
def to_immediate(self, /):
def to_quil(self, /):
def to_quil_or_debug(self, /):
class Comparison:
def to_quil(self, /):
def to_quil_or_debug(self, /):
operator
destination
lhs
rhs
class ComparisonOperand:
def from_literal_integer(inner):
def from_literal_real(inner):
def from_memory_reference(inner):
def inner(self, /):
def is_literal_integer(self, /):
def as_literal_integer(self, /):
def to_literal_integer(self, /):
def is_literal_real(self, /):
def as_literal_real(self, /):
def to_literal_real(self, /):
def is_memory_reference(self, /):
def as_memory_reference(self, /):
def to_memory_reference(self, /):
def to_quil(self, /):
def to_quil_or_debug(self, /):
class ComparisonOperator:
class Convert:
def to_quil(self, /):
def to_quil_or_debug(self, /):
source
destination
class Exchange:
def to_quil(self, /):
def to_quil_or_debug(self, /):
left
right
class ExternParameter:
def to_quil(self, /):
def to_quil_or_debug(self, /):
name
mutable
data_type
class ExternParameterType:
def from_scalar(inner):
def from_fixed_length_vector(inner):
def from_variable_length_vector(inner):
def inner(self, /):
def is_scalar(self, /):
def as_scalar(self, /):
def to_scalar(self, /):
def is_fixed_length_vector(self, /):
def as_fixed_length_vector(self, /):
def to_fixed_length_vector(self, /):
def is_variable_length_vector(self, /):
def as_variable_length_vector(self, /):
def to_variable_length_vector(self, /):
def to_quil(self, /):
def to_quil_or_debug(self, /):
class ExternSignature:
def to_quil(self, /):
def to_quil_or_debug(self, /):
parameters
return_type
class Move:
def to_quil(self, /):
def to_quil_or_debug(self, /):
destination
source
class UnaryLogic:
def to_quil(self, /):
def to_quil_or_debug(self, /):
operator
operand
class UnaryOperator:
def to_quil(self, /):
def to_quil_or_debug(self, /):
Neg = Neg
Not = Not
class Calibration:
def to_quil(self, /):
def to_quil_or_debug(self, /):
def name(self, /):
def parameters(self, /):
def qubits(self, /):
def modifiers(self, /):
identifier
instructions
class CalibrationIdentifier:
def to_quil(self, /):
def to_quil_or_debug(self, /):
parameters
name
qubits
modifiers
class CircuitDefinition:
def to_quil(self, /):
def to_quil_or_debug(self, /):
name
parameters
qubit_variables
instructions
class MeasureCalibrationDefinition:
def to_quil(self, /):
def to_quil_or_debug(self, /):
def qubit(self, /):
def parameter(self, /):
instructions
identifier
class MeasureCalibrationIdentifier:
def to_quil(self, /):
def to_quil_or_debug(self, /):
parameter
qubit
class Declaration:
def to_quil(self, /):
def to_quil_or_debug(self, /):
name
size
sharing
class Load:
def to_quil(self, /):
def to_quil_or_debug(self, /):
source
offset
destination
class Offset:
def to_quil(self, /):
def to_quil_or_debug(self, /):
data_type
offset
class Sharing:
name
offsets
class Store:
def to_quil(self, /):
def to_quil_or_debug(self, /):
source
destination
offset
class ScalarType:
def to_quil(self, /):
def to_quil_or_debug(self, /):
Bit = Bit
Integer = Integer
Octet = Octet
Real = Real
class Vector:
def to_quil(self, /):
def to_quil_or_debug(self, /):
data_type
length
class Measurement:
def to_quil(self, /):
def to_quil_or_debug(self, /):
target
qubit
class Include:
def to_quil(self, /):
def to_quil_or_debug(self, /):
filename
class Pragma:
def to_quil(self, /):
def to_quil_or_debug(self, /):
name
data
arguments
class PragmaArgument:
def from_identifier(inner):
def from_integer(inner):
def inner(self, /):
def is_identifier(self, /):
def as_identifier(self, /):
def to_identifier(self, /):
def is_integer(self, /):
def as_integer(self, /):
def to_integer(self, /):
def to_quil(self, /):
def to_quil_or_debug(self, /):
class AttributeValue:
def from_string(inner):
def from_expression(inner):
def inner(self, /):
def is_string(self, /):
def as_string(self, /):
def to_string(self, /):
def is_expression(self, /):
def as_expression(self, /):
def to_expression(self, /):
def to_quil(self, /):
def to_quil_or_debug(self, /):
class Capture:
def to_quil(self, /):
def to_quil_or_debug(self, /):
memory_reference
blocking
waveform
frame
class FrameDefinition:
def to_quil(self, /):
def to_quil_or_debug(self, /):
identifier
attributes
class FrameIdentifier:
def to_quil(self, /):
def to_quil_or_debug(self, /):
qubits
name
class Pulse:
def to_quil(self, /):
def to_quil_or_debug(self, /):
waveform
frame
blocking
class RawCapture:
def to_quil(self, /):
def to_quil_or_debug(self, /):
blocking
duration
frame
memory_reference
class SetFrequency:
def to_quil(self, /):
def to_quil_or_debug(self, /):
frequency
frame
class SetPhase:
def to_quil(self, /):
def to_quil_or_debug(self, /):
phase
frame
class SetScale:
def to_quil(self, /):
def to_quil_or_debug(self, /):
frame
scale
class ShiftFrequency:
def to_quil(self, /):
def to_quil_or_debug(self, /):
frequency
frame
class ShiftPhase:
def to_quil(self, /):
def to_quil_or_debug(self, /):
frame
phase
class SwapPhases:
def to_quil(self, /):
def to_quil_or_debug(self, /):
frame_2
frame_1
class Gate:
def to_quil(self, /):
def to_quil_or_debug(self, /):
def dagger(self, /):
def controlled(self, /, control_qubit):
def forked(self, /, fork_qubit, alt_params):
def to_unitary_mut(self, /, n_qubits):
modifiers
name
parameters
qubits
class GateDefinition:
def to_quil(self, /):
def to_quil_or_debug(self, /):
parameters
name
specification
class GateModifier:
def to_quil(self, /):
def to_quil_or_debug(self, /):
Controlled = Controlled
Dagger = Dagger
Forked = Forked
class GateSpecification:
def from_matrix(inner):
def from_permutation(inner):
def from_pauli_sum(inner):
def inner(self, /):
def is_matrix(self, /):
def as_matrix(self, /):
def to_matrix(self, /):
def is_permutation(self, /):
def as_permutation(self, /):
def to_permutation(self, /):
def is_pauli_sum(self, /):
def as_pauli_sum(self, /):
def to_pauli_sum(self, /):
def to_quil(self, /):
def to_quil_or_debug(self, /):
class PauliGate:
def parse(input):
I = I
X = X
Y = Y
Z = Z
class PauliTerm:
arguments
expression
class PauliSum:
arguments
terms
class Jump:
def to_quil(self, /):
def to_quil_or_debug(self, /):
target
class JumpWhen:
def to_quil(self, /):
def to_quil_or_debug(self, /):
target
condition
class JumpUnless:
def to_quil(self, /):
def to_quil_or_debug(self, /):
target
condition
class Label:
def to_quil(self, /):
def to_quil_or_debug(self, /):
target
class Target:
def from_fixed(inner):
def from_placeholder(inner):
def inner(self, /):
def is_fixed(self, /):
def as_fixed(self, /):
def to_fixed(self, /):
def is_placeholder(self, /):
def as_placeholder(self, /):
def to_placeholder(self, /):
def to_quil(self, /):
def to_quil_or_debug(self, /):
class TargetPlaceholder:
base_label
class MemoryReference:
def to_quil(self, /):
def to_quil_or_debug(self, /):
def parse(input):
name
index
class Qubit:
def from_fixed(inner):
def from_variable(inner):
def from_placeholder(inner):
def inner(self, /):
def is_fixed(self, /):
def as_fixed(self, /):
def to_fixed(self, /):
def is_variable(self, /):
def as_variable(self, /):
def to_variable(self, /):
def is_placeholder(self, /):
def as_placeholder(self, /):
def to_placeholder(self, /):
def to_quil(self, /):
def to_quil_or_debug(self, /):
class QubitPlaceholder:
class Reset:
def to_quil(self, /):
def to_quil_or_debug(self, /):
qubit
class Delay:
def to_quil(self, /):
def to_quil_or_debug(self, /):
qubits
frame_names
duration
class Fence:
def to_quil(self, /):
def to_quil_or_debug(self, /):
qubits
class Waveform:
matrix
parameters
class WaveformDefinition:
def to_quil(self, /):
def to_quil_or_debug(self, /):
definition
name
class WaveformInvocation:
def to_quil(self, /):
def to_quil_or_debug(self, /):
name
parameters
class CallError(builtins.ValueError):

Inappropriate argument value (of correct type).

class ExternError(builtins.ValueError):

Inappropriate argument value (of correct type).

class GateError(builtins.ValueError):

Inappropriate argument value (of correct type).

class ParseMemoryReferenceError(builtins.ValueError):

Inappropriate argument value (of correct type).