Template Function Pennylane::LightningQubit::Measures::probs_bitshift_generic¶
Defined in File MeasurementKernels.hpp
Function Documentation¶
-
template<class PrecisionT>
auto Pennylane::LightningQubit::Measures::probs_bitshift_generic(const std::complex<PrecisionT> *arr, const std::size_t num_qubits, const std::vector<std::size_t> &wires)¶ Probabilities for a subset of the full system.
- Template Parameters
PrecisionT – State vector precision.
- Parameters
arr – Pointer to the state vector data.
num_qubits – Number of qubits.
wires – Wires will restrict probabilities to a subset of the full system.
- Returns
Floating point std::vector with probabilities.
api/function_MeasurementKernels_8hpp_1a543b62d45f606ba6551bc855196d138d
Download Python script
Download Notebook
View on GitHub