Template Struct apply4QubitOpFunctor

Struct Documentation

template<class PrecisionT>
struct apply4QubitOpFunctor

Public Types

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

Public Functions

inline apply4QubitOpFunctor(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 arr
KokkosComplexVector matrix
KokkosIntVector wires
KokkosIntVector parity
KokkosIntVector rev_wire_shifts
const std::size_t n_wires = 4
const std::size_t dim = one << n_wires
std::size_t num_qubits