Template Function Pennylane::Util::tuple_to_array¶
Defined in File ConstantUtil.hpp
Function Documentation¶
-
template<class Tuple>
constexpr auto Pennylane::Util::tuple_to_array(Tuple &&tuple)¶ Transform a tuple to an array.
This function only works when all elements of the tuple are the same type or convertible to the same type.
- Template Parameters:
T – Type of the elements. This type usually needs to be specified.
Tuple – Type of the tuple.
- Parameters:
tuple – Tuple to transform