Template Function Pennylane::Util::second_elts_of¶
Defined in File ConstantUtil.hpp
Function Documentation¶
-
template<typename T, typename U, size_t size>
constexpr std::array<U, size> Pennylane::Util::second_elts_of(const std::array<std::pair<T, U>, size> &arr)¶ Extract second 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_1a75eca17ac3519a1b3700c30dd463d8ea
Download Python script
Download Notebook
View on GitHub