Command-line interface
The zkit command-line tool provides quick summaries, plotting, and batch
operations without writing Python code.
Global option
zkit [--run-dir DIR] <subcommand> ...
--run-dir defaults to ..
Subcommands
summary
Summarize one simulation run.
zkit summary h2p.inp --run-dir /data/run01
Shows dimension, step count, time step, final time, evolution dataset shapes,
and eigenstate count if static/EigenData_<input>.h5 is present.
batch
Summarize every TimeEvolutionData_*.h5 under run_dir/td/.
zkit batch --run-dir /data/run01
Outputs CSV to stdout:
basename,dimension,steps,final_time
h2p,1,480,24.0
he_1d,1,320,16.0
plot-wfs
Render one wavefunction snapshot to PNG.
zkit plot-wfs td/wfs_h2p.inp.h5 \
--step 0 \
--outdir figures \
--npoints 240 \
--dpi 150 \
--vtk figures/wfs.vts \
--norm
Options:
stepsnapshot index into the leading time axis.outdiroutput directory; created if missing.npointsgrid points per spatial axis.dpifigure DPI.vtkoptional VTK export path; requirespyvista.normprint the exact⟨ψ|ψ⟩via Gauss quadrature over knot spans.
tdm-plot
Plot transition-dipole diagrams and the |μ_ij| heatmap from an
EigenData_*.h5 file.
zkit tdm-plot static/EigenData_h2p.inp.h5 \
--run-dir /data/run01 \
--axes x,z \
--min-mu 1e-3 \
--color-by strength \
--outdir figures \
--prefix h2p \
--dpi 150
Options:
eig_fileEigenData path, or just the basename when combined with--run-dir.--axescomma-separated axes, for examplex,y,z.--min-muminimum transition magnitude to draw.--color-bystrengthoroscillator strength.--outdiroutput directory.--prefixoutput filename prefix.--dpifigure DPI.