Template Function Pennylane::NanoBindings::probsForAllWires

Function Documentation

template<class MeasurementsT>
nb::ndarray<typename MeasurementsT::PrecisionT, nb::numpy, nb::c_contig> Pennylane::NanoBindings::probsForAllWires(MeasurementsT &M)

Register probs method for all wires with proper data ownership.

Template Parameters

MeasurementsT – Representation of Measurements type

Parameters

M – Measurements object

Returns

nb::ndarray<PrecisionT, nb::numpy, nb::c_contig> NumPy array with probabilities