Template Function Pennylane::LightningQubit::NanoBindings::registerVJP¶
Defined in File LQubitBindings.hpp
Function Documentation¶
-
template<class StateVectorT>
auto Pennylane::LightningQubit::NanoBindings::registerVJP(VectorJacobianProduct<StateVectorT> &calculate_vjp, const StateVectorT &sv, const OpsData<StateVectorT> &operations, const nb::ndarray<const typename StateVectorT::ComplexT, nb::c_contig> &dy, const std::vector<std::size_t> &trainableParams) -> nb::ndarray<typename StateVectorT::ComplexT, nb::numpy, nb::c_contig>¶ Register Vector Jacobian Product.