Template Struct ApplyCNOT¶
Defined in File ApplyCNOT.hpp
Struct Documentation¶
-
template<typename PrecisionT, std::size_t packed_size>
struct ApplyCNOT¶ Public Types
-
using Precision = PrecisionT¶
-
using PrecisionAVXConcept = AVXConceptType<PrecisionT, packed_size>¶
Public Static Functions
-
template<std::size_t control, std::size_t target>
static inline consteval auto applyInternalInternalPermutation()¶
-
template<std::size_t control, std::size_t target>
static inline void applyInternalInternal(std::complex<PrecisionT> *arr, std::size_t num_qubits, [[maybe_unused]] bool inverse)¶
-
template<std::size_t control>
static inline consteval auto applyInternalExternalMask()¶
-
template<std::size_t control>
static inline void applyInternalExternal(std::complex<PrecisionT> *arr, std::size_t num_qubits, std::size_t target, [[maybe_unused]] bool inverse)¶ Implementation for the case where the control qubit acts on internal wires (inside of packed bytes) but the target acts on external wires.
-
template<std::size_t target>
static inline consteval auto applyExternalInternalPermutation()¶ Permutation that flip the target bit.
-
template<std::size_t target>
static inline void applyExternalInternal(std::complex<PrecisionT> *arr, std::size_t num_qubits, std::size_t control, [[maybe_unused]] bool inverse)¶
-
static inline void applyExternalExternal(std::complex<PrecisionT> *arr, const std::size_t num_qubits, const std::size_t control, const std::size_t target, [[maybe_unused]] bool inverse)¶
Public Static Attributes
-
static constexpr auto packed_size_ = packed_size¶
-
static constexpr bool symmetric = false¶
-
using Precision = PrecisionT¶
api/structPennylane_1_1LightningQubit_1_1Gates_1_1AVXCommon_1_1ApplyCNOT
Download Python script
Download Notebook
View on GitHub