Template Struct getExpectationValuePauliZFunctor

Struct Documentation

template<class PrecisionT>
struct getExpectationValuePauliZFunctor

Public Functions

inline getExpectationValuePauliZFunctor(Kokkos::View<Kokkos::complex<PrecisionT>*> arr_, std::size_t num_qubits, const std::vector<std::size_t> &wires)
inline KOKKOS_INLINE_FUNCTION void operator() (const std::size_t k, PrecisionT &expval) const

Public Members

Kokkos::View<Kokkos::complex<PrecisionT>*> arr
std::size_t rev_wire
std::size_t rev_wire_shift
std::size_t wire_parity
std::size_t wire_parity_inv