Template Struct applyNC1QubitOpFunctor

Struct Documentation

template<class PrecisionT>
struct applyNC1QubitOpFunctor

Public Types

using ComplexT = Kokkos::complex<PrecisionT>
using KokkosComplexVector = Kokkos::View<ComplexT*>
using KokkosIntVector = Kokkos::View<std::size_t*>

Public Functions

inline applyNC1QubitOpFunctor(KokkosComplexVector arr_, std::size_t num_qubits_, const KokkosComplexVector &matrix_, const std::vector<std::size_t> &controlled_wires_, const std::vector<bool> &controlled_values_, const std::vector<std::size_t> &wires_)
inline KOKKOS_INLINE_FUNCTION void operator() (std::size_t k) const

Public Members

KokkosComplexVector arr
KokkosComplexVector matrix
KokkosIntVector indices
KokkosIntVector parity
KokkosIntVector rev_wires
KokkosIntVector rev_wire_shifts
std::size_t num_qubits