Template Struct getExpectationValueSparseFunctor¶
Defined in File ExpValFunctors.hpp
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 data¶
-
KokkosSizeTVector indices¶
-
KokkosSizeTVector indptr¶
-
std::size_t length¶
-
using KokkosComplexVector = Kokkos::View<Kokkos::complex<PrecisionT>*>¶
api/structPennylane_1_1LightningKokkos_1_1Functors_1_1getExpectationValueSparseFunctor
Download Python script
Download Notebook
View on GitHub