get_sample_points

qugradlab.pulses.sampling.get_sample_points(T: int, number_sample_points: int) tuple[ndarray[float64], float64][source]

Generates an array of number_sample_points equally spaced sample points between 0 and T and also returns the step size.

Parameters:
  • T (int) – The final point.

  • number_sample_points (int) – The number of sample points between 0 and T.

Returns:

A tuple containing the array of sample points and the step size.

Return type:

tuple[NDArray[Shape[number_sample_points], np.float64], np.float64]