bloqade.analog.ir.control.waveform.Constant
← Module overview
class
method
sourcemethod
sourcemethod
source
classConstant¶source
bloqade.analog.ir.control.waveform.Constant
Bases: Instruction
```bnf <constant> ::= 'constant' <scalar expr> ```
class Constant(value: ScalarType, duration: ScalarType)f(t=0:duration) = value
Parameters
| Name | Type | Description |
|---|---|---|
value | ScalarType | the constant value |
duration | ScalarType | the time span of the constant waveform. |
Attributes
| Name | Type | Description |
|---|---|---|
value | Scalar | |
duration | Scalar |
methodeval_decimal¶source
bloqade.analog.ir.control.waveform.Constant.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.Constant.print_node
def print_node()methodchildren¶source
bloqade.analog.ir.control.waveform.Constant.children
def children()