Template Struct getTransposedFunctor¶
Defined in File MeasuresFunctors.hpp
Struct Documentation¶
-
template<class PrecisionT>
struct getTransposedFunctor¶ Template for the transposition of state tensors, axes are assumed to have a length of 2 (|0>, |1>).
- Template Parameters
T – Tensor data type.
- Param tensor
Tensor to be transposed.
- Param new_axes
new axes distribution.
- Return
Transposed Tensor.
Public Functions
-
inline getTransposedFunctor(Kokkos::View<PrecisionT*> transProb_, Kokkos::View<PrecisionT*> probability_, Kokkos::View<std::size_t*> trans_index_)¶
- inline KOKKOS_INLINE_FUNCTION void operator() (const std::size_t i) const
Public Members
-
Kokkos::View<PrecisionT*> transProb¶
-
Kokkos::View<PrecisionT*> probability¶
-
Kokkos::View<std::size_t*> trans_index¶
api/structPennylane_1_1LightningKokkos_1_1Functors_1_1getTransposedFunctor
Download Python script
Download Notebook
View on GitHub