Template Struct getTransposedFunctor

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<size_t*> trans_index_)
inline KOKKOS_INLINE_FUNCTION void operator() (const size_t i) const

Public Members

Kokkos::View<PrecisionT*> transProb
Kokkos::View<PrecisionT*> probability
Kokkos::View<size_t*> trans_index