English

ZERNIPAX: A Fast and Accurate Zernike Polynomial Calculator in Python

Performance 2025-11-25 v2

Abstract

Zernike polynomials serve as an orthogonal basis on the unit disc, and have proven to be effective in optics simulations, astrophysics, and more recently in plasma simulations. Unlike Bessel functions, Zernike polynomials are inherently finite and smooth at the disc center (r=0), ensuring continuous differentiability along the axis. This property makes them particularly suitable for simulations, requiring no additional handling at the origin. We developed ZERNIPAX, an open-source Python package capable of utilizing CPU/GPUs, leveraging Google's JAX package and available on GitHub as well as the Python software repository PyPI. Our implementation of the recursion relation between Jacobi polynomials significantly improves computation time compared to alternative methods by use of parallel computing while still performing more accurately for high-mode numbers.

Cite

@article{arxiv.2409.19156,
  title  = {ZERNIPAX: A Fast and Accurate Zernike Polynomial Calculator in Python},
  author = {Yigit Gunsur Elmacioglu and Rory Conlin and Daniel W. Dudt and Dario Panici and Egemen Kolemen},
  journal= {arXiv preprint arXiv:2409.19156},
  year   = {2025}
}
R2 v1 2026-06-28T19:00:12.245Z