Template Struct apply2QubitOpFunctor¶
Defined in File MatrixGateFunctors.hpp
Struct Documentation¶
-
template<class PrecisionT>
struct apply2QubitOpFunctor¶ Public Types
-
using ComplexT = Kokkos::complex<PrecisionT>¶
-
using KokkosIntVector = Kokkos::View<std::size_t*>¶
Public Functions
-
inline apply2QubitOpFunctor(KokkosComplexVector arr_, std::size_t num_qubits_, const KokkosComplexVector &matrix_, const std::vector<std::size_t> &wires_)¶
- inline KOKKOS_INLINE_FUNCTION void operator() (const std::size_t k) const
Public Members
-
KokkosComplexVector matrix¶
-
const std::size_t n_wires = 2¶
-
std::size_t num_qubits¶
-
std::size_t rev_wire0¶
-
std::size_t rev_wire1¶
-
std::size_t rev_wire0_shift¶
-
std::size_t rev_wire1_shift¶
-
std::size_t rev_wire_min¶
-
std::size_t rev_wire_max¶
-
std::size_t parity_low¶
-
std::size_t parity_high¶
-
std::size_t parity_middle¶
-
using ComplexT = Kokkos::complex<PrecisionT>¶
api/structPennylane_1_1LightningKokkos_1_1Functors_1_1apply2QubitOpFunctor
Download Python script
Download Notebook
View on GitHub