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.Dimensionattribute, falling back to the number ofknots_*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 intovectorsas(n_states, 2*n_dof)so the model’s 2-D contract holds andn_statesis populated. The smooth real-space wavefunction is then obtained withEigenData.reconstruct(which evaluates the B-spline basis via igakit).- Parameters:
path (str | Path)
- Return type:
EigenData