Template Function Pennylane::LightningQubit::Gates::AVXCommon::Permutation::swapRealImag¶
Defined in File Permutation.hpp
Function Documentation¶
-
template<std::size_t packed_size>
constexpr auto Pennylane::LightningQubit::Gates::AVXCommon::Permutation::swapRealImag(const std::array<uint8_t, packed_size> &perm) -> std::array<uint8_t, packed_size>¶ Create a permutation that swap real and imaginary parts of a packed array.
- Template Parameters
packed_size – Number of elements in a packed type
- Parameters
perm – Previous permutation