scqubits.core.param_sweep.generator#
- scqubits.core.param_sweep.generator(sweep, func, **kwargs)[source]#
Method for computing custom data as a function of the external parameter, calculated via the function func.
- Parameters:
sweep (
ParameterSweepBase
) – ParameterSweep object containing HilbertSpace and spectral informationfunc (
Callable
) – signature: func(parametersweep, paramindex_tuple, paramvals_tuple, **kwargs), specifies how to calculate the data for a single choice of parameter(s)**kwargs – keyword arguments to be included in func
- Return type:
ndarray
- Returns:
array of custom data