Template Function Pennylane::LightningKokkos::Functors::probs_bitshift_generic¶
Defined in File MeasuresFunctors.hpp
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.
api/function_MeasuresFunctors_8hpp_1a19de3bc09e1da9fe6919f3656f83ceed
Download Python script
Download Notebook
View on GitHub