dq.modulated
modulated(f: callable[[float, ...], Array], array: ArrayLike) -> ModulatedTimeArray
Instantiate a modulated time-array.
A modulated time-array is defined by \(O(t) = f(t) O_0\) where \(f(t)\) is a
time-dependent scalar. The function \(f\) is defined by passing a Python function
with signature f(t: float) -> Array
that returns an array of shape
(...) for any time \(t\).
Parameters
-
f
(function returning array of shape (...))
–
Function with signature
f(t: float) -> Array
that returns the modulating factor \(f(t)\). -
array
(array_like of shape (n, n))
–
Constant array \(O_0\).
Returns
(time-array object of shape (..., n, n) when called) Callable object returning \(O(t)\) for any time \(t\).