Template Function Pennylane::NanoBindings::probsForWires¶
Defined in File Bindings.hpp
Function Documentation¶
-
template<class MeasurementsT>
nb::ndarray<typename MeasurementsT::PrecisionT, nb::numpy, nb::c_contig> Pennylane::NanoBindings::probsForWires(MeasurementsT &M, const std::vector<std::size_t> &wires)¶ Register probs method for specific wires with proper data ownership.
- Template Parameters
MeasurementsT – Representation of Measurements type
- Parameters
M – Measurements object
wires – Vector of wire indices
- Returns
nb::ndarray<PrecisionT, nb::numpy, nb::c_contig> NumPy array with probabilities
api/function_Bindings_8hpp_1abb106e249834ce275d8f80e41e66e3f2
Download Python script
Download Notebook
View on GitHub