qiskit.pulse.MemorySlot
class MemorySlot(index)
Memory slot channels represent classical memory storage.
Channel class.
Parameters
index (int
) – Index of channel.
__init__
__init__(index)
Channel class.
Parameters
index (int
) – Index of channel.
Methods
__init__ (index) | Channel class. |
assign (parameter, value) | Return a new channel with the input Parameter assigned to value. |
is_parameterized () | Return True iff the channel is parameterized. |
Attributes
index | Return the index of this channel. |
name | Return the shorthand alias for this channel, which is based on its type and index. |
parameters | Parameters which determine the channel index. |
prefix |
assign
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
,int
]) – The new value to bind to.
Return type
Returns
A new channel with updated parameters.
Raises
PulseError – If the parameter is not present in the channel.
index
Return the index of this channel. The index is a label for a control signal line typically mapped trivially to a qubit index. For instance, DriveChannel(0)
labels the signal line driving the qubit labeled with index 0.
Return type
Union
[int
, ParameterExpression
]
is_parameterized
is_parameterized()
Return True iff the channel is parameterized.
Return type
bool
name
Return the shorthand alias for this channel, which is based on its type and index.
Return type
str
parameters
Parameters which determine the channel index.
Return type
Set