Gaussian Output¶
| Item | Value |
|---|---|
| Format ID | g16log |
| Extensions | .log, .out, .g16, .gal, .irc, .gau |
| Read | Yes |
| Write | No |
| Registry role | Reader |
| Data level | Coordinates and QM results |
Quick read¶
from molop import AutoParser
frame = AutoParser("calculation.log", parser_detection="g16log")[0][-1]
print(frame.is_normal)
if frame.energies and frame.energies.total_energy is not None:
print(frame.energies.total_energy.m_as("hartree"))
Output contract
Output is termination status and final total energy, for example True and -317.592366596;
the value depends on the file.
See Find fields by scientific property for other results.
MolOP reads Gaussian output files and extracts the data most often needed for computational chemistry post-processing: structures, energies, thermochemistry, vibrations, orbitals, populations, gradients, NMR and response properties, archive records, and termination status. Coverage is described using Gaussian output concepts familiar to computational chemists. “Partial” means common or tested print forms are structured; it is not a claim of complete Gaussian grammar coverage.
| Capability | Support | Extracted data | Boundaries |
|---|---|---|---|
| Gaussian job metadata | Partial | Software/version metadata, route text, title, charge, multiplicity, and accumulated running time where present. | Fields are normalized; original log line ordering and byte-level layout are not preserved. |
| Title card | Partial | Gaussian title card text as a normalized job title. | Only the title text is advertised; surrounding raw Gaussian formatting is not preserved. |
| Route keywords and calculation setup | Partial | Raw route text plus recognized model chemistry, job types, dispersion, solvation, population requests, and HF handling. | Method-specific Gaussian keywords outside covered cases may remain raw text. |
| Input and standard orientations | Partial | Atoms and coordinates from input orientation and standard orientation blocks. | Distance-matrix and stoichiometry printouts are not advertised as separate structured fields. |
| Rotational constants | Partial | Rotational constants printed by Gaussian, exposed as frame-level frequency quantities. | Principal-axis diagnostic text is not preserved separately. |
| Electronic energies and total spin | Partial | SCF, Gaussian External, reference/electronic, and method-specific energies; main-log values take precedence over duplicate archive-tail values. | External energies require Gaussian’s External calculation of energy ... / Energy= ... NIter= ... result or an RExternal archive record; not every post-HF or correction energy table is guaranteed structured. |
| Molecular orbitals, populations and bond orders | Partial | Molecular orbital energies/occupancies; Mulliken charge/spin, APT, Lowdin, Hirshfeld/CM5, NPA, and ESP charge series; electronic spatial extent; multipoles; and early polarizability values where present. | Orbital coefficients and detailed NBO orbital analysis remain unmapped; Wiberg, overlap-weighted NAO and MO bond-order matrices retain total/alpha/beta channels. |
| Vibrations, IR and Raman | Partial | Frequencies, reduced masses, force constants, IR intensities, per-mode displacement vectors, and imaginary-mode flags. | Raman activities and separate P/U depolarization ratios are supported; VCD/ROA remain unmapped. |
| Thermochemistry | Partial | Temperature, pressure, molecular mass, moments of inertia, rotational symmetry number, rotational/vibrational temperatures, rotational constants, ZPVE, thermal energy, enthalpy, Gibbs free energy, entropy, and heat capacity. | Coverage is mainly tied to frequency-style Gaussian outputs and maintained examples. |
| Dipole and polarizability | Partial | Dipole and polarizability values from covered Gaussian response-property sections. | Only example-backed response fields are advertised; not every response-property print variant is guaranteed structured. |
| NMR shielding and spin-spin coupling | Partial | Parses per-atom Gaussian GIAO shielding tensors, observed isotropic/anisotropic and principal values, total K/J coupling matrices, and FC, SD, PSO, and DSO contribution matrices in Hz. | Coverage targets the standard SCF GIAO print family; referenced chemical shifts, EPR, and other gauges are not structured. |
| Cartesian forces | Partial | Cartesian force arrays from Gaussian force sections. | Only the normalized force array is advertised; auxiliary force diagnostics are not separately recorded. |
| Cartesian Hessian | Partial | Cartesian Hessian data from Gaussian second-derivative sections. | The contract is the normalized Hessian field, not every printed second-derivative diagnostic. |
| Geometry optimization convergence | Partial | Berny optimization summaries, including convergence thresholds, force/displacement values, energy change, and optimized-state flags. | Optimizer diagnostics outside tested examples may remain unstructured. |
| Gaussian archive section | Partial | Archive-tail metadata, coordinates, energies, thermochemistry, polarizability, and Hessian fallback or augmentation fields. | Main-log fields take precedence where applicable; only explicit RExternal plus archive energy supplies electronic-success evidence, while temperature and pressure are not inferred. |
| Termination and SCF status | Partial | Gaussian termination evidence is segment-scoped and contributes to the file-level aggregate without being copied into frames. | Frame status retains frame-local SCF evidence; detailed failure taxonomy outside structured parse diagnostics is not inferred. |
| Calculation time | Partial | Job CPU and elapsed-time style records accumulated into the running-time value. | Per-link timing rows are not exposed as separate timing records. |
| Link1 multi-step jobs | Partial | Link1 section metadata is propagated to later frames so multi-step Gaussian jobs keep the expected per-frame context. | Low-level link boundary rows are not exposed as user-facing records. |
| Format conversion | Supported | Parsed Gaussian output can be converted to coordinate and graph formats through the registry. | Conversion quality depends on successful structure and graph recovery. |
Gaussian Output Capability Matrix¶
g16log is a structured reader and does not provide a Gaussian log writer. In the
matrix, fakeG indicates whether the field can participate in the
Gaussian-like renderer; it does not imply reconstruction of the source log.
| Gaussian output content | Parse | Structured target | fakeG | Source fidelity | Current boundary |
|---|---|---|---|---|---|
| Gaussian software and version | Partial | qm_software, qm_software_version |
Supported | Unsupported | Maintained Gaussian version banners are covered; an exact version cannot be inferred from a truncated file without a header. |
| Link0/options | Partial | File/frame options text |
Supported | Unsupported | Printed Link0 options are stored; fakeG can derive a CPU line from %nprocshared, but complete structured resource projection is not guaranteed. |
| Route and title | Partial | keywords, title_card, semantic_route |
Supported | Unsupported | Route semantics are shared with GJF; title and route are normalized without decorative lines. |
| Method, functional, basis, and tasks | Partial | model_chemistry, task_requests, and compatibility fields |
Partial | Not applicable | Only shared-route keywords are structured; requested properties are never fabricated solely from the route. |
| Charge and multiplicity | Supported | Frame/file top-level fields | Supported | Unsupported | Extracted from Gaussian charge/multiplicity lines or archive metadata; main-log values take priority. |
| Link1 / multi-segment context | Partial | Segment/frame indices and propagated task metadata | Partial | Unsupported | Applicable section metadata propagates to later frames; low-level Link enter/leave rows are not public business records. |
| Input orientation | Partial | atoms, coords |
Supported | Unsupported | Coordinates are normalized without preserving table whitespace or center numbers. |
| Standard orientation | Partial | standard_coords, transformation matrix |
Supported | Unsupported | The input/standard rigid transform can be computed; standard orientation may backfill coordinates when input orientation is absent. |
| Structure-only fast parsing | Supported | Atoms, coordinates, and basic frame data | Not applicable | Not applicable | only_extract_structure stops after orientation and skips energies, frequencies, thermochemistry, and other expensive fields. |
| Rotational constants | Partial | rotation_constants |
Raw/limited | Unsupported | Exposed as a GHz array; fakeG has no complete canonical rotational-constant renderer. |
| SCF/reference energy | Supported | energies.reference_energy, energy observations |
Supported | Unsupported | Extracted from SCF Done, a successful Gaussian External energy result, or its RExternal archive record; fakeG emits E(SCF) without the original method label or cycle history. |
| MP2, MP3, MP4, MP5 | Partial | energies.mp*_energy |
Unsupported | Unsupported | Covered EUMP*/MP5 lines parse; all MP corrections and spin-component tables are not guaranteed. |
| CCSD and CCSD(T) | Partial | energies.ccsd_energy, ccsd_t_energy |
Unsupported | Unsupported | Covered total-energy lines parse; other coupled-cluster variants and correction tables are not guaranteed. |
| Archive energy fallback | Partial | Merged energies |
Indirect | Unsupported | Main-log observations take priority; archive values augment missing or duplicate fields without overriding stronger live evidence. |
| Total spin | Partial | total_spin.spin_square, spin_quantum_number |
Supported | Unsupported | Only standard S**2 / S print forms are covered. |
| MO energies, occupations, and symmetry | Partial | molecular_orbitals |
Raw/unsupported | Unsupported | Supports alpha/beta, open-shell and concatenated numeric values; complete MO coefficient matrices are not parsed. |
| Mulliken charge / spin populations | Partial | charge_spin_populations |
Raw/unsupported | Unsupported | Separate and combined open-shell charge/spin tables are structured; headings, sums, and source precision are not retained. |
| APT / Lowdin populations | Partial | charge_spin_populations |
Raw/unsupported | Unsupported | Coverage is limited to standard tables in maintained examples. |
| Hirshfeld / CM5 | Partial | populations["hirshfeld_charges"], populations["hirshfeld_spins"], populations["cm5_charges"] |
Raw/unsupported | Unsupported | Hirshfeld charge/spin and CM5 charge series parse. |
| NPA / ESP atomic charges | Partial | populations["npa_charges"], populations["esp_charges"] |
Raw/unsupported | Unsupported | The last complete NPA summary and ESP atomic charge table in a frame are retained; detailed NBO orbitals remain unmapped; NBO bond-order matrices are stored separately in bond_orders. |
| Electronic spatial extent | Partial | polarizability.electronic_spatial_extent |
Raw/unsupported | Unsupported | Only the standard scalar line in population output is covered. |
| Dipole and higher multipoles | Partial | Dipole, quadrupole, traceless quadrupole, octapole, and hexadecapole fields | Raw/unsupported | Unsupported | Covered field-independent/response forms parse; all units and frequency-dependent variants are not guaranteed. |
| Polarizability | Partial | Isotropic, anisotropic, and tensor fields | Raw/unsupported | Unsupported | Population, response, and archive sources merge; later explicit response data may replace an earlier approximation. |
| Harmonic frequencies | Partial | vibrations.frequencies, imaginary-mode flags |
Supported | Unsupported | Concatenated numeric output is handled; anharmonic/VPT2 result tables are not parsed. |
| Reduced mass, force constant, and IR | Partial | Corresponding vibrations arrays |
Supported | Unsupported | Values align by mode, including one-mode linear molecules; VCD/ROA remain unmapped. |
| Normal-mode displacement | Partial | vibrations.vibration_modes and axis metadata |
Supported | Unsupported | Normalized to mode/atom/Cartesian; normalization and mass weighting remain unknown. |
| Temperature and pressure | Partial | Frame temperature, pressure |
Supported | Unsupported | Read from standard frequency/thermochemistry lines; archive data does not invent absent temperature or pressure. |
| Molecular mass, inertia, and rotational data | Partial | thermal_informations |
Supported | Unsupported | Covers mass, moments, symmetry number, rotational temperatures, and rotational constants. |
| Vibrational temperatures | Partial | vibrational_temperatures and mode indices |
Supported | Unsupported | Positive-frequency modes are mapped first; only demonstrable array relations are retained when counts disagree. |
| ZPVE and thermal corrections | Partial | ZPVE/TCE/TCH/TCG in thermal_informations |
Supported | Unsupported | Values use normalized Hartree/particle units; all partition-function diagnostics are not included. |
| U0, UT, H, G, entropy, and Cv | Partial | thermal_informations |
Supported | Unsupported | Standard Gaussian thermochemistry summaries parse; source pretty-print layout is not modeled. |
| Cartesian forces | Partial | forces plus axis/order/orientation metadata |
Raw/unsupported | Unsupported | Shape is (N, 3) in source atom order; orientation is normally unknown. |
| Cartesian Hessian | Partial | hessian plus axis/order/orientation metadata |
Raw/unsupported | Unsupported | Main second-derivative data take priority and archive can backfill; shape must be (3N, 3N). |
| Berny convergence | Partial | geometry_optimization_status |
Supported | Unsupported | Force/displacement values, thresholds, energy change, and optimized state are covered; other optimizers may remain unstructured. |
| SCF and termination status | Partial | Frame-local status, segment/file aggregate status |
Synthetic | Unsupported | SCF evidence is frame-local; normal/error termination is segment/file scoped. fakeG termination is not source-status reproduction. |
| CPU / elapsed time | Partial | Independent cpu_time / wall_time; running_time aliases wall time |
Partial | Unsupported | File totals aggregate selected segments separately by quantity; frames prefer local Link timing. Multiframe fakeG removes frame runtime lines. |
| Archive-tail metadata/coordinates | Partial | Missing-field fallback | Indirect | Unsupported | Archive can augment metadata, coordinates, energies, thermochemistry, polarizability, and Hessian; live data take priority. |
| TD excited-state results | Unsupported | No stable public result contract | Unsupported | Unsupported | The route may identify a TD request, but excitation energies and oscillator strengths are not structured. |
| NMR magnetic shielding | Partial | nmr.gauge, per-atom shielding_tensors, isotropic, anisotropy, and principal values |
Unsupported | Unsupported | Covers standard SCF GIAO (ppm) output; tensors align by source atom index and Cartesian orientation is currently unknown. Per-atom shielding values can be projected into RDKit atom properties with qm_embedded_rdmol(embed_nmr=True). |
| NMR spin-spin coupling | Partial | spin_spin_coupling_k, spin_spin_coupling_j, spin_spin_coupling_k_components, spin_spin_coupling_j_components, and coupling_atom_indices |
Unsupported | Unsupported | Expands blockwise lower-triangle total and FC/SD/PSO/DSO K/J tables into symmetric Hz matrices; coupling matrices remain frame-level atom-pair data. |
| EPR, referenced chemical shifts, and other specialized results | Unsupported | No stable public result contract | Unsupported | Unsupported | A route request does not imply result coverage; these specialized properties are not currently mapped. |
| Coordinate/graph conversion | Supported | Frame structure / recovered graph | Not applicable | Not applicable | Coordinate conversion requires extracted structure; graph conversion also depends on bond-order and charge-state recovery. |
| Lossless source-log rewriting | Unsupported | Component raw snippets are inspection/fallback only | Unsupported | Unsupported | The parser is a field extractor, not a complete Gaussian-output CST, and has no byte-for-byte writer. |
capture_source_evidence=True retains source evidence for energies, SCF status, and
optimization convergence for audit-oriented workflows. Default parsing focuses on result
extraction. Neither mode preserves the complete original output structure.
Raman results expose raman_activities and separate
raman_depolarization_ratios_polarized / _unpolarized arrays, retained in
single modes and Raman spectrum metadata. NBO bond-order matrices live in
bond_orders, with separate total/alpha/beta records and observed zero values.
See shared data model
for shared units and cross-program semantics.
Property sources and reading conventions¶
The table maps file contents to MolOP data. See data containers and cross-QM semantics for shared units, indices and missing values.
References: Gaussian input reference; Freq; NBO manual B.6.5/B.6.11.
| Property | File marker or data source | Reading or writing convention |
|---|---|---|
| Gaussian job metadata | Gaussian version banner; Link0/# route; Charge = ... Multiplicity = ...; solvent and atom-mass records |
Map software/version, model chemistry, requests/resources, charge/multiplicity, solvent and observed masses. No absent keyword is evidence of a calculated property. |
| Title card | Title echoed by Link 101 between separators |
title_card comes from the echoed title region; normalization and filename fallback when writing are MolOP policies. |
| Route keywords and calculation setup | Echoed # route; %mem/%nproc; SCRF/TD/Pop/Opt/Freq |
Map shared input request containers using the Gaussian route grammar; raw unrecognized options remain raw. HF is a reference family, not a DFT functional. |
| Input and standard orientations | Input orientation / Standard orientation tables; AtmWgt and thermochemical atom masses |
Coordinates use Å in source atom order. Input→standard transformations are derived from matched geometry; vectors/tensors retain their documented frame conventions. Observed isotope masses are distinct from periodic-table defaults. |
| Rotational constants | Rotational constants (GHZ)/(cm-1), including overflow markers |
rotation_constants use GHz; wavenumbers convert using the speed of light. Unreadable overflow values are not interpreted as zero. |
| Electronic energies and total spin | SCF Done; External Energy; EUMPn/MP5/E(Corr)/CCSD(T); <S**2> and S |
energies retain reference/correlated total energies in Eh with optional observed labels; total_spin uses printed |
| Molecular orbitals, populations and bond orders | Alpha/Beta occupied/virtual eigenvalues and symmetries; Mulliken/APT/Lowdin/Hirshfeld/CM5/NPA/ESP tables; NBO Wiberg/NAO-overlap/MO tables |
MO energies use Eh; spin channels retain unknown energies/occupations rather than truncate. Atomic charge/spin series retain scheme labels. NBO total/alpha/beta matrices remain independent; printed zero and negative values survive. Electronic extent/multipoles retain source units before normalization. |
| Vibrations, IR and Raman | Frequencies --; Red. masses; Frc consts; IR Inten; Atom AN X Y Z; Raman Activ; Depolar (P)/(U) |
Frequency cm⁻¹, mass amu, force constant mdyne/Å, IR km/mol, activity Å⁴/amu. P/U are distinct dimensionless ratios. Groups use their actual mode count; printed mode IDs are separate from internal indices. Incomplete optional Raman columns stay absent. |
| Thermochemistry | Temperature/Pressure; molecular mass/inertia/symmetry; rotational/vibrational temperatures; zero-point/thermal corrections; electronic+thermal sums; E(Thermal)/CV/S |
Keep ZPVE, U₀, TCE/TCH/TCG and U/H/G totals distinct (printed Eh/particle, converted to kcal/mol); entropy/CV cal/mol/K, mass amu, temperature K, pressure atm. Printed RRHO assumptions and positive-mode temperature alignment are retained, not inferred from a lone energy. |
| Dipole and polarizability | Dipole moment (Debye); Exact/Approx polarizability; Dipole=/Polarizability=; multipole labels |
Different printed sections use Debye or atomic units; the parser applies the section-specific conversion. Scalar/tensor polarizability (a₀³), electronic spatial extent (a₀²), dipole (Debye) and higher multipoles (Debye·Åⁿ) are separate fields; tensor ordering is not assumed to match another program. |
| NMR shielding and spin-spin coupling | Isotropic/Anisotropy; XX..ZZ; Eigenvalues; FC/SD/PSO/DSO and total K/J tables |
Read shielding tensors and principal values in ppm; K/J tables retain their printed Hz convention and separate contributions. Convert printed atom indices to 0-based; missing matrix cells stay NaN. Shielding is not referenced chemical shift. |
| Cartesian forces | Forces (Hartrees/Bohr) table |
forces are the printed force values in Eh/Bohr, not a second negation of already printed forces; axes follow source atom/cartesian order. |
| Cartesian Hessian | Force constants in Cartesian coordinates; blocked column/row indices |
Reassemble the symmetric Cartesian Hessian in Eh/Bohr², with explicit atom/cartesian axes; source Hessian differs from a mass-weighted dynamical matrix. |
| Geometry optimization convergence | Maximum/RMS Force; Maximum/RMS Displacement; threshold and YES/NO; Optimization completed |
Retain observed values, thresholds, convergence booleans and completion independently. Missing convergence lines are unknown, not success; fields describe the selected frame. |
| Gaussian archive section | Backslash-delimited archive: method, geometry, HF/MPn/CC energies, thermal/multipole/Hessian records |
Backfill fields from labeled archive entries without overriding stronger live values. Archive presence is not an unrestricted replacement for SCF/termination evidence; missing archive fields remain absent. |
| Termination and SCF status | Normal/Error termination; SCF Done; External Energy; convergence-failure markers |
Keep normal termination and SCF success separate; segment status is preserved independently of frame fields. No complete status is fabricated from energies alone. |
| Calculation time | Job cpu time: days/hours/minutes/seconds; Elapsed time; Leave Link cpu/elap |
Store CPU and elapsed seconds independently in cpu_time and wall_time; running_time aliases wall time. Job totals take priority at file scope, local Link rows at frame scope, with independent fallback by quantity. Summaries and Link rows are alternatives, never additive. Missing wall time stays unknown. |
| Link1 multi-step jobs | Link1/Entering Link 1 and frame orientation/SCF boundaries |
Source spans establish segment/frame membership. Method/setup and termination evidence are assigned within their segment; arbitrary frames do not inherit another job’s success. |
| Format conversion | Parsed geometry/graph and requested target writer contract |
Source parsed fields feed the selected writer. Conversion may require graph recovery; it is not a new quantum calculation or preservation of every log section. |