Waveform
AlignedWaveform ¶
Bases: Waveform
<padded waveform> ::= <waveform> | <waveform> <alignment> <value>
<alignment> ::= 'left aligned' | 'right aligned'
<value> ::= 'left value' | 'right value' | <scalar expr>
Constant ¶
Bases: Instruction
f(t=0:duration) = value
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value | Scalar | the constant value | required |
duration | Scalar | the time span of the constant waveform. | required |
Source code in src/bloqade/ir/control/waveform.py
Linear ¶
Bases: Instruction
f(t=0:duration) = start + (stop-start)/duration * t
Parameters:
Name | Type | Description | Default |
---|---|---|---|
start | Scalar | start value | required |
stop | Scalar | stop value | required |
duration | Scalar | the time span of the linear waveform. | required |
Source code in src/bloqade/ir/control/waveform.py
Poly ¶
Bases: Instruction
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 | Default |
---|---|---|---|
coeffs | Tuple[Scalar] | the coefficients c[] of the polynomial. | required |
duration | Scalar | the time span of the waveform. | required |
Source code in src/bloqade/ir/control/waveform.py
PythonFn ¶
Scale ¶
Slice ¶
Smooth ¶
Bases: Waveform