Template Function Pennylane::Util::linspace

Function Documentation

template<class T>
auto Pennylane::Util::linspace(T start, T end, std::size_t num_points) -> std::vector<T>

Define linearly spaced data [start, end].

Template Parameters

T – Data type.

Parameters
  • start – Start position.

  • end – End position.

  • num_points – Number of data-points in range.

Returns

std::vector<T>