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
api/function_ConstantUtil_8hpp_1a4b067792bf428de10fa613864bf21329
Download Python script
Download Notebook
View on GitHub