qiskit.pulse.MemorySlot.assign¶
-
MemorySlot.
assign
(parameter, value)¶ Return a new channel with the input Parameter assigned to value.
- Parameters
parameter (
Parameter
) – A parameter in this expression whose value will be updated.value (
Union
[ParameterExpression
,float
]) – The new value to bind to.
- Return type
Channel
- Returns
A new channel with updated parameters.
- Raises
PulseError – If the parameter is not present in the channel.