Template Struct Sampler¶
Defined in File MeasuresFunctors.hpp
Struct Documentation¶
-
template<class PrecisionT, template<class ExecutionSpace> class GeneratorPool, class ExecutionSpace = Kokkos::DefaultExecutionSpace>
struct Sampler¶ Sampling using Random_XorShift64_Pool.
- Param samples_
Kokkos::View of the generated samples.
- Param cdf_
Kokkos::View of cumulative probability distribution.
- Param rand_pool_
The generatorPool.
- Param num_qubits_
Number of qubits.
- Param length_
Length of cumulative probability distribution.
Public Functions
-
inline Sampler(Kokkos::View<std::size_t*> samples_, Kokkos::View<PrecisionT*> cdf_, GeneratorPool<ExecutionSpace> rand_pool_, const std::size_t num_qubits_, const std::size_t length_)¶
- inline KOKKOS_INLINE_FUNCTION void operator() (const std::size_t k) const
Public Members
-
Kokkos::View<std::size_t*> samples¶
-
Kokkos::View<PrecisionT*> cdf¶
-
GeneratorPool<ExecutionSpace> rand_pool¶
-
const std::size_t num_qubits¶
-
const std::size_t length¶
api/structPennylane_1_1LightningKokkos_1_1Functors_1_1Sampler
Download Python script
Download Notebook
View on GitHub