Template Struct getExpectationValueSparseFunctor

Struct Documentation

template<class PrecisionT>
struct getExpectationValueSparseFunctor

Public Types

using KokkosComplexVector = Kokkos::View<Kokkos::complex<PrecisionT>*>
using KokkosSizeTVector = Kokkos::View<std::size_t*>

Public Functions

inline getExpectationValueSparseFunctor(KokkosComplexVector arr_, const KokkosComplexVector data_, const KokkosSizeTVector indices_, const KokkosSizeTVector indptr_)
inline KOKKOS_INLINE_FUNCTION void operator() (const std::size_t row, PrecisionT &expval) const

Public Members

KokkosComplexVector arr
KokkosComplexVector data
KokkosSizeTVector indices
KokkosSizeTVector indptr
std::size_t length