Template Function Pennylane::LightningQubit::Gates::AVXCommon::Permutation::isWithinLane

Function Documentation

template<typename PrecisionT, size_t size>
constexpr bool Pennylane::LightningQubit::Gates::AVXCommon::Permutation::isWithinLane(const std::array<uint8_t, size> &permutation)

Compute whether the given permutation acts only within 128bit lane.

Template Parameters
  • PrecisionT – Floating point precision type

  • size – Size of the permutation

Parameters

permutation – Permutation as an array