Template Function Pennylane::LightningKokkos::Functors::probs_bitshift_generic

Function Documentation

template<class DeviceType, class PrecisionT>
auto Pennylane::LightningKokkos::Functors::probs_bitshift_generic(const Kokkos::View<Kokkos::complex<PrecisionT>*> arr, const std::size_t num_qubits, const std::vector<std::size_t> &wires) -> std::vector<PrecisionT>

Compute probability distribution from StateVector.

Template Parameters
  • DeviceType – Kokkos execution space.

  • PrecisionT – StateVector precision.

Parameters
  • arr – StateVector data.

  • num_qubits – Number of qubits.

  • wires – Wires for which the probability is computed.