t_funcs.gaussian
t_funcs.gaussian(index)Return a Gaussian pulse time function.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| index | int | Integer suffix used to look up parameters in args. | required |
Returns
| Name | Type | Description |
|---|---|---|
| TFunc | Callable f(t, args) reading fwhm_{index}, centre_{index}, |
|
| TFunc | and either ampl_{index} or n_pi_{index} from args. Raises |
|
| TFunc | KeyError if both or neither amplitude parameters are present. |
Notes
The amplitude can be set directly via ampl_{index} or indirectly via n_pi_{index} (desired pulse area in multiples of π).