Template Function Pennylane::NanoBindings::registerAdjointJacobianMPI

Function Documentation

template<class StateVectorT>
auto Pennylane::NanoBindings::registerAdjointJacobianMPI(AdjointJacobianMPI<StateVectorT> &adjoint_jacobian, const StateVectorT &sv, const std::vector<std::shared_ptr<Observable<StateVectorT>>> &observables, const OpsData<StateVectorT> &operations, const std::vector<std::size_t> &trainableParams) -> nb::ndarray<typename StateVectorT::PrecisionT, nb::numpy, nb::c_contig>

Register the adjoint Jacobian method.

Register the adjoint Jacobian method for the given state vector.

Template Parameters

StateVectorT – The type of the state vector.

Parameters
  • adjoint_jacobian – The adjoint Jacobian object.

  • sv – The state vector.

  • observables – The observables.

  • operations – The operations.