Template Function Pennylane::LightningQubit::Util::second_elems_of

Function Documentation

template<typename T, typename U, std::size_t size>
constexpr std::array<U, size> Pennylane::LightningQubit::Util::second_elems_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.