Stf(operation, value_shape, batch_shape)¶
A sampleable tensor-valued function of time (or batch of such functions).
You can use the arithmetic operators
@to perform operations between two Stf objects or between an Stf and a Tensor.
value_shape (tuple) – The shape of the function value.
batch_shape (tuple) – The shape of the batch in the function.
Stf represents an arbitrary function of time. Piecewise-constant (PWC) or constant functions are special cases of Stfs and Q-CTRL python package provides specific APIs to support them. Note that as the PWC property can simplify the calculation, you should always consider using PWC-related APIs if your system parameters or controls are described by PWC functions.
Create an Stf representing the identity function.