Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Analysis Tools

Post-processing simulation output: error analysis, Fourier transforms, and analytic continuation.

Overview

After a simulation completes, raw bin data must be analyzed to extract physical observables with error bars. The workflow depends on whether HDF5 output was enabled.

Analysis Workflow

$ALF_DIR/Analysis/ana_hdf5.out              # analyze all observables
$ALF_DIR/Analysis/ana_hdf5.out Ener_scal    # analyze a specific observable

Results are written to a res/ subdirectory. The input is a single data.h5 file containing all observables.

Without HDF5

$ALF_DIR/Analysis/ana.out *          # analyze all observables
$ALF_DIR/Analysis/ana.out Ener_scal  # analyze a specific observable

ana.out dispatches to the appropriate analysis routine based on the observable name suffix:

SuffixAnalysisOutput
_scalScalar covariance (cov_scal)<name>J (Jackknife mean ± error)
_eqEqual-time correlations (cov_eq)<name>JR (real space), <name>JK (k-space)
_tauTime-displaced correlations (cov_tau)<name>_kx_ky/g_dat (k-resolved, τ-dependent)

Legacy Script Workflow

For fine-grained control, the individual analysis programs can be called directly. The script Scripts_and_Parameters_files/analysis.sh demonstrates this:

# Scalar observables
for i in *_scal; do $ALF_DIR/Analysis/cov_scal.out < $i; done

# Equal-time observables
for i in *_eq; do ln -sf $i ineq && $ALF_DIR/Analysis/cov_eq.out; done

# Time-displaced observables (particle channel)
for i in Green_tau; do ln -sf $i intau && $ALF_DIR/Analysis/cov_tau.out; done

# Time-displaced observables (particle-hole channel)
for i in SpinZ_tau Den_tau; do ln -sf $i intau && $ALF_DIR/Analysis/cov_tau_ph.out; done

Available Analysis Programs

ProgramInputPurpose
ana.outPlain-text bin filesAll-in-one dispatcher
ana_hdf5.outdata.h5All-in-one dispatcher (HDF5)
Max_SAC.outAnalyzed τ-dependent dataMaxEnt / Stochastic Analytic Continuation
convert_bins.pyPlain-text binsConvert plain-text output to HDF5 format

Legacy Programs

The following programs are called internally by ana.out / ana_hdf5.out. They are rarely needed directly.

ProgramInputPurpose
cov_scal.out*_scal filesScalar observable Jackknife analysis
cov_eq.out*_eq filesEqual-time correlation analysis + Fourier transform
cov_tau.out*_tau filesTime-displaced correlation analysis (particle channel)
cov_tau_ph.out*_tau filesTime-displaced correlation analysis (particle-hole channel)
cov_mut.outMutual information dataMutual information covariance analysis

Sub-Pages