Template Function Pennylane::LightningQubit::Util::first_elems_of

Function Documentation

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