Template Struct getExpVal1QubitOpFunctor

Struct Documentation

template<class PrecisionT>
struct getExpVal1QubitOpFunctor

Public Types

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

Public Functions

inline getExpVal1QubitOpFunctor(const KokkosComplexVector &arr_, const std::size_t num_qubits_, const KokkosComplexVector &matrix_, [[maybe_unused]] const std::vector<std::size_t> &wires_)
inline KOKKOS_INLINE_FUNCTION void operator() (const std::size_t k, PrecisionT &expval) const

Public Members

KokkosComplexVector arr
KokkosComplexVector matrix
const std::size_t n_wires = 1
const std::size_t dim = one << n_wires
std::size_t num_qubits
std::size_t rev_wire
std::size_t rev_wire_shift
std::size_t wire_parity
std::size_t wire_parity_inv