# Stf

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

```python
class boulderopal.graph.Stf(operation, value_shape, batch_shape)
```

A sampleable tensor-valued function of time (or batch of such functions).

You can use the arithmetic operators `+`, `-`, `*`, `**`, `/`, `//`, and `@`
to perform operations between two Stf objects or between an Stf and a Tensor.

### Variables
* **value_shape** (*tuple*) – The shape of the function value.
* **batch_shape** (*tuple*) – The shape of the batch in the function.

### SEE ALSO
[`Graph.identity_stf`](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Graph/identity_stf.md#boulderopal.graph.Graph.identity_stf)
: Operation to create an Stf representing the identity function.

## Notes

Stf nodes represent arbitrary functions of time. Piecewise-constant (PWC) or constant functions
are special cases of Stfs and the 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.

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

For more information on Stf nodes see the [Working with time-dependent functions in
Boulder Opal](https://docs.q-ctrl.com/boulder-opal/topics/working-with-time-dependent-functions-in-boulder-opal) topic.
