Use cases#

Path integrals over learned functions. Compute \(\int f(t, \phi_\theta(t))\,dt\) where \(\phi_\theta\) is a neural network parameterizing a path. Backprop through the integral updates \(\theta\) to optimize the integrand against any objective.

Physics-informed residual minimization. Solve a differential equation by parameterizing the solution as \(y_\theta(t)\), then minimizing \(\int |\mathcal{L}\,y_\theta(t)|^2\,dt\) where \(\mathcal{L}\) is the differential operator. The collocation residual at every \(t\) is just a function of \(t\), so it fits the quadrature framework exactly.

Expectation under a base measure. Compute \(\int f(t)\,p(t)\,dt\) where \(p\) is a known density and \(f\) is a quantity of interest. The integrand is the product f(t) * p(t).

The library does not bundle these as application APIs — they are simply uses of integrate(f, ...) with the right f.