zkit.io.eigen

Read static/EigenData_<inp>.h5 files.

zkit.io.eigen.read_eigen(path)

Read eigenvalues and eigenvectors from an EigenData HDF5 file.

Attempts common PETSc output layouts. The spatial dimension is inferred from the file (run_metadata.Dimension attribute, falling back to the number of knots_* datasets), so the input file is not required.

For TDSEZ static output the per-state eigenvectors are stored as top-level datasets psi_0, psi_1, ... (each (n_dof, 2) = [Re, Im]), which are collected into vectors as (n_states, 2*n_dof) so the model’s 2-D contract holds and n_states is populated. The smooth real-space wavefunction is then obtained with EigenData.reconstruct (which evaluates the B-spline basis via igakit).

Parameters:

path (str | Path)

Return type:

EigenData