pyquil.slot

Contains Slot pyQuil placeholders for constructing Quil template programs.

class pyquil.slot.Slot(value=0.0, func=None)[source]

Bases: object

A placeholder for a parameter value.

Arithmetic operations: +-*/ Logical: abs, max, <, >, <=, >=, !=, == Arbitrary functions are not supported

Parameters:
  • value (float) – A value to initialize to. Defaults to 0.0
  • func (function) – An initial function to determine the final parameterized value.
value()[source]

Computes the value of this Slot parameter.