Template Class getProbsFunctor¶
Defined in File MeasuresFunctors.hpp
Class Documentation¶
-
template<class PrecisionT, class DeviceType>
class getProbsFunctor¶ Compute probability distribution from StateVector.
- Template Parameters
PrecisionT – StateVector precision.
DeviceType – Kokkos execution space.
- Param arr_
StateVector data.
- Param wires_
Wires for which the probability is computed.
- Param all_indices_
Base indices.
- Param all_offsets_
Offset indices.
Public Types
-
using execution_space = DeviceType¶
-
using value_type = PrecisionT[]¶
-
using ComplexT = Kokkos::complex<PrecisionT>¶
Public Functions
-
inline getProbsFunctor(const Kokkos::View<ComplexT*> &arr_, const std::vector<std::size_t> &wires_, const Kokkos::View<std::size_t*> all_indices_, const Kokkos::View<std::size_t*> all_offsets_)¶
- inline KOKKOS_INLINE_FUNCTION void init (PrecisionT dst[]) const
- inline KOKKOS_INLINE_FUNCTION void join (PrecisionT dst[], const PrecisionT src[]) const
- inline KOKKOS_INLINE_FUNCTION void operator() (const std::size_t i, const std::size_t j, PrecisionT dst[]) const
api/classPennylane_1_1LightningKokkos_1_1Functors_1_1getProbsFunctor
Download Python script
Download Notebook
View on GitHub