# SparsePwc

Source: https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/SparsePwc

```python
class boulderopal.graph.SparsePwc(operation, value_shape, durations)
```

A piecewise-constant sparse-matrix-valued function of time.

### Variables
* **value_shape** (*tuple* *[* *int* *,*  *...* *]*) – The shape of the function value.
* **durations** (*np.ndarray*) – The durations of the constant segments.

### SEE ALSO
[`Graph.sparse_pwc_operator`](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Graph/sparse_pwc_operator.md#boulderopal.graph.Graph.sparse_pwc_operator)
: Operation to create SparsePwc operators.

## Notes

The value of SparsePwc nodes is not fetchable from graphs.
Therefore, they do not have a name attribute.
