This paper shows that the system of equations dxdW+f(W)⋅W=b can be solved on a quantum computer in logM steps.