# constant_sparse_pwc_operator¶

Graph.constant_sparse_pwc_operator(duration, operator)

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

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

• operator (numpy.ndarray or scipy.sparse.coo_matrix) – The sparse operator $$A$$. If you pass a NumPy array then it will be internally converted into a sparse array.

Returns

The constant operator $$t\mapsto A$$ (for $$0\leq t\leq\tau$$).

Return type

SparsePwc

constant_pwc_operator()

Corresponding operation for Pwcs.

sparse_pwc_hermitian_part()

Create the Hermitian part of a SparsePwc operator.

sparse_pwc_operator()

Create SparsePwc operators.

sparse_pwc_sum()

Sum multiple SparsePwcs.