# identity_stf

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

```python
Graph.identity_stf()
```

Create an Stf representing the identity function, f(t) = t.

### Returns
An Stf representing the identity function.
### Return type
[Stf](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Stf.md#boulderopal.graph.Stf)

### SEE ALSO
[`Graph.constant_stf`](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Graph/constant_stf.md#boulderopal.graph.Graph.constant_stf)
: Create a batch of constant Stfs.

[`Graph.discretize_stf`](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Graph/discretize_stf.md#boulderopal.graph.Graph.discretize_stf)
: Discretize an Stf into a Pwc.

[`Graph.sample_stf`](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Graph/sample_stf.md#boulderopal.graph.Graph.sample_stf)
: Sample an Stf at given times.

## Notes

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.

## Examples

Create Gaussian pulse.

```pycon
>>> time = graph.identity_stf()
>>> time
<Stf: operation_name="identity_stf", value_shape=(), batch_shape=()>
>>> gaussian = graph.exp(- time ** 2)
>>> gaussian
<Stf: operation_name="exp", value_shape=(), batch_shape=()>
```

See more examples in the [How to define continuous analytical Hamiltonians](https://docs.q-ctrl.com/boulder-opal/user-guides/how-to-define-continuous-analytical-hamiltonians) user guide.
