Template Function Pennylane::Util::first_elts_of¶
Defined in File ConstantUtil.hpp
Function Documentation¶
-
template<typename T, typename U, size_t size>
constexpr std::array<T, size> Pennylane::Util::first_elts_of(const std::array<std::pair<T, U>, size> &arr)¶ Extract first elements from the array of pairs.
- Template Parameters
T – Type of the first elements.
U – Type of the second elements.
size – Size of the array.
- Parameters
arr – Array to extract.
api/function_ConstantUtil_8hpp_1a45991ebfce55db9237fb2d6be08a6d10
Download Python script
Download Notebook
View on GitHub