Output Files
This page describes the GREEN 1.0 output-file contract. Shapes use the shared notation.
Main results file
green-mbpt writes its main results to the file selected by --results_file, which defaults to sim.h5. The root __grids_version__ attribute appears above the iteration tree.
/
├── iter
└── iterN/
├── Sigma1
├── Selfenergy/{data,mesh}
├── G_tau/{data,mesh}
├── Energy_1b
├── Energy_HF
├── Energy_2b
└── muN in /iterN is the self-consistency iteration number. /iter is the iteration selected by the v1.0 restart reader, not a group count or convergence flag. It is written before the datasets in iterN, so an interrupted write can leave the selected group incomplete; do not treat it as a guarantee of a fully written checkpoint.
| Path | Shape | Type | Status | Meaning |
|---|---|---|---|---|
/@__grids_version__ | scalar | UTF-8 string | required | GREEN grids-library version used to write the sampled functions. |
/iter | scalar | unsigned integer | required | Self-consistency iteration selected by the v1.0 restart reader; an interrupted write can leave its iterN group incomplete. |
/iterN/Sigma1 | [ns,ink,nso,nso] | complex128 | required | Static self-energy after mixing. |
/iterN/Selfenergy/data | [nts,ns,ink,nso,nso] | complex128 | required | Dynamic self-energy on the imaginary-time mesh after mixing. |
/iterN/Selfenergy/mesh | [nts] | float64 | required | Imaginary-time sampling points. |
/iterN/G_tau/data | [nts,ns,ink,nso,nso] | complex128 | required | Green’s function on the imaginary-time mesh after the Dyson solve. |
/iterN/G_tau/mesh | [nts] | float64 | required | Imaginary-time sampling points. |
/iterN/Energy_1b | scalar | float64 | required | One-body contribution in Hartree. |
/iterN/Energy_HF | scalar | float64 | required | Hartree-Fock energy including nuclear energy, in Hartree. |
/iterN/Energy_2b | scalar | float64 | required | Correlation/two-body energy in Hartree. |
/iterN/mu | scalar | float64 | required | Chemical potential in Hartree. |
E_total = Energy_HF + Energy_2bEnergy_1b is a decomposition term and must not be added again. The file does not record convergence residuals, convergence status, timings, method name, or a full parameter snapshot.
Complex output arrays use an HDF5 compound type with float64 real and imaginary components; h5py exposes the tested files as complex128. This differs from the trailing real/imaginary axis used by the three HF input matrices.
import h5py
with h5py.File("sim.h5", "r") as results:
required = (
"Sigma1", "Selfenergy/data", "Selfenergy/mesh", "G_tau/data",
"G_tau/mesh", "Energy_1b", "Energy_HF", "Energy_2b", "mu",
)
selected = int(results["iter"][()])
for iteration in range(selected, 0, -1):
group = results.get(f"iter{iteration}")
if group is not None and all(path in group for path in required):
break
else:
raise RuntimeError("No complete iteration checkpoint was found")
green_tau = group["G_tau/data"][...]
selfenergy_tau = group["Selfenergy/data"][...]
chemical_potential = float(group["mu"][()])
total_energy = float(group["Energy_HF"][()] + group["Energy_2b"][()])
print(iteration, green_tau.shape, selfenergy_tau.shape)
print(chemical_potential, total_energy)The numerical quantities use GREEN’s atomic-unit convention, but unit attributes are not stored in the datasets.
High-symmetry-path output
--high_symmetry_output_file selects the high-symmetry-path output file, which defaults to output_hs.h5. It is paired with the high-symmetry-path input.
| Path | Shape | Type | Status | Meaning |
|---|---|---|---|---|
/@__grids_version__ | scalar | UTF-8 string | required | GREEN grids-library version. |
/G_tau_hs/data | [nts,ns,nhs_k,nso] | complex128 | required | Orbital-diagonal Green’s function along the selected path. |
/G_tau_hs/mesh | [nts] | float64 | required | Imaginary-time sampling points. |
/Sigma_1_hs | [ns,nhs_k,nso,nso] | complex128 | required | Interpolated static self-energy. |
/Hk_hs | [nhs_k,nso,nso] | complex128 | required | One-electron Hamiltonian along the path. |
/Sk_hs | [nhs_k,nso,nso] | complex128 | required | Overlap matrix along the path. |
/G_tau_hs/data is diagonal-only: its final dimension is one orbital index, not two matrix indices.This file is produced only by a WINTER/high-symmetry-path job with matching /high_symm_path input and an existing main-results checkpoint from an earlier SC run or an earlier ordered SC job. WINTER interpolates the checkpoint selected by /iter.