bloqade.analog.ir.control.waveform.Waveform
classWaveform¶source
bloqade.analog.ir.control.waveform.Waveform
Bases: HashTrait, CanonicalizeTrait
Waveform node in the IR.
class Waveform<instruction><smooth><slice><apppend><negative><scale><add><record><sample>
<waveform> ::= <instruction> | <smooth> | <slice> | <append> | <negative> | <scale> | <add> | <record> | <sample>methodeval_decimal¶source
bloqade.analog.ir.control.waveform.Waveform.eval_decimal
def eval_decimal(clock_s: Decimal, **kwargs={}) -> DecimalParameters
| Name | Type | Default | Description |
|---|---|---|---|
clock_s | Decimal | required | |
**kwargs | — | {} |
Returns
Decimal
methodadd¶source
bloqade.analog.ir.control.waveform.Waveform.add
methodappend¶source
bloqade.analog.ir.control.waveform.Waveform.append
def append(other: Waveform) -> WaveformParameters
| Name | Type | Description |
|---|---|---|
other | Waveform |
Returns
Waveform
methodfigure¶source
bloqade.analog.ir.control.waveform.Waveform.figure
def figure(**assignments={})get figure of the plotting the waveform.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
**assignments | — | {} |
Returns
figure: a bokeh figure
methodshow¶source
bloqade.analog.ir.control.waveform.Waveform.show
methodalign¶source
bloqade.analog.ir.control.waveform.Waveform.align
Signature
def align(alignment: Union[str, Alignment], value: Union[None, Side, ScalarType] = None) -> WaveformParameters
| Name | Type | Default | Description |
|---|---|---|---|
alignment | Union[str, Alignment] | required | |
value | Union[None, Side, ScalarType] | None |
Returns
Waveform
methodsmooth¶source
bloqade.analog.ir.control.waveform.Waveform.smooth
def smooth(radius, kernel: SmoothingKernel) -> WaveformParameters
| Name | Type | Description |
|---|---|---|
radius | — | |
kernel | SmoothingKernel |
Returns
Waveform
methodscale¶source
bloqade.analog.ir.control.waveform.Waveform.scale
methodrecord¶source
bloqade.analog.ir.control.waveform.Waveform.record
Signature
def record(variable_name: Union[str, Variable], side: Union[str, Side] = Side.Right)Parameters
| Name | Type | Default | Description |
|---|---|---|---|
variable_name | Union[str, Variable] | required | |
side | Union[str, Side] | Side.Right |
methodprint_node¶source
bloqade.analog.ir.control.waveform.Waveform.print_node
def print_node()