bloqade.analog.ir.control.waveform.Poly
← Module overview
class
method
sourcemethod
method
source
classPoly¶source
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
| Name | Type | Description |
|---|---|---|
coeffs | Container[ScalarType] | the coefficients c[] of the polynomial. |
duration | ScalarType | the time span of the waveform. |
Attributes
| Name | Type | Description |
|---|---|---|
coeffs | Tuple[Scalar, ...] | |
duration | Scalar |
methodeval_decimal¶source
bloqade.analog.ir.control.waveform.Poly.eval_decimal
def eval_decimal(clock_s: Decimal, **kwargs={}) -> DecimalParameters
| Name | Type | Default | Description |
|---|---|---|---|
clock_s | Decimal | required | |
**kwargs | — | {} |
Returns
Decimal
methodprint_node¶source
bloqade.analog.ir.control.waveform.Poly.print_node
methodchildren¶source
bloqade.analog.ir.control.waveform.Poly.children
def children()