# constant_stf_operator

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

```python
Graph.constant_stf_operator(operator)
```

Create a constant operator.

### Parameters
**operator** (*np.ndarray* *or* [*Tensor*](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Tensor.md#boulderopal.graph.Tensor)) – The operator $A$, or a batch of operators. It must have at
least two dimensions, and its last two dimensions must be equal.
### Returns
The operator $t\mapsto A$ (or batch of
operators, if you provide a batch of operators).
### Return type
[Stf](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Stf.md#boulderopal.graph.Stf)

### SEE ALSO
[`Graph.constant_pwc_operator`](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Graph/constant_pwc_operator.md#boulderopal.graph.Graph.constant_pwc_operator)
: Corresponding operation for Pwcs.

[`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.stf_operator`](https://docs.q-ctrl.com/references/boulder-opal/boulderopal/graph/Graph/stf_operator.md#boulderopal.graph.Graph.stf_operator)
: Create an Stf operator.

## 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.
