Template Struct ApplyT¶
Defined in File ApplyT.hpp
Struct Documentation¶
-
template<typename PrecisionT, std::size_t packed_size>
struct ApplyT¶ Public Types
-
using Precision = PrecisionT¶
-
using PrecisionAVXConcept = AVXConceptType<PrecisionT, packed_size>¶
Public Static Functions
-
static inline constexpr auto applyInternalPermutation(std::size_t rev_wire)¶
Permutation for applying
i
if a bit is 1.FIXME: clang++-12 currently does not accept consteval here.
-
static inline auto applyInternalRealFactor(std::size_t rev_wire) -> AVXIntrinsicType<PrecisionT, packed_size>¶
-
static inline auto applyInternalImagFactor(std::size_t rev_wire, bool inverse) -> AVXIntrinsicType<PrecisionT, packed_size>¶
-
template<std::size_t rev_wire>
static inline void applyInternal(std::complex<PrecisionT> *arr, const std::size_t num_qubits, bool inverse)¶
-
static inline void applyExternal(std::complex<PrecisionT> *arr, const std::size_t num_qubits, const std::size_t rev_wire, bool inverse)¶
Public Static Attributes
-
static constexpr std::size_t packed_size_ = packed_size¶
-
static constexpr auto isqrt2 = INVSQRT2<PrecisionT>()¶
-
using Precision = PrecisionT¶