Skip to content

bloqade.analog.ir.control.waveform.Poly

← Module overview

classPolysource

bloqade.analog.ir.control.waveform.Poly

Bases: Instruction

```bnf <poly> ::= <scalar>+ ```

class Poly(coeffs: Container[ScalarType], duration: ScalarType)

f(t=0:duration) = c[0] + c[1]t + c[2]t^2 + … + c[n-1]t^n-1 + c[n]t^n

Parameters

NameTypeDescription
coeffsContainer[ScalarType]the coefficients c[] of the polynomial.
durationScalarTypethe time span of the waveform.

Attributes

NameTypeDescription
coeffsTuple[Scalar, ...]
durationScalar

methodeval_decimalsource

bloqade.analog.ir.control.waveform.Poly.eval_decimal

def eval_decimal(clock_s: Decimal, **kwargs={}) -> Decimal

Parameters

NameTypeDefaultDescription
clock_sDecimalrequired
**kwargs—{}

Returns

Decimal

source

methodprint_nodesource

bloqade.analog.ir.control.waveform.Poly.print_node

def print_node() -> str

Returns

str

source

methodchildrensource

bloqade.analog.ir.control.waveform.Poly.children

def children()
source