Comparing General and Hermitian Eigensolvers
P. K. Majumdar
Abstract
This educational Jupyter notebook compares NumPy’s general-purpose numpy.linalg.eig eigensolver with the Hermitian-optimised numpy.linalg.eigh solver using the Pauli-Y operator. It examines eigenvalue ordering, eigenvector orthonormality, numerical residuals and phase-independent agreement between the eigendirections returned by the two methods. The notebook demonstrates that both functions produce valid results for this simple Hermitian matrix while explaining why eigh is the mathematically appropriate and computationally preferable choice for Hermitian operators. It is intended as a transparent, reproducible resource for students and educators studying numerical linear algebra in quantum computing.