epraya.containeigh#

containeigh(A, eps=1e-5)#

Wrap function for the eignevalues determination using JAX and making sure the value doesn’t go to infinity by the energy degeneration.

Parameters:
  • A (jax.numpy.array) – Total hamiltonian matrix.

  • eps (float) – Perturbation value in case there is energy degeneration. Default is 1e-5.

Returns:

  • w (jax.numpy.array) – Energy values of the hamiltonian.

  • v (jax.numpy.array) – Eigenvectors of the hamiltonian.