Template Function Pennylane::LightningQubit::registerVJP

Function Documentation

template<class StateVectorT, class np_arr_c>
auto Pennylane::LightningQubit::registerVJP(VectorJacobianProduct<StateVectorT> &calculate_vjp, const StateVectorT &sv, const OpsData<StateVectorT> &operations, const np_arr_c &dy, const std::vector<size_t> &trainableParams) -> py::array_t<std::complex<typename StateVectorT::PrecisionT>>

Register Vector Jacobian Product.