# Python API ## 2D FFT examples Compute gradient using pseudo-spectral methods. ```{literalinclude} compute_grad.py ```