constant_pwc_operator

static OperationNamespace.constant_pwc_operator(duration, operator, *, name=None)

Creates a constant piecewise-constant operator over a specified duration.

Parameters
  • duration (float) – The duration \(\tau\) for the resulting piecewise-constant operator.

  • operator (np.ndarray) – The operator \(A\), or a batch of operators. It must have at least two dimensions, and its last two dimensions must be equal.

  • name (str, optional) – The name of the node.

Returns

The constant operator \(t\mapsto A\) (for \(0\leq t\leq\tau\)) (or a batch of constant operators, if you provide a batch of operators).

Return type

TensorPwc