Input reference (TOML)

Every key the ferric CLI accepts, section by section.

Unknown keys are a hard error. The config structs in crates/ferric-cli/src/config.rs are #[serde(deny_unknown_fields)], so a misspelled key or section aborts the run before anything is computed. That includes [external_potential], its point charges, and each [[scf.ladder]] rung.

String values go through strict parsers, where an unknown value is an error at load time rather than a default. Most accept any capitalisation; the exceptions are noted per key.

This page is hand-maintained against crates/ferric-cli/src/config.rs at commit 4b64e6ce. Where a default is applied at the point of use rather than in config.rs, it was read from crates/ferric-cli/src/lib.rs at the same commit. If the code and this page disagree, the code wins. For which method.kind values exist and what each supports, see Capabilities and validation.

Units follow the code: [molecule] geometries are Å (XYZ), point charges and cutoffs named *_bohr are Bohr, keys named *_angstrom or documented as Å are Å, and energies are Hartree.

A minimal file:

[molecule]
xyz = "testdata/molecules/water.xyz"
[basis]
name = "cc-pvdz"
[method]
kind = "rimp2"
[mp2]
auxbasis = "cc-pvdz-ri"

Fully specified examples

examples/full/ holds one input per method.kind (task energy), plus optimize and frequencies inputs for rhf, ksdft and rimp2. Each one is a small minimal input with every key of every section that run reads written out at its default, the value the CLI uses when the key is omitted. Each key has a comment with its meaning and allowed values. A key with nothing to write, because its default is unset or it is read only under another key's value, is listed in a # key: comment that says why. The minimal input each file expands is quoted in its header.

The files are generated by crates/ferric-cli/src/full_examples.rs. The test tests/full_examples_anchor.rs runs each file and its minimal input and requires identical run logs, so a written value that is not the default fails it. Sections that turn a feature on ([cosmo], [pcm], [external_potential], [qmmm], [cell], [cdft]) are not written, because their absence is the default.


[molecule] (required)

KeyTypeDefaultAllowed valuesNotes
xyzstringrequiredpathStandard XYZ in Å, relative to the working directory. Not read when [qmmm] is present (the PQR supplies the geometry).
chargeinteger0With [qmmm], applies to the QM region.
multiplicityinteger1≥ 1Read by uhf, rohf and ksdft (UKS) for every task, for task = "energy" by rimp2/oo-rimp2 (UHF + unrestricted RI-MP2 / OO-RI-MP2) and by b2plyp/dsd-pbep86 (a UKS reference with the double hybrid's functional, then c_os E_αβ + c_ss (E_αα + E_ββ) of the unrestricted RI-MP2 on its orbitals; no gradient, so optimize and frequencies are errors) and by att-rimp2, scs-mp2, scs-mp2-2terfc and rs-mp2-rpa (UHF, then the spin-resolved unrestricted RI-MP2 blocks; rs-mp2-rpa adds the spin-summed U-dRPA and dMP2 = E_αβ + (D_αα + D_ββ)/2; energy only), for task = "optimize" and "frequencies" by rimp2, att-rimp2 and scs-mp2-2terfc (UHF + unrestricted RI-MP2, Coulomb, erfc or terfc, analytic gradient) and the open-shell path of pdep-rpa/gw/mp2-v: UHF, or UKS when [rpa] xc is set (pdep-rpa, gw), or ROHF/ROKS for gw with [gw] reference = "rohf"; mp2-v stays UHF. For task = "energy", ccsd and ccsd(t) read it too (UHF, then spin-blocked UCCSD and, for ccsd(t), its (T); [mp2] frozen_core drops the lowest orbitals of each spin). opmp3 reads it for every multiplicity (ROHF, or ROKS with [opmp3] reference). Every other kind refuses > 1; casscf and nevpt2 set the spin of the CAS state with [cas] n_elec_active instead. See open shells.

[basis] (required)

KeyTypeDefaultAllowed valuesNotes
namestring—a bundled name (case-insensitive)e.g. sto-3g, 6-31g*, 6-311++g**, cc-pvtz, aug-cc-pvqz, cc-pvdz-pp, def2-tzvpp, def2-qzvppd, pcseg-1; the full list of 64 sets and their aliases is in Bundled basis sets.
pathstring—path to a Gaussian-94 fileUsed only if name is absent. One of name/path is required.

Auxiliary basis names used elsewhere (auxbasis, df_*_aux) come from the same table: cc-pvdz-ri, cc-pvtz-rifit, aug-cc-pv{d,t,q}z-rifit, def2-svp-rifit, def2-tzvp-rifit, def2-tzvpp-rifit, def2-qzvp-rifit, def2-qzvpp-rifit, def2-universal-jkfit, cc-pvtz-jkfit, cc-pvqz-jkfit, cc-pvdz-f12-optri. cc-pvdz-rifit is an alias of cc-pvdz-ri; both names load the same set.

[method] (required)

KeyTypeDefaultAllowed valuesNotes
kindstringrequiredrhf uhf rohf ksdft rimp2 mp3 oo-rimp2 att-rimp2 mp2-v scs-mp2 scs-mp2-2terfc laplace-mp2 laplace-sos-mp2 pdep-rpa rs-mp2-rpa gw bse-tda tdhf-static-polarizability ccsd ccd ccsd(t) eom-ccsd linlccd drpa wb97x-l-v b2plyp dsd-pbep86 tda tddft casscf nevpt2 opmp3Any other value is an error. Smoke- and Spike-grade kinds print a [warning] grade line on stderr; Proven kinds print none. casscf and nevpt2 need a [cas] section; opmp3 reads [opmp3]. rimp2, drpa and linlccd name the method and are computed exactly unless [local] sets a local approximation (see Capabilities and validation).
taskstring"energy"energy optimize frequencies mdoptimize: rhf ksdft uhf rohf rimp2 scs-mp2 oo-rimp2 att-rimp2 pdep-rpa only (rimp2 and att-rimp2 (erfc only): closed shell, or an open shell on a UHF reference, [scf] jk exact or rijk; scs-mp2: closed shell, [scf] jk exact or rijk; oo-rimp2: closed shell, [scf] jk = "exact" or "rijk", frozen_core = 0). frequencies: the same kinds, with the same restrictions (rimp2 and att-rimp2 also on an open-shell UHF reference); rhf ksdft uhf rohf use the SCF Hessian routes of [frequencies] hessian, and rimp2 scs-mp2 oo-rimp2 att-rimp2 pdep-rpa take central differences of the gradient optimize follows (6 N_atoms gradients). Any other kind is an error that lists these. md: Born-Oppenheimer molecular dynamics on rhf ksdft uhf rohf only, configured by [md] (required with this task).

[scf]

Read by every kind, because every kind runs an SCF first.

KeyTypeDefaultAllowed valuesNotes
max_iterinteger200Iteration cap; equals the library (RhfConfig) and Python default.
energy_convfloat1e-3Sanity bound, not a target. Convergence requires ΔP_rms < density_conv, ΔP_max < 10·density_conv and ΔE < energy_conv. ΔE has a noise floor that grows with system size, so a tight value is met only by chance and costs iterations; ferric prints a warning: [scf] energy_conv ... line when a value you wrote is below 0.3 times the estimated floor (see sharp bits); functionals, the LinK / COSX exchange builders, PCM / COSMO and double-hybrid kinds get no warning.
density_convfloat1e-6The convergence signal.
diis_sizeinteger8
diisstring"pulay"pulay adiis ediis (case-insensitive)An unknown value is an error when the file is loaded.
diis_switch_threshfloat1e-1Error level at which ADIIS/EDIIS hand over to Pulay. Ignored for pulay. If the density stops moving while the error is still above this level, the run is not reported converged: it restarts once on plain Pulay DIIS from a clean history, with a stderr warning (with inf, the level is 1e-2). A switch at or below the commutator floor (about 1e-6) can trigger the restart on a run that had converged, costing a few iterations.
smearing_sigmafloatnoneHartreeFermi–Dirac smearing width. Absent means integer occupations.
guessstring"minao"minao sad hcore (case-insensitive)"sad" is an alias of "minao" (the MINAO projection guess); the free-atom-SCF SAD guess is not selectable from config. Any other value is an error.
guess_basisstringunsetbundled basis nameSecondary-basis (Q-Chem BASIS2) guess: the same SCF (method, functional, charge, multiplicity and [scf] settings) is converged in this basis first and projected into the target basis as the starting point. The one exception: the secondary SCF never runs the stability check or the stability descent (check_stability, stability_descent); those apply to the target solution only. An unknown basis is an error at load time, and so is a periodic [cell] system. symmetry = true refuses it. With it set, guess selects only the secondary SCF's starting point. A secondary SCF that does not converge (iteration cap, stall or divergence) does not stop the run: the target starts from its default guess, with a warning. It also runs inside the df_guess pre-stage, and again at every geometry of an optimization or finite-difference Hessian. The rimp2, scs-mp2 and pdep-rpa optimizers (task = "optimize") build their own RHF reference without it, so that combination is an error at load time. The guess can change which SCF state is reached. See SCF.
guess_projectionstring"fock"fock overlap (case-insensitive)How guess_basis is projected: fock (Q-Chem FOPPROJECTION, project the density and diagonalise the target Fock) or overlap (OVPROJECTION, project and re-orthonormalise the occupied MOs). Any other value, or setting it without guess_basis, is an error.
soscfboolfalseEnables the second-order (Newton) step in the SCF tail.
auroraboolfalseOpt-in AURORA auxiliary-curvature accelerator. Closed-shell RHF only (kind = "rhf", multiplicity 1). Same fixed point as DIIS; a speed-up (fewer J/K builds), not a convergence rescue.
trah_triggerfloatunset> 0Opt-in trust-region augmented-Hessian solver, engaged once the DIIS error falls below this value (rhf and uhf). A convergence rescue: fewer iterations, more wall time.
integral_threshfloat1e-12Integral screening threshold.
eri_precisionfloat1e-200 to 1e-8libint primitive-screening precision for the SCF J/K integrals. Omitted: FERRIC_ERI_PRECISION if set, else 1e-20. 1e-14 costs up to 6e-9 Ha in E_J for atoms past Ne; 0 disables primitive screening (1.8–5.7× slower per J/K build).
jk_storagestring"auto"auto memory disk direct splitWhere the raw RI-J/K three-index tensor lives. auto keeps it in memory when n_aux × n_bf² × 8 bytes fit [memory] budget_gb and the shared memory pool, keeps the packed symmetric half (n_aux × n_bf(n_bf+1)/2 × 8 bytes plus 64 unpacked aux rows of scratch) when only that fits, and otherwise, on one rank with the Coulomb operator and orbital/aux angular momenta up to 4/6, builds J by Split-RI-J (as split, below; a notice says so). For a tensor still needed beyond that (DF-K's, or J's on several ranks or for another operator) it measures this machine (an untimed warm-up block, four timed integral blocks, and a cold write and read of up to 64 MiB in the spill directory) and picks the cheaper of disk and direct for a 30-pass SCF. When J and K share one auxiliary basis, the raw tensor that DF-K needs is built as before and, when it is not held in memory, freed after DF-K's copy is made, with J from Split-RI-J. A spill directory without room for the packed tensor plus headroom rules disk out. memory is an error when even the packed half does not fit. disk always spills to $TMPDIR. direct recomputes each block per pass and writes nothing. Omitted: FERRIC_JK_STORAGE if set; an invalid value in either place is an error. J from the packed, spilled and recomputed tensors is bit-identical (all three are consumed through the same packed block stream); the unpacked in-core J differs from them in the last bits (summation order, about 1e-12 Ha in the energy). This holds for J only: K and the other consumers of the tensor (the DF-K dressing follows the tensor's own block order, and the packed tier's aux block size differs from the spill file's) can differ between tiers at the level of summation order. The tier chosen by auto depends on the budget (default 0.8 × available RAM) and on the free bytes in the shared memory pool, so the same input can pick a different tier on a busier machine or with a different budget; set memory, disk, direct or split to pin it. split stores no RI-J tensor on one rank (with J and K on one auxiliary basis too: the raw tensor DF-K needs is freed once DF-K's copy is made); on several ranks it warns and stores the RI-J tensor as auto would, with that tensor's memory. Where it applies, J comes from Split-RI-J (the density, and the fitted coefficients, contracted with the three-centre integrals' Hermite intermediates as they are computed, so no (P|μν) block is formed), recomputed every build on one rank; it is RI-J to 1e-14 relative per term (terms with a large Boys argument are evaluated as point-multipole interactions, with a proven bound on that error), uses tens of MB instead of the tensor, and costs more time than a tensor held in memory: on danuglipron PBE/def2-SVP the whole SCF took 81 s against 46 s with the tensor in memory, and 584 s with direct and 600 s with disk (all four energies identical to 1e-10 Ha; peak memory 2.5, 6.4, 3.3 and 6.5 GB). With split any tensor K still needs is stored as under auto, and the raw tensor shared with DF-K is freed once DF-K's copy is made. Applies to the RI-J tensor, and to the RI-K tensor when both use the same auxiliary basis on one rank; the RI-K dressed tensor follows [memory] budget_gb.
ri_j_precisionstring"f64" with RI-K or for task = "optimize" / "frequencies" / "md", else "f32"f32 f64Storage precision of the RI-J three-index tensor. f32 (the default for task = "energy" with RI-J alone: a pure or range-separated functional on fitted J, RIJCOSX, Split-RI-J) rounds each stored integral to the nearest f32 once and contracts it with f64 vectors and f64 accumulation, so the tensor takes half the memory; f64 stores it in f64 and reproduces the default before 2026-11-07 bit for bit. Omitted with task = "optimize" or "frequencies", the default is f64: the f32 energy surface jitters by up to ~1e-6 Ha between nearby geometries, the size of the optimiser's energy criterion. Omitted with a [gpu] mode that may build J on the device, the default is also f64 (the device RI-J needs the f64 tensor). Omitted with the ω = 0 exchange density-fitted too (RI-JK: Hartree-Fock, a global hybrid, the RI-JK reference of the MP2 family), the default is f64 as well: K is the cost there, and the default RI-JK tensor (pair-major) contracts J in f64. An explicit value always wins, "f32" in an optimisation included, on every RI-JK tensor layout and rank count: with "f32" the pair-major tensor builds K and J comes from the f32 RI-J tensor beside it. The rule is resolved once, before the tensor layout is chosen, so for a given input the precision and the energy do not depend on whether the pair-major tensor fits or on the MPI rank count. An f32 request falls back to the f64 tensor, with a notice, when the f32 tensor does not fit the memory budget (decided on the budget alone, never on what else the memory pool holds) or jk_storage is disk or direct, so with the default the energy can move by up to ~1e-5 Ha with [memory] budget_gb: "f64" removes the budget-dependent f32 change, but energies can still differ in the last bits when the budget changes the jk_storage tier; Split-RI-J stores no tensor and is f64. Gradients, optimisation, Hessians and frequencies follow the SCF: they contract the same rounded integrals into the fitted density, so they differentiate the energy the SCF computed. The precision used and why (explicit, geometry-task default, gpu default, ri-jk default, default) is in the certificate's ri-j entry, the run log's run_start header and ri_j_tensor record and result.ri_j_precision in Python; its measured energy and gradient error is tabulated in SCF: RI-J tensor precision. Naming dfj-f32 in [precision] mixed_kernels does not set the storage (this key does), and naming it next to ri_j_precision = "f64" is an error. Any other value is an error. Ignored without RI-J. Python: ri_j_precision= (scf_ri_j_precision= on drivers with more than one iterative stage).
ri_k_precisionstring"f64"f64 f32Storage of the RI-K (DF-K) metric-dressed three-index tensor (dressed by the Cholesky L⁻¹ of the metric when certified, else its truncated V^{-1/2}; the debug switch FERRIC_DFK_METRIC=eigh forces the latter). Both values hold it as the packed symmetric half (n_aux × n_bf(n_bf+1)/2 elements) instead of the full square held before 2026-11-08, and both contract K in f64; only the stored precision differs. f64 (default): on the truncated V^{-1/2} route K, and the SCF, are bit-for-bit those of the former square tensor, at half its memory; on the certified Cholesky route K differs from it by about 1e-13 relative at a fixed density (converged energies within 3e-11 Ha). f32: each stored element rounded once to the nearest f32, a quarter of the former memory; measured energy change at most 1.1e-7 Ha on sulfamethoxazole/def2-SVP (B3LYP, PBE0, CAM-B3LYP, UKS B3LYP) and 2.1e-7 Ha for HF water/cc-pVDZ, unchanged iteration counts, but the energy is then not smooth in the geometry at that level (finite differences of it are off by ~|ΔE|/h, 2e-4 Ha/Bohr at h = 1e-3 Bohr), while the analytic gradient stays smooth. See SCF: RI-K tensor storage. A [gpu] mode that may build K on the device keeps the square f64 tensor; a tensor that does not fit in memory spills (packed f64 on disk) whatever this says, with a notice when f32 was asked for. When J and K share one auxiliary basis, the raw tensor is held packed rather than unpacked when the unpacked one would not leave room for the dressed band; with "f64", when even the packed raw tensor and the band do not fit the budget together, the raw tensor is not held: it is computed once to dress K (bitwise the same K), and J takes its f32 tensor by a second pass when that fits, else Split-RI-J (see SCF: RI-K tensor storage). Any other value is an error. Python: ri_k_precision=.
screeningstring"schwarz"schwarz csb csamcsb is rigorous and never looser than schwarz. csam is not a bound. It is refused for erfc (short-range) operators. See SCF: screening.
eristring"auto"auto direct incoreHow exact four-centre J/K are built. incore computes the AO integrals of the geometry once (every quartet, no screening, the packed lower triangle of the pair matrix, about n⁴/8 doubles, charged to the [memory] budget) and forms J/K by matrix products in every SCF iteration and in the CPHF, Z-vector and OO-MP2 solves that follow on the same geometry. auto takes it when the store needs at most a quarter of the budget and J and K are both exact four-centre (no RI, COSX, LinK or range separation), and is direct otherwise and under MPI. direct is the screened direct build. incore on a fitted or seminumerical route is an error. The run log and the certificate (routes) name the store. Python eri= (run_rhf/run_uhf/run_rohf), scf_eri= (run_optimize, run_frequencies, run_rimp2, run_oo_rimp2). See SCF: in-core integrals.
gc_rotationstringunset (FERRIC_GC_ROTATE, then "auto")auto rot1 offInternal contraction rotation of generally contracted shells (cc-pVXZ and similar) in the direct four-centre SCF J/K builder: J and K are built on an exactly equivalent rotated basis and transformed back, so the AO basis is unchanged. auto projects the shared diffuse primitive out of the long columns and then applies one optimized-general-contraction elimination; rot1 does the first stage only; off is the unrotated builder bit for bit. Energies move at the screening-noise level (about 1e-11 Ha); a segmented basis (def2, Pople, STO-3G) is unchanged bit for bit under every value. Followed by the exact four-centre builds of this SCF and of the steps that reuse its geometry: the SCF's direct builders (DirectJ/DirectK included, so the J or K half next to RI, LinK or COSX) and its in-core store; the Newton, TRAH and stability J/K; the CPHF/CPKS of the Hessian and response properties; the RI-MP2 and OO-MP2 Z-vector J/K; the analytic gradient's four-centre derivative integrals; the KS Z-vector response (zvector_ks, e.g. the MBD relaxation); the [cas] integrals = "direct" J/K; and the GW exact exchange. Not by RI, LinK, COSX, CFMM or the Hessian's second-derivative integrals, and not by builds that make their own screening tables outside a run (the Python jk / grad_jk / FockResponse blocks), which stay unrotated. Unset, FERRIC_GC_ROTATE decides (case and surrounding blanks ignored), then auto; the variable is not read for builds no run configured. Setting it does not change the J/K route: an omitted jk resolves as if it were absent (RI-JK where that is the default), and when the reference SCF then builds no four-centre J or K for it to act on (RI-JK, RIJCOSX, a pure functional on RI-J) the run warns that it does not affect that SCF, with the four-centre opt-out the kind accepts (jk = "exact" where jk is read, else df_j_aux = "" and df_k_aux = ""); not for gw on a hybrid [rpa] xc, whose exact-exchange diagonal is built four-centre and follows the key. On the RI-MP2-family and pdep-rpa optimize / frequencies runs it does not reach the SCFs the gradient solves at each geometry (they run without it), only the certificate's reference SCF (at the final geometry; the input one for frequencies) (the run warns). Any other value, including another case, is an error. Python: the gc_rotation= kwarg of run_rhf, run_uhf, run_rohf, run_dft, run_uks and run_roks. The book section "Direct and incremental J/K builds" has the derivation and measurements.
jk_digeststringunset (FERRIC_JK_DIGEST, then "pair")pair legacyHow the direct four-centre J/K builders contract each computed shell-quartet block into J and K. pair (the default) is the bra-pair-local digest: for each bra shell pair the bra Coulomb block is a running dot product written once, the ket Coulomb block goes once per quartet into a half matrix, and exchange is accumulated only into the rows of the two bra shells; J = Jh + Jhᵀ and K = Kb + Kbᵀ are formed once per build (a density that is not symmetric to roundoff takes a general form, K = Kb + Ktᵀ). legacy is the 8-fold image scatter of earlier releases, bit for bit. The two use the same integrals, screening and work partition and agree to about 1e-14 relative in J and K; SCF energies move in the last digits (about 1e-12 Ha). In production builds the pair digest's digest stage is 2.6–3.1× faster and the whole J/K build 1.22–1.38× faster (octane cc-pVDZ and def2-SVP, butane cc-pVTZ). Followed by the direct builds of this SCF and of the steps that reuse its geometry: the SCF's DirectJK (closed and open shell, full and incremental, rotated or not), DirectJ/DirectK (the J or K half next to RI, LinK or COSX), the Newton, TRAH, stability and closed-shell response J/K (build_jk), the KS Z-vector response, the [cas] integrals = "direct" J/K and the GW exact exchange. Not by the in-core store, LinK, CFMM, density fitting, the gradients, the open-shell response build or the block-CPHF multi-density build, which keep their own digests, nor by the UHF/ROHF guess Fock, which always runs legacy (unrotated), so an open-shell SCF starts from the same guess whatever its digest. Unset, FERRIC_JK_DIGEST decides (case and surrounding blanks ignored; an empty value is an error, as for FERRIC_GC_ROTATE), then pair; the variable also reaches builds no run configured (the Python jk blocks, for example). Setting it does not change the J/K route: an omitted jk resolves as if it were absent (RI-JK where that is the default, on which the digest is inert). The RI-MP2-family and pdep-rpa optimize / frequencies runs (rimp2, scs-mp2, att-rimp2, scs-mp2-2terfc, pdep-rpa) re-solve the reference at each geometry from their gradient route alone. For the RI-MP2 family that route carries the J/K choice (jk, jk_aux: four-centre or RI-JK on the named fit; the pdep-rpa reference is always four-centre) and this key, which reaches the reference SCF at every geometry (and every displaced point of the pdep-rpa finite difference) and the closed-shell response J/K of the analytic gradients that reuse its bounds (the open-shell response keeps legacy, as everywhere). gc_rotation, k_builder, screening, eri and integral_thresh are not carried: these runs solve no shared SCF before the gradient loop, so those keys reach only the certificate's reference SCF (at the final geometry; the input one for frequencies), and the run warns when any of them is set. The run log records the key as jk_digest and the digest it resolves to as jk_digest_resolved. Any other value, including another case, is an error. Python: the FERRIC_JK_DIGEST variable.
gc_kernelstringunset (FERRIC_GC_KERNEL, then "off")auto offShared-primitive kernel of the contraction-rotated direct J/K walk (see gc_rotation). After the rotation, the columns of one atom and l that share primitives form a group (cc-pVDZ carbon s: core and valence over 8 primitives). auto takes every surviving (ss|ss) and (ss|sp) quartet (the p in any position) from a block evaluated once per group quartet, from one pass over the union primitives, instead of one libint call per column quartet; the screening, the digest and the work partition per quartet are unchanged. off (the default for this release) is the libint walk bit for bit. The kernel's integrals agree with libint's to about 1e-15 relative, so J and K move by about 1e-14 relative and SCF energies by about 1e-12 Ha; results stay bitwise identical across thread counts. Effective only where the rotated walk runs (a generally contracted basis with gc_rotation not "off"), with jk_digest = "pair", in the SCF's direct builds (DirectJK, closed and open shell, full and incremental); every other build (segmented bases, the unrotated or legacy walk, DirectJ/DirectK, the Newton, stability and response J/K, the in-core store, LinK, CFMM, density fitting, gradients, non-Coulomb operators) keeps libint. The setting reaches the same consumers as jk_digest (the KS Z-vector response, [cas] integrals = "direct", the GW exact exchange), where it has no effect today. Unset, FERRIC_GC_KERNEL decides (case and surrounding blanks ignored), then off; MPI ranks must agree. Like jk_digest, setting it does not change the J/K route (an omitted jk resolves as if it were absent), and the RI-MP2-family and pdep-rpa optimize / frequencies runs carry it to the reference SCF they re-solve at each geometry; set on a run whose reference SCF has no four-centre build, it warns, as gc_rotation does. The run log records the key as gc_kernel and the setting it resolves to as gc_kernel_resolved; the checkpoint identity records the resolved setting (a file written before the key existed reads as off). Any other value, including another case, is an error. Python: the gc_kernel= kwarg of run_rhf, run_uhf, run_rohf, run_dft, run_uks and run_roks. Measured per-build gains with auto (2 threads): 1.22× on octane cc-pVDZ, 1.12× on butane aug-cc-pVDZ, 1.03× on butane cc-pVTZ (within noise), none on segmented bases; details in the book section "Direct and incremental J/K builds".
relativisticstringunsetx2c1eRelativistic core Hamiltonian. x2c1e: spin-free X2C-1e (Dyall; Kutzelnigg and Liu; Liu and Peng), the one-electron Dirac equation of the nuclear potential decoupled in the uncontracted basis and contracted back, c = 137.036 a.u.; the settings of PySCF scf.RHF(mol).sfx2c1e(). It replaces T + V once before the SCF; the two-electron interaction and property operators stay nonrelativistic (no picture change). Energies only (task = "energy"), for kind = rhf, uhf, rohf, ksdft, rimp2, scs-mp2, ccsd, ccsd(t) (post-SCF energies read the X2C orbitals; kinds that rebuild the nonrelativistic core Hamiltonian, such as oo-rimp2, casscf and nevpt2, are refused); an ECP atom and [cell] are errors. The certificate records it as an approximation and the run is Ungraded. Python relativistic= (run_rhf, run_uhf, run_rohf, run_dft/run_ksdft, run_uks, run_roks). Example: examples/hbr-x2c-rhf.toml.
k_builderstring"direct"direct link cosxExchange builder. cosx with RI-J active (named, or the Kohn-Sham default) is RIJCOSX: J from RI-J, K from COSX, and the RI-K default is not applied; cosx next to an explicitly named df_k_aux is an error. link is ignored with a warning when DF-J/DF-K is active. Both are ignored with a warning for functionals with no exact exchange and for range-separated functionals. See SCF: choosing how exchange is built.
cosx_gridinline table{ radial = 35, angular = 194, prune = "sgx" }angular: any grid_angular order except the negative-weight rules 74, 230 and 266; prune ∈ none sgx nwchemThe COSX SCF grid. A table without prune is flat; with prune = "sgx", angular is the peak order of the pruned rows (50/110/194/302/434/590/770). Only with k_builder = "cosx"; otherwise it is an error. The inner table is strict.
cosx_final_passbooltrueRe-evaluate exchange once on a larger grid at the converged density and report that energy (the SCF-grid energy is printed and logged too). Without cosx_final_grid the grid is { radial = 50, angular = 302, prune = "sgx" }. Gradient tasks run without it; ROHF/ROKS skips it with a note (an explicit true there is an error). Only with cosx.
cosx_final_gridinline tablenoneas cosx_gridThe final-pass grid; setting it turns the pass on (cosx_final_pass = false with it is an error). RHF/RKS and UHF/UKS only. Only with cosx.
cosx_overlap_fitbooltrueOnly with cosx; otherwise it is an error.
cosx_grid_scheduleboolfalseRun the first SCF iterations on a coarse pruned sgx (25,110) exchange grid and switch to cosx_grid once the largest density change falls below 1e-3. Convergence is accepted only on the production grid, DIIS restarts at the switch, and the final-grid pass is unchanged. RHF/RKS and UHF/UKS; ROHF/ROKS refuse it. Only with cosx; setting it otherwise is an error.
cosx_backendstring"md3c1e"md3c1e cosx-aOnly with cosx; otherwise it is an error. cosx-a is the slower cross-check kernel.
cosx_screen_threshfloat1e-7≥ 0Only with cosx and md3c1e. 0 disables the screen.
cosx_half_transformstring"sparse"sparse denseOnly with cosx.
cosx_fp64_multiplierfloat1e5 with [precision] mode = "mixed" and cosx-kern in mixed_kernels, else 0≥ 0Precision-router threshold: tau = cosx_fp64_multiplier × cosx_screen_thresh. A kept (shell pair, sub-batch) unit whose Hölder K bound is below tau is counted as f32-eligible; the exchange matrix is unchanged (every unit is still computed in f64), so the key only changes the route_* counters. Setting it requires k_builder = "cosx", [precision] mode = "mixed" and cosx-kern in mixed_kernels, and cosx-kern is not in the shipped kernel set, so in this build setting the key is always an error; a value above 0 also needs md3c1e and cosx_screen_thresh > 0. 1e5 is the multiplier recommended by Laqua, Kussmann and Ochsenfeld, J. Chem. Phys. 154, 214116 (2021).
df_j_auxstringnone; def2-universal-jkfit for ksdft, pdep-rpa, rs-mp2-rpa, gw, bse-tda, tdhf-static-polarizability, tda, tddftaux basis name, or ""RI-J. With neither key set, rhf/uhf/rohf use exact 4-index J/K. df_j_aux = "" selects exact J for the kinds that default to RI-J (the SCF J/K log line then reads RI-JK via with a blank name). Unlike Python's run_dft, the CLI does not accept "exact", "none" or "off": any non-empty value is looked up as a basis name, and an unknown one fails the SCF.
df_k_auxstringas df_j_auxaux basis name, or ""RI-K. Use a JK-fit set. "" selects exact K.
jkstringrijk on the JK-fit set matched to the orbital basis (closed-shell task = "energy", closed-shell rimp2 / scs-mp2 / oo-rimp2 / att-rimp2 / scs-mp2-2terfc with task = "optimize", and open-shell rimp2 / att-rimp2 / scs-mp2-2terfc with task = "optimize" or "frequencies"); exact for any other open shell, or when k_builder, eri, screening, df_increments, df_guess = true or df_guess_aux is set; rijk on def2-universal-jkfit for rs-mp2-rpaexact rijk rijcosxMP2-family kinds (rimp2, oo-rimp2, att-rimp2, mp2-v, scs-mp2, scs-mp2-2terfc, laplace-mp2, laplace-sos-mp2, rs-mp2-rpa) with task = "energy", and rimp2 / scs-mp2 / att-rimp2 / scs-mp2-2terfc / oo-rimp2 with task = "optimize" or "frequencies" (exact or rijk; the gradient re-solves its reference on that route at every geometry): how the reference SCF builds J/K. Every other kind and task refuses jk / jk_aux (use df_j_aux / df_k_aux, "" for four-centre). rijk = RI-J + RI-K on jk_aux; rijcosx = RI-J on jk_aux + COSX K (the cosx_* keys apply); exact = four-centre. Same rule as the Python scf_jk kwarg. Cannot be combined with df_j_aux/df_k_aux; a k_builder under rijk (including rs-mp2-rpa's RI-JK default), or other than cosx under rijcosx, is an error. oo-rimp2 accepts exact and rijk (its orbital steps rebuild J/K on the reference's route, so the HF energy and gradient are the fitted ones under rijk), the unrestricted OO-RI-MP2 of an open-shell molecule follows rijk the same way, and it refuses rijcosx (COSX has no OO route) and a fitted df_j_aux/df_k_aux (spell the fit jk = "rijk"). A fitted mode refuses df_increments and an explicit df_guess = true, and skips the default DF-guess pre-stage. The run log's scf_jk / jk_aux / k_builder record the route the SCF takes, the printout's Reference SCF J/K: line names it and, when jk is omitted, the rule that chose it, and the certificate carries the fitted reference as scf ri-j / scf ri-k with its aux (an optimization's gradient line names the RI-JK reference). An RI-JK optimization declares its gradient's peak memory before the reference SCF and stops when it exceeds [memory] budget_gb. Python's run_optimize resolves an omitted scf_jk the same way; the Python energy entry points' scf_jk defaults to exact.
jk_auxstringwith jk omitted: cc-pvtz-jkfit for cc-pVDZ and cc-pVTZ, cc-pvqz-jkfit for cc-pVQZ, aug-cc-pv{d,t,q}z-jkfit for the augmented sets, def2-universal-jkfit otherwise; with jk set: def2-universal-jkfitbundled JK-fit basis nameThe fitting basis for jk = "rijk"/"rijcosx". It is not the [mp2] auxbasis (an MP2-fit set for K costs mHa); a name without "jkfit" draws a warning. Setting it without jk, or with jk = "exact", is an error.
level_shiftfloat0.0HartreeVirtual-block shift. Left at 0 with a meta-GGA functional, the library applies 0.5.
mom_after_iterinteger0Maximum-overlap occupation pinning after this many iterations. 0 = aufbau throughout.
mom_referencestring"previous"previous initialWhich occupied set MOM compares against. previous: the set accepted at the previous iteration, from iteration mom_after_iter + 1. initial: the starting occupied block (the configured guess; the CLI has no dm0 input), held from the first iteration (initial MOM, Barca, Gilbert and Gill 2018). UHF/UKS only; rhf/rohf kinds, mom_after_iter > 0 and stability_descent are refused. Python: run_uhf(mom_reference=).
verboseboolfalseOne line per SCF iteration. The CLI's --verbose/-v flag ORs into this.
df_guessboolonTwo-stage SCF: a fully density-fitted SCF first, then the configured SCF from its density (Psi4's DF_SCF_GUESS; the second stage is exact only where the configured J and K both are); closed shell only: on an open shell it never runs and an explicit true is an error. On the correlated kinds (rimp2 and the others) it runs before the reference SCF; on rhf/ksdft it runs once before the convergence ladder, on rung 0's settings, and rung 0 starts from its density (later rungs escalate as without it). On both, left unset, it runs only when the SCF has a four-centre J or K build to save and no starting point of its own (no guess = "hcore", guess_basis, MOM or symmetry), the rule of the Python df_guess=None, and an explicit true where it cannot apply (one of those starting points, a fully fitted or COSX-only SCF, an element the aux lacks) is an error naming why. A ksdft run fits J/K by default, and so do pdep-rpa, gw, bse-tda, tda, tddft and tdhf-static-polarizability, so it stays off there. One stderr line says what ran; the run log's df_guess record says why it did or did not. Mutually exclusive with an explicit df_increments = true.
df_guess_auxstringdef2-universal-jkfitaux basis nameIt is an error when df_guess is off.
df_incrementsboolfalseDF-corrected incremental Fock SCF. Closed-shell correlated kinds only; warned and ignored on rhf/ksdft.
df_increments_auxstringdef2-universal-jkfitaux basis nameIt is an error when df_increments is off.
check_stabilityboolfalseDiagnostic only: warns if the solution is a saddle point and never fails the run. On an RHF/HF run it reports two verdicts: internal (the singlet channel: is this RHF solution an RHF minimum?) and external RHF→UHF (the triplet channel: does breaking spin symmetry lower the energy?). A stretched geometry is often internally stable and externally a saddle: water / 6-31G at r(OH) = 2.0 Å gives +1.97e-2 and −3.07e-1. For an external instability, run kind = "uhf"; re-converging RHF does not help. RKS gets the internal verdict only (no triplet XC kernel, printed as a skip); UHF/UKS get the internal verdict, which already spans the independent α/β rotations. ROHF/ROKS, range-separated and meta-GGA are skipped entirely with a printed reason. The analysed Hessian is that of the energy the SCF minimised: on a density-fitted route (RI-J, DF-K) the response uses the same fitted integrals, so λ_min differs from the exact-integral value by the fitting error (2e-6 to 5e-6 Ha on water and NH2 / cc-pVDZ, above the 1e-6 Ha noise floor). A degenerate-Π radical such as OH ²Π has an exact zero mode (rotating the π hole) and is reported MARGINAL, not stable, on fitted and exact routes alike.
stability_descentboolfalseState selection: at a saddle of the orbital Hessian (UHF, or the RHF singlet channel), follow the downhill eigenvector and re-converge, keeping the lowest state. Turns check_stability on as well. Same as Python run_uhf(stability_descent=True). Only kind = "rhf", "uhf" or "ksdft" with task = "energy"; any other kind or task is an error. A KS functional with no stability verdict (range-separated, meta-GGA) skips the descent with a printed reason. Costs one Davidson per converged solve plus one SCF per descent. See examples/o2-uhf-stability-descent.toml.
symmetryboolfalsePoint-group-blocked closed-shell RHF or RKS: detect the Abelian subgroup, symmetrize and reorient the geometry, and diagonalize the Fock matrix per irrep. Only kind = "rhf" (Hartree-Fock, or RKS with [dft] functional) or kind = "ksdft", task = "energy", multiplicity 1, no [dft] dispersion, no [cell]/[qmmm]; anything else is an error (the result lives in a rotated frame, so gradients, optimizers and post-HF would be wrong; UHF/ROHF/UKS/ROKS blocking is not wired to the CLI). Under RKS the KS grid is built in the symmetry frame, where it is exactly symmetric, so no Fock or density symmetrisation is applied; a partially filled degenerate shell (stretched H2, singlet O2) is refused unless irrep_nelec chooses the occupation, because the grid can split such a shell. The energy is that of the SYMMETRIZED geometry; the printout and the run log give the point group, the per-irrep electron counts and the symmetrization shift (at most 1e-4 Bohr). No vector quantity is produced. The blocked SCF is one plain solve: [[scf.ladder]], df_guess, df_increments, soscf, aurora, trah_trigger, check_stability/stability_descent, smearing_sigma, mom_after_iter, mom_reference and k_builder = "cosx" are refused, and the default convergence-ladder escalation is not applied. Python: run_rhf(symmetry=True), run_dft/run_ksdft(symmetry=True) (return SymmetricRhfResult).
irrep_nelectableunseteven countsElectrons per irrep, irrep_nelec = { A1 = 4, B2 = 2 }: pins the occupation instead of aufbau across irreps (unlisted irreps follow aufbau). Requires symmetry = true. Python: run_rhf(irrep_nelec={...}), run_dft(irrep_nelec={...}).
ladderarray of tablesbuilt-in laddersee below[[scf.ladder]] rungs. Read only by rhf and ksdft.
save_referencestringunsetfile pathWrite the converged reference SCF of a correlated kind (rimp2, ccsd, drpa, gw, tddft, ...; task = "energy") to this NPZ file once it converges, before the correlated stage runs, so a later run can read it with read_reference. The path is relative to the working directory, and its directory must exist (checked before the SCF). The path must not be a directory or a symlink. A reference that did not converge is not written, with a warning; under MPI only the root rank writes. Both keys refuse, before the SCF, a reference with the COSX final-grid pass (on by default with COSX exchange; set cosx_final_pass = false) or polarizable embedding, which the file does not store. The SCF kinds (rhf, uhf, rohf, ksdft), the double hybrids, casscf, nevpt2, opmp3, other tasks and [cell] refuse the key: they solve their SCF on another route or at every geometry. See Reusing a reference SCF.
read_referencestringunsetfile pathRead the reference SCF from a save_reference file instead of solving it: no SCF iteration runs, and the correlated stage gets the stored orbitals, orbital energies, densities and Fock matrices bit for bit, so its energy is the one the saving run's reference gives (equal to a fresh run's only at the same thresholds, thread count, ERI route and build). The file must be the reference this run would solve: same molecule (coordinates compared bitwise), basis, charge, multiplicity and spin treatment, the same value of every setting that changes the SCF's numbers (functional, grid, J/K route and aux bases, guess, DIIS and the other state-selecting settings, process settings such as eri_precision), the same route that converges it (the DF-guess pre-stage and its aux, df_increments, the open-shell driver, [gw] reference), the same MPI rank count, and a file converged at least as tightly as the run asks (the run's thresholds no tighter than the file's); any difference is an error that names the fields, never a fresh SCF in its place. So is a missing, truncated or corrupted file (checksum) and a file whose SCF did not converge. A file converged tighter than the run asks is accepted, and the run says so. Same scope as save_reference; cannot be combined with save_reference or check_stability (the stability verdict is not stored).
read_reference_other_buildboolfalseAccept a read_reference file written by another build, or by one not provably the same (a dirty tree or an unknown commit counts as different). Without it such a file is refused. The run prints a warning and the run log's scf_reference.build_override_used records it.

[[scf.ladder]] rungs

Each rung overrides the flat [scf] settings. The rungs are walked in order, and the ladder stops at the first converged rung. Unknown keys are an error, as elsewhere.

KeyTypeDefaultAllowed valuesNotes
guessstring"minao"minao sad hcoreAs [scf] guess: "sad" is an alias of "minao", and any other value (including sad-smallbasis) is an error.
level_shiftfloatinherits
max_iterintegerinherits
df_j_aux, df_k_auxstringinherits
stall_windowintegernone
divergence_tolfloatnone
restartboolfalsetrue discards the incoming density.

[dft]

KeyTypeDefaultAllowed valuesNotes
functionalstring"LDA" (for ksdft)an XC name (LDA, PBE, B3LYP, wB97X-V, SCAN, r2SCAN, …) or a libxc nameRead by ksdft. wb97x-l-v ignores it with a warning. RPA/GW use [rpa] xc and TDDFT uses [tddft] xc instead.
grid_prunestring"nwchem-radial"none off flat; nwchem nwchem-like nwchem_like; nwchem-radial nwchem_radial; defgrid1 defgrid2 defgrid3Prunes the main grid only; the default is nwchem-radial, and none is the flat grid (with grid_weight_cut = 0, the previous default exactly). Absent, it is the default scheme at whatever grid_radial / grid_angular set (flat at grid_angular = 50, which has no region table). nwchem: NWChem-style angular pruning by radial region, about 23% fewer points at 75×110 with energies within 1e-9 Ha of the flat grid. nwchem-radial: the same angular pruning plus fewer radial shells for light atoms (H and He 50/75 of grid_radial, Li–Ne 66/75, heavier atoms all of it), 42-47% fewer points on organic molecules; live PBE/def2-SVP SCFs moved by 2e-7 to 4e-6 Ha against the flat 75×110 grid, whose own error against a 99×590 grid is 4e-4 to 3e-3 Ha on C10-C32 alkanes. defgrid1/defgrid2/defgrid3: ORCA-style grids (ORCA 6.1 DEFGRID1-3: ORCA's radial count per element row, its five-region angular tables, H and He one angular level lower) that fix their own radial and angular sizes, so grid_radial and grid_angular are an error with them; defgrid2 is as fast as nwchem-radial and much coarser (PBE/def2-SVP: -1.2e-3 Ha on n-C20H42 and +4.2e-3 Ha on danuglipron against the flat 75×110 grid, the same range as ORCA's own DefGrid2 results). Optimize and frequency runs differentiate the pruned energy. Setting it on a meta-GGA tda/tddft run replaces that run's 150 × 434 default (see grid_radial).
grid_radialinteger75 (meta-GGA TDDFT: 150)> 0Radial points per atom on the main grid. Only on a run with a Kohn–Sham grid, and not with kind = "gw". Optimize and frequency runs differentiate this grid. Same as Python grid_radial=. On tda/tddft with a meta-GGA [tddft] xc (SCAN, r2SCAN, TPSS) and no main-grid key set, the default is 150 × 434 instead (see Meta-GGA response needs a finer grid); setting any of grid_radial, grid_angular, grid_prune, grid_weight_cut replaces it.
grid_angularinteger110 (meta-GGA TDDFT: 434)6 14 26 38 50 74 86 110 146 170 194 230 266 302 350 434 590 770 974 1202 1454 1730 2030 2354 2702 3074 3470 3890 4334 4802 5294 5810Lebedev order on the main grid (every Lebedev-Laikov rule PySCF has; 74, 230 and 266 have negative weights). Same scope as grid_radial. An unsupported order is an error. Pruned schemes have no table at 50. Same as Python grid_angular=. On tda/tddft with a meta-GGA [tddft] xc (SCAN, r2SCAN, TPSS) and no main-grid key set, the default is 150 × 434 instead (see Meta-GGA response needs a finer grid); setting any of grid_radial, grid_angular, grid_prune, grid_weight_cut replaces it.
grid_weight_cutfloat1e-14finite, >= 0 (0 = no cutoff); e.g. 1e-14ORCA's WeightCut: drops every main-grid point whose final weight (radial × angular × Becke partition) is below this in absolute value. 0 turns the cutoff off (the grid is then bit-identical to the uncut one). At 1e-14, PBE/def2-SVP energies moved by under 1e-9 Ha and the XC time fell 12-15% (n-C20H42, danuglipron). A negative, NaN or infinite value is an error. Only on a run with a Kohn–Sham grid, and not with kind = "gw". Optimize and frequency runs differentiate the cut energy (the gradient drops the same points); it is discontinuous where a weight crosses the cutoff under displacement, by about cutoff × integrand. The VV10/NLC grid is not cut. Same as Python grid_weight_cut=. Setting it on a meta-GGA tda/tddft run replaces that run's 150 × 434 default (see grid_radial).
dispersionstringabsentd3bj, d3(bj), d3bj(<functional>), mbd, mbd(<functional>) (case-insensitive)Only on a Kohn–Sham SCF (kind = "ksdft", or rhf/uhf/rohf with functional), or on the MP2-based double hybrids b2plyp and dsd-pbep86 with d3bj / d3(bj) alone (task energy): that selects the kind's own published D3(BJ) set and adds its D3(BJ) energy (B2PLYP-D3(BJ): B2PLYP's coefficients and its D3(BJ) row; DSD-PBEP86-D3(BJ): the refit set 0.69 HF, 0.31 PBE, 0.44 P86, c_os 0.52, c_ss 0.22, s6 0.48, a1 0, s8 0, a2 5.6). A named functional (d3bj(pbe)) or mbd on a double hybrid is an error. task = "optimize" and task = "frequencies" run on RKS, UKS and ROKS references; With d3bj, frequencies takes the Hessian route the run without dispersion would take and adds the analytic D3(BJ) Hessian (the analytic KS Hessian plus the D3(BJ) Hessian under auto where it applies; on the finite-difference route, differences of the KS + D3(BJ) gradient). With mbd, frequencies uses finite differences of the KS + dispersion gradient (also under auto), so hessian = "analytic" and "analytic-moving-grid" are errors. There is no "off" value; omit the key instead. d3bj with a functional that has no D3(BJ) row in ferric's table (listed by ferric_d3::d3bj_tabulated_functionals(), the simple-dftd3 BJ table; M06-2X has only a zero-damping fit and is refused), or mbd with a functional that has no MBD@rsSCS β, is an error.
lambdafloat0.6Only for wb97x-l-v.
omegafloat0.1Bohr⁻¹Only for wb97x-l-v. Note the unit differs from [mp2] omega.

[mp2]

This section is shared by the whole MP2 family, ccsd, ccd, ccsd(t), linlccd, drpa, the double hybrids and tda/tddft, all of which read auxbasis and frozen_core from here. drpa, linlccd and a local rimp2 read nothing else from it (plus linlccd_variant for linlccd); any other [mp2] key on them is an error.

KeyTypeDefaultAllowed valuesNotes
auxbasisstring"cc-pvdz-ri"; "cc-pvdz-rifit" for tda/tddftaux basis nameThe two defaults name the same bundled set (cc-pvdz-rifit is an alias of cc-pvdz-ri).
frozen_coreint, string or bool0integer ≥ 0, "auto", "none", true (= auto), false (= 0)"auto" gives the standard small core for this molecule after the ECP is applied, and the run prints the resolved count.
omegafloat0.420Å⁻¹att-rimp2 (erfc), rs-mp2-rpa. Ignored with a warning when attenuator = "terf". An error on att-rimp2 with att_operator = "terfc".
kappafloatnoneκ > 0, Hartree⁻¹κ-regularized MP2 for the exact rimp2; an error with [local]. Absent = plain MP2.
c_osfloat1.2 (scs-mp2), 1.27 (scs-mp2-2terfc), 1.3 (laplace-sos-mp2)
c_ssfloat1/3 (scs-mp2), 4.05 (scs-mp2-2terfc)laplace-sos-mp2 warns and ignores it.
n_quadinteger73 5 7laplace-mp2, laplace-sos-mp2. Any other value is an error.
sos_formulationstring"mo"mo ao ao-sparselaplace-sos-mp2. mo and ao are exact and agree to round-off. ao-sparse is approximate and requires domain_cutoff_bohr.
domain_cutoff_bohrfloatnone> 0, BohrRequired by ao-sparse. An error with the other formulations.
formulationstring"delta-lr"delta-lr coupled-ringsrs-mp2-rpa.
attenuatorstring"erf"erf terfrs-mp2-rpa. terf needs FERRIC_TERF_TABLE_DIR. An error on att-rimp2 (use att_operator).
r0float1.6828 (= 3.18 Bohr)Års-mp2-rpa with terf only. An error on att-rimp2 (use att_r0).
terf_omegafloatlinked, ω = 1/(r0√2)Å⁻¹, > 0rs-mp2-rpa with attenuator = "terf" only (an error elsewhere). Sets the terf/terfc sharpness independently of r0. Same as Python run_rs_mp2_rpa(terf_omega=).
att_operatorstring"erfc"erfc terfc (case-insensitive)att-rimp2 only (an error on any other kind). The short-range operator on the MP2 correlation; the SCF stays Coulomb. terfc is the Python run_terfc_rimp2 and needs FERRIC_TERF_TABLE_DIR.
att_r0floatbasis table (aug-cc-pVDZ 1.05, aug-cc-pVTZ 1.35, ...; methods/mp2)Å, > 0att-rimp2 with att_operator = "terfc" only; an error with erfc. Omitted with a basis not in the table is an error.
att_omegafloatlinked, ω = 1/(r0√2)Å⁻¹, > 0att-rimp2 with att_operator = "terfc" only; an error with erfc (use omega) and on any other kind. Sets the terfc seam sharpness independently of att_r0, via Operator::terfc_with_omega; r0·ω = att_r0 × att_omega. Needs FERRIC_TERF_TABLE_DIR. With [local] integral-direct it takes the same schwarz_skip cut as the other operators.
r0_sweeparray of floatsnoneÅ, > 0rs-mp2-rpa with terf only. Reuses one SCF for several r0 values. r0 is then ignored with a warning.
omega_scanarray of floatsnoneÅ⁻¹, > 0rs-mp2-rpa. Several ω in one job: one SCF and one ω-independent Coulomb stage, then the erf/erfc stage per ω. One result block per (ω, formulation), ω-major in the order given. Exclusive with omega, r0_sweep and terf_omega. With attenuator = "terf" the values are the seam sharpness at the fixed r0.
formulationsarray of stringsnonedelta-lr coupled-ringsrs-mp2-rpa. Several formulations in one job (no empty list, no repeats). Exclusive with formulation.
r0_bondedfloat0.75Åscs-mp2-2terfc.
r0_nonbondedfloat1.05Å, > r0_bondedscs-mp2-2terfc.
linlccd_variantstring"hh"hh drivers-only fulllinlccd only (an error on any other kind), exact and local alike: it selects the method. drivers-only equals RI-MP2; full adds the pp ladder (CCD-like VVVV memory). Any other value is an error.
mp2v_r0float1.00Å, > 0mp2-v. Also sets the VV10 damping r0. It is correlated with mp2v_b in the published fit.
mp2v_bfloat11.0mp2-v.
mp2v_cfloat0.0089mp2-v. Fixed in the paper. Changing it leaves the published parameterization.
mp2v_attenuatorstring"terfc"terfc erfcmp2-v. terfc needs FERRIC_TERF_TABLE_DIR. erfc is an unparameterized control.
mp2v_omegafloatlinked, ω = 1/(r0√2)Å⁻¹, > 0mp2-v with terfc only. Setting it leaves the fitted parameterization.
mp2v_vv10_dampingstring"terfc"terfc nonemp2-v. none double-counts short-range correlation.
mp2v_nlc_n_radialinteger50> 0mp2-v VV10 grid.
mp2v_nlc_n_angularinteger50> 0mp2-v VV10 grid (unpruned).
oo_max_iterinteger100≥ 1oo-rimp2 only (closed and open shell). Orbital-optimization iterations.
oo_grad_convfloat1e-4> 0oo-rimp2 only. Convergence threshold on the orbital-gradient norm.
oo_level_shiftfloat0.1Hartree, ≥ 0oo-rimp2 only. Level shift on the approximate diagonal orbital Hessian.
oo_diis_sizeinteger6≥ 1oo-rimp2 only. DIIS subspace for the orbital rotations. The four oo_* keys match Python run_oo_rimp2(oo_max_iter=, grad_conv=, level_shift=, diis_size=); on any other kind they are an error.
cdd_tolfloat0≥ 0laplace-mp2 / laplace-sos-mp2. Setting it (or [ri] metric = "erfc") selects the omega-RI-CDD route: Laplace MP2 in pivoted-Cholesky pseudo-MOs. 0 keeps every pseudo-MO above roundoff and gives the MO Laplace energy; a positive value drops pseudo-MOs below it.
cdd_schwarz_threshfloat0≥ 0laplace-mp2 CDD route only (an error on laplace-sos-mp2, which has no exchange term). The virtual Schwarz screen of the exchange term; the paper value is 1e-9. 0 screens nothing.
cdd_pair_threshfloat0≥ 0laplace-mp2 CDD route only. The occupied-pair prescreen of the exchange term; the paper value is 1e-6. 0 keeps every pair.

[cc]

Closed-shell CCSD knobs, read by ccsd, ccsd(t) and eom-ccsd only (for eom-ccsd, the ground-state CCSD); on any other kind the section is an error. The aux basis and frozen core stay in [mp2].

KeyTypeDefaultAllowed valuesNotes
ladderstring"auto"auto dense ri (lower case only)How the particle–particle ladder is evaluated. dense holds the nv⁴ (ab|cd) block; ri rebuilds it from the RI 3-index tensors every iteration, holding at most one nv⁴-sized panel at full width (dense holds four) and narrower panels when the budget requires (same energy to round-off, less memory, slower per iteration); auto takes dense whenever its memory plan fits the budget and ri otherwise, and says so on stderr when it falls back. The run prints the route taken (ladder = dense (auto)). Python run_ccsd(ladder=), run_ccsd_t(ladder=). See Coupled cluster.

[eom]

EE-EOM-CCSD singlet knobs, read by eom-ccsd only; on any other kind the section is an error. The ground-state CCSD is converged to |ΔE| < 1e-10 Ha before the EOM step. The EOM product holds the nv⁴ (ae|bf) block when the memory budget allows and otherwise rebuilds it from the RI 3-index tensors in panels, whatever [cc] ladder says.

KeyTypeDefaultAllowed valuesNotes
n_rootsinteger5≥ 1Lowest singlet excitation energies, all irreps (no point-group symmetry is used).
conv_tolfloat1e-6> 0Davidson residual norm ‖H̄r − ωr‖ per root. The solver is non-symmetric, so ω is accurate to first order in this number.
max_iterinteger100≥ 1Davidson iterations; a root still above conv_tol after them is an error.
max_spaceintegermax(g + 10·n_roots, 50)≥ 1Subspace columns before a collapse onto the current Ritz vectors. The solver starts from g = max(2·n_roots, n_roots + 8) guesses and raises a smaller value to g + 2·n_roots; the space dimension caps it.

[cas]

The active space and the CASSCF orbital optimization of method.kind = "casscf" and "nevpt2"; required by those two kinds and an error on any other. Both kinds start from the exact-J/K Coulomb RHF with the library defaults (the start of Python run_casscf / run_nevpt2, which run the same code), so they read only [cas], [cas.ci], [scf] max_iter / energy_conv / density_conv / gc_rotation / jk_digest / gc_kernel (the RHF start and the integrals = "direct" CASSCF J/K), [memory], [parallel] and [output]; any other section or [scf] key is an error at load time. [molecule] multiplicity must be 1: the spin of the CAS state comes from n_elec_active. task = "energy" only. See CAS-CI and CASSCF.

KeyTypeDefaultAllowed valuesNotes
n_activeintegerrequired1 to 63Active spatial orbitals. Python n_active.
n_elec_activearray of 2 integersrequired[n_alpha, n_beta], each ≤ n_activeActive electrons. n_alpha − n_beta sets M_s of the lowest root: [5, 3] in CAS(8,6) is the O2 triplet. nevpt2 needs n_alpha = n_beta. Python n_elec_active.
n_coreinteger(N − n_alpha − n_beta) / 22 n_core + n_alpha + n_beta = NDoubly occupied orbitals below the active window (N counts valence electrons with an ECP). Python n_core.
referencestring"casscf"casscf casci (lower case only)nevpt2 only. casci is CAS-CI on the canonical RHF orbitals; its certificate is capped to not graded (the PySCF comparison runs on a CASSCF reference). Python reference.
canonicalizeboolfalsecasscf only. Canonical core and virtual orbitals and natural active orbitals on return (the energy does not change); the result record then carries mo_energy. Python canonicalize.
grad_tolfloat1e-7> 0CASSCF stops when the orbital-gradient norm is below this and the energy change is below energy_tol at the same iteration. Not read with reference = "casci". Python casscf_grad_tol.
energy_tolfloat1e-12Hartree, > 0See grad_tol. Python casscf_energy_tol.
max_iterinteger300≥ 1CASSCF macro iterations. An unconverged casscf warns and its certificate is capped to not graded; nevpt2 refuses an unconverged reference. Python casscf_max_iter.
max_stepfloat0.2rad, > 0Cap on the largest element of an orbital-rotation step. Python casscf_max_step.
optimizerstring"ah"ah bfgsCASSCF orbital step. ah is an augmented-Hessian step on the exact orbital Hessian at fixed RDMs with a trust radius, its Hessian-vector products from a kernel over occupied MO integrals built once per macro iteration; bfgs is inverse BFGS from an approximate diagonal Hessian, with 1.4 to 5 times the macro iterations. Not read with reference = "casci". Python casscf_optimizer.
integralsstring"auto"auto direct dense riTwo-electron integrals of the CASSCF iterations. auto is dense when the nbasis⁴ block fits in half of the memory budget, else direct. direct rebuilds J, K and (pu|vw) from shell quartets every macro iteration (memory nbasis² n_active² doubles); dense holds the nbasis⁴ AO block. ri uses density-fitted integrals in auxbasis (memory naux nbasis² doubles), an approximation recorded in the certificate. Not read with reference = "casci". Python casscf_integrals.
auxbasisstringnonea bundled auxiliary basis, e.g. def2-universal-jkfitRequired by integrals = "ri" and an error with any other route. Python casscf_auxbasis.
integral_threshfloat1e-12≥ 0, integrals = "direct" onlySchwarz screening threshold of the direct route. Python casscf_integral_thresh.
stabilitystring"off"off check follow (lower case only)Second-order check after convergence (off by default: it costs 0.5 to 3 times the CASSCF): the lowest eigenvalue of the CI-relaxed orbital Hessian by Davidson, printed, written to the run log (stability, reference_stability for nevpt2) and recorded in the certificate. A negative eigenvalue (UNSTABLE, a saddle) caps the certificate to not graded. follow steps along the negative mode and re-optimizes, up to 5 times. Not read with reference = "casci" (an error there). Python casscf_stability. See CASSCF.
citabledefaults belowThe CAS-CI solver settings, written as the [cas.ci] section.

[cas.ci]

The CAS-CI Davidson of every CASSCF macro iteration, or of the CAS-CI reference of nevpt2.

KeyTypeDefaultAllowed valuesNotes
conv_threshfloat1e-10> 0A root is accepted when its residual ‖Hc − Ec‖ is below this. Python ci_conv_thresh.
max_subspaceinteger50≥ 1Davidson subspace before a restart. Python ci_max_subspace.
max_iterinteger200≥ 1Davidson iterations. Python ci_max_iter.

[opmp3]

The reference and model settings of method.kind = "opmp3", orbital- partitioned Padé MP3 (Bystrom, Berkelbach and Hait, arXiv:2609.25330); an error on any other kind, and optional for opmp3. The run is its own restricted reference SCF with exact J/K (RHF or ROHF, or RKS or ROKS with a functional), then the HF Fock of that density, semicanonical orbitals and the non-Brillouin singles energy, the code Python run_opmp3 runs. It reads only [opmp3], [scf] max_iter / energy_conv / density_conv (defaults 1e-10 / 1e-8 when not written), [memory], [parallel] and [output]; any other section or [scf] key is an error at load time. task = "energy" only. Every model is printed as E_HF[ρ] + E_NBS + E_c, and the run-log result energy is SSD-OPMP3. See MP2.

KeyTypeDefaultAllowed valuesNotes
referencestring"hf"hf or a functional namehf is RHF for a singlet and ROHF otherwise; a functional is RKS or ROKS. Python reference.
x_ssfloatthe paper's value for referencefiniteSSD-OPMP3 same-spin damping. Printed values: hf 0, pbe0 0.5, pbe 0.7, spw92 0.75, r2scan 0.6, wb97x-v 0.5, wb97m-v 0.5. Any other reference needs it written. Python x_ss.
integralsstring"exact"exact riIntegrals of the amplitude stage; the reference Fock is always exact. Python: auxbasis=None is exact.
auxbasisstringnonea bundled auxiliary basis, e.g. cc-pvdz-riRequired by integrals = "ri" and an error with exact. Python auxbasis.
frozen_coreinteger0≥ 0Lowest occupied orbitals of each spin left out of the correlation and of the singles energy. Python frozen_core.

[ri]

The fitting metric of the RI factorization of the correlation step, read by rimp2, laplace-mp2, laplace-sos-mp2 and pdep-rpa. Without it the fit uses the Coulomb metric, as before. metric = "erfc" is the omega-RI fit of Glasbrenner, Graf and Ochsenfeld (JCTC 16, 6856 (2020)) and Lünser, Schurkus and Ochsenfeld (JCTC 13, 1647 (2017)): erfc(ωr)/r three-index integrals with the metric Ṽ⁻¹VṼ⁻¹. It shifts the energy by a fit error of order 1e-6 Eh for water at ω = 0.1 Bohr⁻¹. The algebra in ferric stays dense, so the fit has no cost advantage here. On laplace-mp2 and laplace-sos-mp2, metric = "erfc" selects the omega-RI-CDD route (see [mp2] cdd_*).

metric = "erfc" is energy-only (task = "energy") and closed-shell on rimp2 and the Laplace kinds; pdep-rpa also accepts UHF and ROHF references. It cannot be combined with an amplitude-threshold [local] scheme, a Boys-screened chi0_sparsity, or the pdep-rpa property exports. On a kind outside the four above the section is an error.

KeyTypeDefaultValuesNotes
metricstring"coulomb"coulomb erfcAny other value is an error.
omega_bohrfloatnoneBohr⁻¹, > 0Required by erfc and refused with coulomb. The papers recommend 0.1. ω → 0 recovers the Coulomb fit.

[local]

The local approximation of a correlated method. method.kind names the method (rimp2, drpa, linlccd, opmp3 (RI integrals only) or, integral-direct only, att-rimp2); this section says whether and how its amplitudes are truncated. Without it (or with scheme = "none") the method is computed exactly. On any other kind the section is an error. The local runs are closed shell and task = "energy" only, and every printout and run-log result carries the model: "<method> (exact)" with "local": null, or the scheme, eps and kept fraction. See The MP2 family and Exact and local correlation.

KeyTypeDefaultAllowed valuesNotes
schemestring"none"none amplitude-thresholdamplitude-threshold: drop pair amplitudes whose localized integral is at or below eps (single threshold). Any other value is an error.
epsfloatrequired with amplitude-threshold≥ 0, finiteThe threshold is part of the model and has no default. 0 keeps every amplitude and reproduces the exact method. An error with scheme = "none".
eps_sweeparray of floatsnoneeach ≥ 0drpa only. Several ε on one SCF and one localized assembly; sorted and de-duplicated, one result block per point. Instead of eps, not with it.
referenceboolfalseAlso compute the exact method (canonical RI-MP2, canonical plasmon dRPA, exact LinLCCD, canonical OP-MP3) and print the local error against it. Costs the full exact calculation. An error with scheme = "none".
integral_directboolfalserimp2 only. The integral-direct local MP2: never forms the global 3-index tensor.
aux_radiusfloat10.0Bohr, > 0Integral-direct only (an error otherwise). Aux fit-domain radius.
virt_radiusfloat20.0Bohr, > 0Integral-direct only. Virtual domain radius.
ao_tailfloat1e-4≥ 0Integral-direct only. 0.0 keeps every shell.
schwarz_skipfloat1e-5≥ 0Integral-direct only. Cauchy-Schwarz cut on the batch 3-index triples: a triple is skipped when sqrt(max (P|P)) * sqrt(max (ab|ab)) * w(ab) < schwarz_skip, both factors from the run's own operator and w(ab) = max(1, c_occ(a) c_vir(b) + c_occ(b) c_vir(a)) from the largest orbital coefficients on each shell, so it bounds the transformed (P|ia) (Coulomb, erfc or terfc; the terfc factors carry a 1e-5 relative table-error inflation each, so the product is scaled by (1 + 1e-5)²). For terfc it is available for orbital shells up to g, r0 in [0.3, 2.5] Å and r0·ω ≤ 8.9, and errors outside that (set 0.0 to run anyway). See integral-direct local MP2. 0.0 evaluates every triple (bit-identical to a run without the cut).
eri3_passstring"aux-major"aux-major batchesIntegral-direct only. Stage-3 integral pass. aux-major evaluates each needed (P|μν) triple once (measured 3-5x faster stage 3 and ~10x fewer shell triples than batches at merge 4, alkanes C12-C32, same energy to 12 digits); batches re-evaluates triples shared between occupied batches. Any other value is an error.
batch_mergeinteger1 under aux-major, 4 under batches≥ 1Integral-direct only; merges nearest-atom batches in the batches pass. A value above 1 with aux-major is an error: set eri3_pass = "batches".
gate_calfloatnone (gate off)> 0Integral-direct only. Pair-gate calibration (~0.7 Coulomb, ~0.02 erfc ω = 1).
virt_schwarz_kappafloatnone (off)> 0Integral-direct only. ε-linked Schwarz virtual-candidate screen. It bounds the plain integral mask only, so it needs fock_screen = false (an error otherwise).
pair_skipstring"auto""auto", "on", "off", "audit"Integral-direct only. Skip, by proof, every occupied pair whose retained amplitude set is provably empty (an upper bound on every fitted integral the mask reads). The energy is bitwise the skip-off energy. "auto" turns it on for an attenuated positive-definite operator (erfc, terfc) and off for Coulomb; "audit" evaluates the bound on every pair, skips nothing and records the bound-to-actual ratios.
fock_screenbooltruerimp2, att-rimp2 and opmp3, in core and integral-direct. Also keep the amplitudes whose one-step virtual-Fock-dressed integral exceeds κ·ε (κ = 1), the ones the integral-size mask misses. false keeps the plain integral mask. See the Fock-propagated screen.
virtual_spacestring"dense"dense localrimp2 / att-rimp2 / opmp3 only (an error on drpa / linlccd, which always use the dense build). Which VV-HV localized-virtual build to use: dense is the O(N³) build; local is the opt-in threshold-sparse build. With every threshold at zero and virtual_solve_radius larger than the molecule (one global solve), it spans the same space and gives the same energy as dense. A finite solve radius changes the projected-minimal functions even at zero thresholds; that step only rotates the basis, so the ε = 0 energy is unaffected, but finite-ε energies can move slightly. The local build always starts Boys from its own valence block, so its columns match dense only up to Boys' stopping tolerance (about 1e-8), not column by column. Every run prints one line naming the build. See local VV-HV build.
virtual_taufloat1e-9≥ 0virtual_space = "local" only (an error otherwise). Block threshold of the span-critical steps (occupied projector, the Newton-Schulz Löwdins, the final guard). 0 drops nothing.
virtual_tau_loosefloat1e-6≥ 0virtual_space = "local" only. Block threshold of the basis-choice steps (projected-minimal functions, valence projector, pivot Gram and Cholesky rows). 0 drops nothing.
virtual_solve_radiusfloat30.0Bohr, > 0virtual_space = "local" only. Neighbourhood radius of the domain-local projected-minimal solves; a radius larger than the molecule is one global solve.
virtual_boys_taufloat1e-8≥ 0virtual_space = "local" only. Boys pair screen; 0 rotates every pair.
lambda_boysfloat10.0Bohr²/Ha², finite, ≥ 0rimp2 / att-rimp2 / opmp3 only (an error on drpa / linlccd, which localize with plain Boys). Weight λ of Σᵢ Fᵢᵢ² in the λ-Boys occupied localization, started from the converged Boys orbitals; 0 is plain Boys. The ε = 0 energy does not depend on it. The printout's occupied localization line and the run log's local.lambda_boys* fields record it.
cg_energy_targetfloat or "strict"1e-7Ha, finite, > 0; or "strict"rimp2 / att-rimp2 only (an error on the other kinds). Stop of the amplitude PCG: the relative residual that puts the solver-error bound 3‖PJ‖²·relres²/λ_min at a quarter of this energy, never above relres 1e-4. "strict" is the earlier rule (relres 1e-6, tightened while the bound exceeds 1e-10 Ha), bit-identical to it (MP2: local). Python cg_energy_target=.

[rpa]

Read by pdep-rpa, gw, bse-tda, tdhf-static-polarizability, and, for trunc_thresh only, rs-mp2-rpa.

KeyTypeDefaultAllowed valuesNotes
auxbasisstring"cc-pvdz-ri"aux basis name
frozen_coreint, string or bool0as [mp2]
xcstringnone (HF reference)XC nameSwitches the reference to RKS, or to UKS when open shell. Required by tdhf-static-polarizability. bse-tda ignores it. pdep-rpa with task = "optimize" uses an RHF reference; xc applies only to task = "energy".
n_quadinteger20 (energy runs); 40 (kind = "gw", GW's own calibrated default); 16 (task = "optimize")Python run_pdep_rpa also uses 20; Python run_gw / run_u_gw use 40.
quadraturestring"gauss-legendre" (CLI, Python and the Rust library QuadratureConfig::default())gauss-legendre gauss_legendre gl; minimax mini-max mm; chebyshev-tan chebyshev_tan chebyshev ctGrids live in ferric_rpa::quadrature; node and weight formulas are in book/src/18-rpa/02-quadratures.md#quadratures-rule section 2.
u0float0.5Warn-and-ignore under minimax, which derives its own u₀.
trunc_threshfloat1e-4; 0.0 (full rank) for rs-mp2-rpaPDEP truncation. task = "optimize" with pdep-rpa: 0 unless gradient = "fd" is set explicitly.
gradientstringunset: analytic where it applies, else fdfd analyticNuclear gradient of pdep-rpa with task = "optimize" or "frequencies" (the Hessian is the central difference of this gradient). analytic: the RI-dRPA gradient with Z-vector relaxed densities (one RHF, one frequency loop, one CPHF solve), the exact derivative of the n-point quadrature sum; closed shell, all-electron or frozen core, Coulomb operator, dense chi0_sparsity; with a truncating trunc_thresh it is an error. fd: 3-point central finite difference of E_RHF + E_c (h = 5e-4 Bohr, 6 N_atoms RHF + RPA energies per gradient). Unset, an optimize run uses analytic whenever the configuration allows it and otherwise fd, printing the reason and recording it in the certificate; an unset trunc_thresh is then 0 (an explicit fd keeps 1e-4). Unknown values are an error.
eigensolver_conv_threshfloat1e-6 (energy); 1e-8 (optimize)Alias: davidson_conv_thresh.
chi0_sparsitystring"dense"dense, boys, boys:<thresh>, auto, auto:<cutoff>, auto:<cutoff>:<thresh>, each boys/auto form optionally suffixed @<radius_bohr>
run_diagnosticsboolfalse
export_eigpot_prefixstringnoneWrites <prefix>_eigpot_NNN.cube.
export_eigpot_countinteger10Capped at the number of eigenpotentials.
cube_spacingfloat0.2Bohr
cube_marginfloat4.0Bohr
export_npzstringnonepathTurns on the NPZ property bundle. The compute_* keys below default to true only when this is set.
compute_espbooltrueESP at the nuclei.
compute_esp_surfaceboolfalseESP on a vdW shell.
esp_surface_vdw_scalefloat1.4
esp_surface_n_angularinteger110Lebedev order
compute_polarizabilitybooltruealpha_tensor, the molecular static α.
compute_alpha_atomicbooltruealpha_atomic: the Krishtal–Senet–Van Alsenoy intrinsic per-atom α (JCP 125, 034312 (2006)), always Becke-partitioned; c6_partition does not affect it. Charge transfer between atoms is excluded; with compute_polarizability also on, the remainder alpha_ct = alpha_tensor − Σ_A alpha_atomic is exported.
compute_electric_fieldbooltrue
compute_density_matrixbooltrue
compute_dipolebooltrue
compute_hirshfeld_chargesbooltrueProatoms are free-atom SCF densities in the molecule's basis and SCF settings, as in Python's hirshfeld_charges.
compute_lowdin_chargesbooltrue
compute_mulliken_chargesbooltrue
compute_chelpg_chargesbooltrue
compute_resp_chargesbooltrue
compute_c6booltrueWith c6_source = "pdep", also exports alpha_ct_dynamic (nfreq, 3, 3): molecular α(iω) − Σ_A α^A(iω).
allow_partial_npzboolfalseBy default a bundle missing a requested property fails the run.
c6_sourcestring"ts"ts pdep mbd
c6_partitionstringhirshfeld for pdep, becke for ts/mbdbecke hirshfeld

[gw]

Read by gw. bse-tda and tdhf-static-polarizability read frozen_core, and tdhf-static-polarizability also reads scissor. The [rpa] section supplies the screened interaction.

KeyTypeDefaultAllowed valuesNotes
methodstring"g0w0"g0w0 cohsex evgw0 evgw (case-insensitive)
qp_mos[lo, hi]HOMO−2 … LUMO+2absolute MO indices, half-open
max_ev_iterinteger20evGW/evGW0 outer loop.
ev_conv_threshfloat1e-4Hartree
pade_nptsinteger0 (= 18 nodes)
qp_newton_dampfloat1.0
frozen_coreint, string or boolfalls back to [rpa] frozen_coreas [mp2]Also overrides the PDEP frozen core, so W and Σ agree.
scissorfloat0.0Hartreetdhf-static-polarizability only. At 0.0 some molecules hit a negative α diagonal and the run errors. The remedy is about 0.3–0.4 Ha.
referencestring"uhf"uhf rohf (case-insensitive)gw on an open-shell molecule only: the reference is UHF or ROHF (UKS or ROKS with [rpa] xc). An error on a closed-shell molecule or another kind. Same as Python run_u_gw(reference=).

[tddft]

Read by tda and tddft. Also set [mp2] auxbasis (see above).

KeyTypeDefaultAllowed valuesNotes
n_rootsinteger3
xcstringnone (HF reference: CIS or TDHF)XC nameSelects the reference functional, its exact exchange and the f_xc kernel. A range-separated hybrid (e.g. HYB_GGA_XC_CAM_B3LYP, HYB_GGA_XC_WB97X) takes c_sr, c_lr and ω from libxc. VV10 functionals, and meta-GGAs other than SCAN, r2SCAN and TPSS, are refused.
c_hffloatthe functional's exact-exchange fraction; 1.0 with no xcRequires xc. Refused on a range-separated functional.
solverstring"auto"dense davidson autodense: full A (and B) and a full diagonalization. davidson: matrix-free block Davidson (RI Coulomb, RI exchange, one batched f_xc application per block of trial vectors); an unconverged root is an error. auto: dense for nocc·nvir ≤ 200, Davidson above. Every root prints its residual and the certificate records the solver. Python run_tddft(solver=).
spinstring"singlet"singlet triplettriplet: no Coulomb term, the f_αα − f_αβ kernel, oscillator strengths 0; a triplet Casida instability (Ω² < 0) is an error. Python run_tddft(spin=).

[optimize]

Read when task = "optimize". Under this task an omitted [scf] ri_j_precision resolves to "f64" (the f32 RI-J surface jitters between nearby geometries); an explicit "f32" is honoured.

KeyTypeDefaultAllowed valuesNotes
max_stepsinteger100
g_max_threshfloat4.5e-4Hartree/Bohr
g_rms_threshfloat3.0e-4Hartree/Bohr
e_convfloat1e-6Hartree
trust_radiusfloat0.1BohrInitial step size. Under trust_update = "ratio" the radius moves within 0.01 to 10 times this value (Cartesian).
coordinatesstring"cartesian"cartesian cart; internal internals redundant-internal redundant_internalCoordinates of the BFGS step, for every task = "optimize" kind (rimp2, scs-mp2, oo-rimp2 and pdep-rpa included). internal steps in redundant internal coordinates (bonds, angles, dihedrals) from a Schlegel initial Hessian, and falls back to Cartesian with a printed warning when the coordinates cannot be built. Cartesian is the default. On twelve molecules at HF/STO-3G internals take 251 steps against 366 and only one Cartesian search (sulfamethoxazole) leaves its starting basin, but internals take more steps on six of the twelve, stop 0.44 mHa higher on pregabalin at PBE/def2-SVP, and do not converge on water in a uniform external field, which exerts a torque the internal step cannot follow. Fixed point or smeared charges ([external_potential], [qmmm]) and polarizable sites exert a net force and torque too, so coordinates = "internal" with any of them is an error before the first SCF; use cartesian. PCM and COSMO are not affected. Data in book/src/14-derivatives/08-geometry-search.md#geometry-search-minimization. The certificate records the search that ran (after any fallback) as optimizer-coordinates, optimizer-initial-hessian and optimizer-trust-update, in these config spellings. Python coordinates= on run_optimize / run_optimize_uhf.
initial_hessianstring"lindh"lindh; simpleStarting Hessian of the BFGS search. lindh is the Lindh (1995) model Hessian: the full matrix in Cartesians, its force constant per primitive on the diagonal in internals. simple is the identity in Cartesians and the Schlegel diagonal in internals. On eight molecules from water to sulfamethoxazole at HF/STO-3G, lindh with trust_update = "ratio" took 211 Cartesian steps where simple with fixed took 538 (internals: 139 and 252); the table is in book/src/14-derivatives/08-geometry-search.md#geometry-search-lindh-model-hessian. [cell] (periodic) runs have no model and refuse lindh; unset there is simple. The Python QM/MM optimizer (run_optimize_qmmm) builds the Lindh model over the whole structure (QM and MM atoms) and starts from its block over the moved atoms. Python initial_hessian=.
trust_updatestring"ratio"ratio; fixedratio grows or shrinks the trust radius from the ratio of the actual to the predicted energy change and rejects a step that raises the energy by more than 1e-8 Ha (a rejected step counts as a step). fixed keeps trust_radius and accepts every step. In internals ratio also clips the whole step by one factor, so the step stays a descent direction as the radius shrinks; fixed clips the bond and angle blocks separately. simple with fixed is the search before these keys existed. Python trust_update=.
scf_warm_startbooltrueStart each geometry's SCF from the previous geometry's converged orbitals, Löwdin re-orthonormalized in the new overlap, instead of the MINAO guess. The cold guess is used on the first geometry, when the occupied-orbital metric C_occᵀ S C_occ at the new geometry has an eigenvalue more than 0.1 from 1 (a large step), and as a retry after a warm-started SCF that does not converge. Energies agree with a cold start to the SCF convergence tolerance, not bitwise. Molecular routes only: the SCF optimizers (RHF/RKS, UHF/UKS, ROHF/ROKS, and the Python QM/MM optimizer) and the rimp2, scs-mp2 and pdep-rpa optimizers (the RHF under each step; for pdep-rpa also the displaced RHFs of its finite-difference gradient, each started from that step's reference RHF). true with [cell] is an error.

[frequencies]

Read when task = "frequencies". Under this task an omitted [scf] ri_j_precision resolves to "f64" (the f32 RI-J surface jitters between nearby geometries); an explicit "f32" is honoured.

KeyTypeDefaultAllowed valuesNotes
hessianstring"auto"auto; analytic; analytic-moving-grid; fd finite-differenceauto uses the analytic Hessian for RHF (closed shell), UHF (aufbau occupations) and ROHF (kind = "rohf" without [dft] functional) with the Coulomb operator and exact four-centre J/K (RHF, UHF and ROHF also with density-fitted J and/or K: [scf] df_j_aux and/or df_k_aux set, ω = 0 only, no external potential (an ECP is analytic with RI), a fitting-basis metric with no eigenvalue below 1e-10 (RI-K: none below 1e-7, and for auto a smallest eigenvalue of at least 1.21e-7, where the analytic Hessian's conditioning bound 1e-19/λ_min² reaches the finite-difference route's own error), and RI-K memory that fits the [memory] budget (it grows like N⁴: about 10 GB for 30 atoms with 300 basis functions, the same for the two spin channels of UHF and ROHF); no range-separated RI-K, no COSX), a basis up to f functions and a libint2 with second derivatives. For RHF and UHF, ECPs (on the default quadrature backend; FERRIC_ECP_BACKEND=libecpint is not analytic), external point charges, Gaussian-smeared external charges and a uniform external field are analytic; for ROHF an external potential is not (an ECP is). Implicit solvent, polarizable embedding, fractional occupations, MOM and constraints are not analytic for any reference. For closed-shell Kohn-Sham (kind = "ksdft", or rhf with [dft] functional) auto uses the analytic-moving-grid Hessian wherever it applies (below); UKS, ROKS, every KS case it refuses and systems whose response AO table (basis functions × grid points × 4 for a GGA, 8 bytes each) exceeds 2 GiB (on the default 75×110 grid, a GGA above about 8,100 basis functions × atoms) use finite differences, decided before the SCF; an error it raises after the SCF (a non-converged SCF included) is returned, as for the Hartree-Fock routes. Anything else uses finite differences. rimp2, scs-mp2, oo-rimp2 and pdep-rpa have no analytic Hessian: they always take central differences of their analytic gradient (delta Bohr), accept only auto and fd/finite-difference here, and refuse [dft] dispersion; the certificate's gradient entry names the gradient used. analytic is the Hartree-Fock analytic Hessian and an error where it does not apply (every Kohn-Sham reference included). analytic-moving-grid is the analytic closed-shell Kohn-Sham Hessian on the production (moving) grid, Becke weight response included, so it is the Hessian of the surface the KS gradient differentiates and agrees with fd to the finite-difference error. It applies to kind = "ksdft" (or rhf with [dft] functional) on a closed shell, LDA or GGA functionals, pure or global hybrid, with exact or density-fitted J and K. It is an error, before the SCF, for Hartree-Fock, open-shell (UKS/ROKS) references, meta-GGA, VV10, range-separated hybrids, external potentials, [dft] dispersion = "mbd", and what the analytic RHF Hessian refuses (COSX, implicit solvent, fractional occupations, MOM). The output prints Hessian = analytic, analytic-moving-grid or finite-difference; the JSON run log carries a frequencies record with the full-precision wavenumbers and Cartesian Hessian.
deltafloat5e-3Bohr, finite and > 0Central-difference step, finite-difference Hessians only. Check the printed Hessian asymmetry: it is zero in exact arithmetic.
scf_warm_startboolfalseOpt-in, finite-difference Hessians only: start every displaced SCF from the converged orbitals of the undisplaced reference geometry (Löwdin re-orthonormalized in the displaced overlap) instead of the MINAO guess; each displacement starts from the reference, never from the previous displacement. The Hessian differs from a cold-started one by at most 2 K n density_conv / delta (K the gradient's density sensitivity, n the basis size). Off by default because, at equal [scf] density_conv, the warm Hessian is measurably noisier: a warm SCF stops nearer the threshold than a cold one, which usually overshoots it. Propane/def2-SVP at the default density_conv 1e-6: warm 9.4 cm⁻¹ from the converged reference on a soft mode (asymmetry 1.8e-4), cold 0.03 cm⁻¹ (8.2e-6); warm at 1e-8 is 0.29 cm⁻¹ and ~10% faster than cold at 1e-6. Turn it on together with a density_conv about 100× tighter. A warm SCF that does not converge is retried from MINAO.
temperaturefloat298.15K, finite and > 0Temperature of the RRHO thermochemistry printed after the frequencies.
pressurefloat101325.0Pa, finite and > 0Pressure of the thermochemistry (translational entropy).
symmetry_numberinteger1≥ 1Rotational symmetry number of the thermochemistry: 2 for water and CO2, 3 for NH3, 12 for CH4. Not detected; the default makes S too large by R ln σ for a molecule whose true number is σ.
ir_intensitiesbooltrue for rhf, uhf, rohf, ksdft; false otherwiseIR intensities (km/mol) from the dipole derivative, six SCF + gradient evaluations in a field of ±1e-3 a.u. true on a correlated kind is an error (no dipole derivative).

[md]

Read when task = "md", and required by it: Born-Oppenheimer molecular dynamics on the SCF surface of kind = "rhf", "ksdft", "uhf" or "rohf" (a functional in [dft] makes it Kohn-Sham; [dft] dispersion is added to every step's energy and gradient). [md] with any other task is an error, and so are [cell], [qmmm], [cosmo], [pcm], [scf] relativistic and [scf] symmetry with this task. An omitted [scf] ri_j_precision resolves to "f64" as under optimize. Each recorded frame is printed, appended to a multi-frame XYZ trajectory and to an energy CSV; the run ends with an ungraded md:<kind> certificate and an md run-log record. How to choose the settings: Molecular dynamics.

KeyTypeDefaultAllowed valuesNotes
n_stepsintegernone (required)≥ 0Number of time steps; the run makes n_steps + 1 SCF + gradient evaluations.
dt_fsfloat0.5fs, finite and > 0Time step. 0.5 fs resolves O-H and C-H stretches; check the conserved-quantity drift.
thermostatstring"nve"nve berendsen langevinnve: velocity Verlet. berendsen: velocity Verlet with Berendsen rescaling toward temperature_k, for equilibration only (it does not sample the canonical ensemble). langevin: Langevin dynamics with the BAOAB splitting (canonical).
temperature_kfloatnoneK, ≥ 0Target temperature; required by berendsen and langevin.
init_temperature_kfloattemperature_kK, ≥ 0Temperature of the Maxwell-Boltzmann initial velocities, rescaled to it exactly. With neither key set the atoms start at rest.
tau_fsfloatnonefs, > 0Berendsen coupling time; required by berendsen and an error with any other thermostat.
friction_per_psfloatnoneps⁻¹, finite and ≥ 0Langevin friction; required by langevin and an error with any other thermostat.
seedinteger0≥ 0Seed of the initial velocities and the Langevin noise. The same input and seed give the same trajectory.
remove_com_motionbooltrueRemove the centre-of-mass velocity of the initial velocities. NVE and Berendsen then count 3N - 3 degrees of freedom; Langevin always counts 3N.
strideinteger1≥ 1Print and write every stride-th step (step 0 always).
scf_warm_startbooltrueStart each step's SCF from the previous step's orbitals, as [optimize] scf_warm_start.
trajectorystring<input stem>.md.xyzpathMulti-frame XYZ trajectory in Å; the comment line holds step, time_fs, e_pot and e_tot. A relative path is relative to the working directory; the default sits beside the input file.
energiesstring<input stem>.md.csvpathCSV with the header step,time_fs,e_pot,e_kin,e_tot,conserved,temperature_k (Hartree, fs, K).

[memory]

KeyTypeDefaultAllowed valuesNotes
budget_gbfloatautofinite and > 0Precedence: this key, then FERRIC_MEM_BUDGET_GB, then the legacy FERRIC_OOC_BUDGET_GB/FERRIC_ERI3_BUDGET_GB, then 0.8 × available RAM, then 2 GiB. A value of 0, a negative value or NaN is an error; omit the key for auto. It bounds the ledgered allocations, not total process memory.
three_index_budget_gbfloat—Deprecated alias. budget_gb wins if both are set.

[parallel]

KeyTypeDefaultAllowed valuesNotes
blas_threadsintrayon thread count≥ 1OpenBLAS threads for serial sections: the per-iteration Fock diagonalization, the DIIS commutator, the orthogonalizer and density GEMMs and the other dense linear algebra that runs outside parallel regions. Precedence: this key, then FERRIC_BLAS_THREADS, then the rayon thread count (RAYON_NUM_THREADS, default every logical CPU). 1 makes results bit-identical across thread counts; any other value lets OpenBLAS split reductions by thread count, which moves energies at the 1e-13 Ha level. Parallel regions (integrals, J/K, XC) always run OpenBLAS at 1 thread unless OPENBLAS_NUM_THREADS is set; rayon × BLAS threads above the core count oversubscribes the machine. The PDEP Lanczos/Davidson eigensolvers use 1 unless this key, FERRIC_BLAS_THREADS or FERRIC_LANCZOS_BLAS_THREADS is set. The run prints the resolved counts on a [ferric] threads: line.

[gpu]

Optional CUDA backend. A default build has no GPU code: there mode = "on" is an error and mode = "auto" prints a notice and runs on the CPU. A GPU run is deterministic run to run on one device but is not bit-identical to the CPU run (a different summation order, like FERRIC_BLAS_THREADS above 1).

KeyTypeDefaultConstraintMeaning
presetstring"off"off, auto, on, mixed, auto-mixedOne word that sets mode and precision together; see the presets table below. The root-level key gpu = "mixed" is the same as [gpu] preset = "mixed" (a file cannot hold both a root gpu string and a [gpu] table). A mode, precision or mixed_kernels key, or its env var, that disagrees with the preset is an error naming both; one that agrees is kept. device, memory_gb and min_flops combine with any preset. Env: FERRIC_GPU_PRESET.
modestring"off"off, auto, onauto uses a device when one is usable and otherwise prints a notice and runs on the CPU; on makes an unusable device an error. The Kohn-Sham XC grid uses the device only under on: under auto it stays on the CPU, because it was measured slower on the device (GTX 1080; see installation). Under auto the SCF's DF-K and RI-J builds go to the device only from 512 basis functions up (RI-J never for a pure or range-separated functional); on sends both to the device wherever it can run them. The cutover is measured (GTX 1080 against 6 CPU cores, RHF n-alkanes, def2-universal-jkfit, per-build time CPU default over device, 2 runs per cell): DF-K 0.91-0.93 at 298-490 basis functions (0.64 for C16/def2-SVP), 1.13 at 528 and 1.42 at 614; RI-J 0.94-1.10 at 298-528 and 0.33 at 614 (J yields the card to DF-K and runs on the f64 CPU tensor); When the CPU RI-J tensor is f64 (geometry and frequency tasks, or ri_j_precision = "f64") the device RI-J is 2.3-2.7x faster per build at 298-528 basis functions (task = optimize, 2 runs per cell), and auto takes it from 298 basis functions up. With the f32 default tensor RI-J follows the DF-K threshold because the two share one raw tensor (C12/def2-TZVP, one run each: whole run 13.8 s with J and K on the device, 17.6 s with K alone). A pure or range-separated functional keeps J on the CPU under auto so that the J and XC builds overlap, as under off. The table and the derivation are in the doc comment of ferric_core::gpu::gate. Env: FERRIC_GPU.
deviceinteger0a CUDA ordinalWhich device to use. Env: FERRIC_GPU_DEVICE.
memory_gbfloat0.8 x freefinite and > 0Device-memory pool (decimal GB). A GEMM that does not fit runs on the CPU. Env: FERRIC_GPU_MEM_GB.
min_flopsinteger549755813888Smallest 2*m*n*k that an f64 einsum! matrix product sends to the device; the default is the rounded-up value of a crossover rule applied to products up to 6144³: the device does not clearly beat 6 CPU cores on a single f64 product at any shape measured (at best a 2-8% median win at 6144³ in two of three runs, a loss in the contested run, and at 4096³ and below the CPU won). Products of 2^39 FLOP or more go to the device, and that region is unmeasured. The device RI-MP2 energy does not consult it. Env: FERRIC_GPU_MIN_FLOPS.
precisionstring"f64"f64, mixedDeprecated alias of [precision] mode. It still works; given together with [precision] mode, the two must agree (a different value is an error). The run prints a deprecation note. Env: FERRIC_GPU_PRECISION.
mixed_kernelsstring arraythe kernels this build shipsas [precision] mixed_kernelsDeprecated alias of [precision] mixed_kernels. It still works; given together with [precision] mixed_kernels, the two must agree (a different list is an error). Env: FERRIC_GPU_MIXED_KERNELS (comma-separated).
backendstring"ferric"ferric, cuestIntegral backend for the SCF. cuest runs S, T, V and exact integral-direct J/K on GPU 0 (pick another with CUDA_VISIBLE_DEVICES) through NVIDIA cuEST; ferric keeps the SCF loop and, for KS-DFT, the XC grid on the CPU. Before the SCF ferric infers cuEST's AO order from one-electron matrices on a symmetry-free probe of the molecule and refuses to run unless it is a clean signed permutation of libint's and the molecule's mapped S, T, V match libint to 1e-8. Needs a binary built with --features cuest (cuEST 0.3, CUEST_ROOT), LD_LIBRARY_PATH holding libcuest.so, and an sm_80 or newer GPU. Wired for task = "energy" with kind = "rhf", "uhf" or "ksdft" (pure or global-hybrid functionals); any other kind or task, [cdft], a range-separated hybrid, an ECP, a ghost atom or an [scf] J/K key (jk, jk_aux, df_j_aux, df_k_aux, k_builder) is an error. Unrelated to mode. See crates/ferric-cuest/README.md.
gpu = "mixed"   # same as [gpu] preset = "mixed": device on, mixed precision for every shipped kernel

GPU presets

A preset fills in every knob below that is not given; the filled-in knobs print with [source: preset] in the audit lines.

Presetmodeprecisionmixed_kernels
offofff64the build default
autoautof64the build default
ononf64the build default
mixedonmixedevery kernel this build ships (rimp2-energy: the Coulomb, erfc and terfc RI-MP2 energy, closed-shell and unrestricted)
auto-mixedautomixedevery kernel this build ships (rimp2-energy: the Coulomb, erfc and terfc RI-MP2 energy, closed-shell and unrestricted)

preset = "off" is the same as no [gpu] key. A narrower mixed_kernels list is allowed under mixed and auto-mixed; naming a kernel the build does not ship is an error. Precedence for the preset itself: the command-line flag ferric --gpu <preset> input.toml (or --gpu=<preset>), then [gpu] preset or the root gpu key, then FERRIC_GPU_PRESET, then off. The flag labels its audit line [source: command line]; a mode, precision or mixed_kernels key or env var that disagrees with the flag is an error naming both, and --gpu given twice, without a value or with an unknown name is refused (exit code 2).

ferric --gpu mixed input.toml

[precision]

Which kernels may run in mixed precision, independent of the device. [gpu] chooses only device placement; its precision and mixed_kernels keys are deprecated aliases of the two keys here (either spelling works; both given with different values is an error). Every result records what ran in its precision provenance record (see Run logs). The default, no [precision] section, is f64 everywhere and bit-identical to a file without the section.

KeyTypeDefaultConstraintMeaning
modestring"f64"f64, mixedmixed runs the kernels in mixed_kernels with f32 storage and f32 panels accumulated in f64; every other contraction stays f64. A kernel that runs on a device needs [gpu] mode auto or on; with [gpu] mode = "off" (CPU-only mixed precision) only kernels with a CPU mixed path are accepted, and naming or defaulting to a device kernel is an error that lists the CPU kernels this build admits (dfj-f32, which [scf] ri_j_precision already turns on by default; cosx-kern is a CPU kernel but not shipped). A mixed result is not an f64 result: its error is bounded, measured and documented on the validation page, not validated against a reference code. Python: ferric.configure_precision(mode=...). Env: FERRIC_GPU_PRECISION.
mixed_kernelsstring arraythe kernels this build shipsrimp2-energy, ccsd-amplitudes, dfk-occ, cosx-kern, dfj-pack, xc-vxc, dfj-f32Which kernels may run in mixed precision; requires mode = "mixed". This build ships rimp2-energy: with mode = "mixed" the device RI-MP2 energy keeps B_ov as f32 and accumulates its panels in f64 (the default precision stays "f64", so shipping the kernel changes nothing until you ask). rimp2-energy covers the RI-MP2 energy under the Coulomb, erfc and terfc operators, closed-shell and unrestricted (open-shell, one f32 B_ov per spin); the erf operator, composite fitted operators, SR-MP2 in RS-MP2+RPA, OO-MP2 and kappa-regularised runs use the f64 device kernel. xc-vxc (the Kohn-Sham XC potential matrix of LDA and GGA functionals from f32 operands with f64 accumulation, used only in SCF iterations whose density is still changing; see the validation page) is opt-in: it is admitted when the list names it, but it is not in the default set, so mode = "mixed" or gpu = "mixed" alone leaves it out; naming it under any [gpu] mode other than "on" is an error, since the XC grid stays on the CPU under auto (measured slower on the device; see installation). dfk-occ (the device DF-K occupied path with the dressed 3-index tensor resident as f32 and f64 panel accumulation, used only in SCF iterations whose density is still changing) is opt-in on the same terms, named in the list and under mode = "on": its converged energies match the f64 device SCF to within the f64 run's own termination noise, but a mixed SCF saved only about 4% of the wall time on the one device measured, and was 3-6% slower with diffuse basis sets (see the validation page). dfj-pack (the device RI-J with the packed raw 3-index tensor resident as f32, f64 accumulation) is named in this build but not shipped. dfj-f32 (the CPU RI-J with its stored 3-index tensor kept as f32, f64 accumulation, half the memory) is the default RI-J storage with RI-J alone, set by [scf] ri_j_precision, not by this list: naming it here is accepted and changes nothing, and naming it next to ri_j_precision = "f64" is an error. Its error and the gradient/Hessian consistency are described under ri_j_precision above. Naming a kernel this build does not ship yet is an error, and a build that ships no mixed kernel refuses mode = "mixed" ("no mixed-precision kernel is available in this build"). Kernels that are not names here (SCF diagonalisation, DIIS, metric inverses, GW, grid construction and Becke weights, the XC density and the functional, meta-GGA τ) never run below f64. One kernel name per list item: an empty list or a comma inside an item is an error. Python: ferric.configure_precision(mixed_kernels=[...]). Env: FERRIC_GPU_MIXED_KERNELS (comma-separated).
[gpu]
mode = "on"

[precision]
mode = "mixed"
mixed_kernels = ["rimp2-energy"]

[output]

KeyTypeDefaultAllowed valuesNotes
jsonstring or bool<input-stem>.ferric.jsonl beside the inputa path, true (the default path), false (off)On by default. See Run logs. --json <path> and --no-json override it.

[qmmm]

When present, the PQR supplies both the geometry and the MM charges. It cannot be combined with [external_potential]; doing so is an error.

KeyTypeDefaultAllowed valuesNotes
pqrstringrequiredpathGeometry in Å and charges in e. The element is read from the atom name.
qm_indicesinteger array[]zero-basedUse this, or qm_seeds + qm_radius_angstrom, but not both.
qm_seedsinteger array[]zero-based
qm_radius_angstromfloatnoneÅ, > 0Requires qm_seeds.
link_bondsarray of [qm, mm][]Required when the cut crosses a covalent bond.
boundary_schemestring"delete-host"keep delete-host rc rcdSetting a non-default value without link_bonds is an error.
polarizabilities_angstrom3float array[]ų, ≥ 0, one entry per PQR atomThole-damped induced-dipole polarizable embedding: the isotropic polarizability of each atom in file order (0.0 = not polarizable; entries on QM-region atoms are ignored). The PQR has no polarizability column. Empty is the plain embedding, bit for bit. A list with no positive entry on an MM atom is an error. task = "energy" with kind rhf, uhf or ksdft only, and not with [cosmo] or [pcm]: the CLI's optimizers and frequency runs use the non-polarizable gradient and the correlated kinds do not carry the induced-dipole terms. The energy includes the polarization energy; E_pol and the induced dipoles are printed and written to the run log's polarization record. Python QmmmSystem(polarizabilities_angstrom3=) with run_qmmm.
thole_afloat2.1304≥ 0Thole damping parameter of the polarizable sites; 0.0 disables the damping (the bare dipole-dipole tensor). Needs polarizabilities_angstrom3. Python run_qmmm(thole_a=).
polarization_exclusionsstring"molecule"molecule noneWhich charges and sites a polarizable site ignores. molecule: those of its own PQR residue (the residue sequence number), so a water's sites are not polarized by that water's charges. none: no exclusions, right only for isolated sites such as ions. Needs polarizabilities_angstrom3. Python run_qmmm(polarization_exclusions=).

See QM/MM. Smeared PQR charges and MM force fields are Python only. (Smeared charges outside QM/MM are available through [external_potential] with width.)

[cdft]

Constrained DFT (Wu–Van Voorhis): the CLI form of Python run_cdft. Present, method.kind = "uhf" runs the constrained solve, UHF or, with [dft] functional, UKS (a constrained state uses unrestricted orbitals even for a singlet). task = "energy" only: there is no constrained gradient. Each constraint holds the Becke fuzzy-cell population of a fragment at a target; a nested lambda-Newton loop finds the multipliers, and the reported energy is the ordinary UHF/UKS energy at the constrained density. See Constrained DFT.

The section reads [scf] max_iter / energy_conv / density_conv / diis_size / integral_thresh / k_builder / df_j_aux / df_k_aux / ri_j_precision / ri_k_precision / level_shift / mom_after_iter / guess / guess_basis / guess_projection / verbose / eri_precision / jk_storage, [dft] functional, [external_potential], [memory], [parallel] and [output]. Any other section or [scf] key, [dft] grid and dispersion keys included, is an error at load time: the grid of the weight operator is [cdft] grid_radial / grid_angular. [scf] max_iter is the cap of each inner SCF; the lambda loop's cap is [cdft] max_outer. The Wu–Van Voorhis coupling of two diabats (cdft_coupling) is Python only.

KeyTypeDefaultAllowed valuesNotes
constraintarray of tablesrequiredat least oneOne [[cdft.constraint]] per constraint.
lambda_tolfloat1e-5electrons, > 0The solve stops when max |N_C − target_C| is below this. A flat stretch of N(λ) costs outer iterations, not accuracy; a looser value accepts a λ further from the root. Python lambda_tol.
max_outerinteger30≥ 1Cap on the outer λ-Newton iterations; exhausting it is an error and nothing unconverged is reported. A start far from the root needs at least |λ_root| iterations (the step is clamped to 1). Python max_outer.
stability_descentbooltrueAfter the λ loop converges, check the λ-augmented orbital Hessian and descend if the constrained state is a saddle (UHF only; skipped with a functional). Not the same key as [scf] stability_descent, which is refused here. Python stability_descent.
grid_radialintegerunset> 0Radial points of the Becke/Lebedev grid of the weight operator, and of the XC functional when one is set. Both grid keys unset: the weight operator uses 99 × 302 and the XC grid its own default. Either set: both use the given grid, the unset one at 99 / 302. Python grid_radial.
grid_angularintegerunseta supported Lebedev orderSee grid_radial. Python grid_angular.

[[cdft.constraint]]

KeyTypeDefaultAllowed valuesNotes
atomsinteger arrayrequiredzero-based, non-empty, no repeats, in rangeThe fragment.
targetfloatrequiredelectrons; charge in [0, N_elec], spin ≤ N_elec in magnitudeThe fragment POPULATION, not a net charge: N_α + N_β for charge (2.0 on a He atom is neutral He, 1.0 is He⁺), N_α − N_β for spin.
kindstring"charge"charge spin (case-insensitive)The population channel. Two constraints on the same atoms and kind are an error (singular Jacobian). Python CdftConstraint(kind=).

[pcm]

IEF-PCM implicit solvent (ferric-pcm). Absent means vacuum. Honoured on task = "energy" by rhf, uhf, rohf, ksdft and pdep-rpa (for pdep-rpa the RPA correlation is evaluated on the solvated reference), and on task = "optimize" by rhf, uhf, rohf and ksdft (their gradients carry the analytic IEF-PCM term). Any other kind, any other task (frequencies: there is no PCM Hessian), [cosmo] in the same file, or pdep-rpa with [rpa] export_npz is an error. The solvent table and checks are shared with Python run_rhf(solvent=...). See examples/water-pcm.toml.

KeyTypeDefaultAllowed valuesNotes
epsilonfloat—finite and > 1Dielectric constant. Give exactly one of epsilon and solvent.
solventstring—water (78.4) dmso (46.7) methanol (32.6) ethanol (24.9) acetone (20.7) dichloromethane/dcm (8.93) thf (7.43) chloroform (4.71) toluene (2.38) hexane (1.88), case-insensitiveDielectric constants at 298 K. An unknown name is an error.
lebedev_orderinteger1106 14 26 38 50 86 110 146 170 194 302 350 434 590 770 974 1202 1454 1730 2030 2354 2702 3074 3470 3890 4334 4802 5294 5810Tesserae per atomic sphere: every grid_angular order except the negative-weight rules 74, 230 and 266.

[cosmo]

Conductor-like implicit solvent, applied to every SCF variant. It cannot be combined with [pcm]. task = "energy" only: COSMO has no analytic gradient, so task = "optimize" and task = "frequencies" with [cosmo] are errors. Use [pcm] (which has a gradient) for optimization.

KeyTypeDefaultAllowed valuesNotes
epsilonfloatrequired when the section is presentfinite and > 1Default in code is 78.39, but serde has no default for this key.
radius_scalefloat1.17> 0Multiplies Bondi radii.
lebedev_orderinteger110as [pcm] lebedev_order
s_matrix_kindstring"GaussianSmeared"GaussianSmeared PointChargeSerde variant names, case-sensitive.

[external_potential]

Strict, like every other section: an unknown key here or inside a point charge is an error.

KeyTypeDefaultAllowed valuesNotes
point_chargesarray of { q, x, y, z, width }[]q in e; x, y, z in Bohr; width in Bohr, finite and > 0Written as [[external_potential.point_charges]] tables. width is optional: with it the charge is Gaussian-smeared, density ∝ exp(−r²/width²) and potential q·erf(r/width)/r (the Python smeared_charges=); without it the charge is a point. See examples/water-rhf-smeared-charge.toml. The order of the list changes the one-electron potential only by summation roundoff (reordering 6458 charges: 3e-15 to 1e-14 relative) and ferric does not reorder it; a different SCF iteration count was seen only for the closed-shell direct-J/K path, on rc7 and, on main, with FERRIC_SCF_INCREMENTAL=1 below the incremental noise floor (see Sharp bits, "energy_conv is a sanity bound").
field[Ex, Ey, Ez]noneatomic unitsUniform electric field.

With both empty, the run is identical to a vacuum run.

[cell]

A 3-D periodic system. When present, the run goes to the periodic drivers instead of the molecular ones. The [molecule] XYZ supplies the atoms of the reference cell (in Å, like every XYZ). Energies are Hartree per cell.

method.kind must be rhf, uhf, rohf, ksdft, rimp2 (periodic MP2) or pdep-rpa (periodic dRPA). rhf/uhf/rohf with [dft] functional run RKS/UKS/ROKS. Any other kind is an error. At the Gamma point (no kmesh) RKS, UKS and ROKS also run range-separated (CAM) GGA hybrids with either jk: any libxc one is accepted (HSE06, or a libxc ID such as HYB_GGA_XC_CAM_B3LYP or HYB_GGA_XC_WB97X; the names CAM-B3LYP and wB97X do not resolve); HSE06 and CAM-B3LYP are pinned against PySCF, open-shell wB97X is accepted, not pinned (the attenuated exchange is the k = 0 point of the k-point range-separated exchange; PySCF Gamma pins agree to 1e-12; with jk = "rsgdf" the full-Coulomb fit is built twice, once for the Gamma J and once inside the attenuated exchange, so the build costs about 1.9× a plain Gamma run, and the exchange also contracts a J it discards every iteration; with jk = "dense" the tensors take 40 nao⁴ bytes, not 8, and max_eri_gb counts all of them); range_split with a range-separated hybrid is an error; task = "optimize" with HSE06 or CAM-B3LYP runs on the RKS, UKS and ROKS routes with either jk (the analytic forces of gamma_rsh::gamma_rks_rsh_gradient, gamma_rsh::gamma_uks_rsh_gradient and gamma_rsh::gamma_roks_rsh_gradient, the 1×1×1 k-point force on the SCF's own dense-AFT or RS-GDF exchange); other range-separated hybrids (wB97X) are energy only. The Gamma-point UKS and ROKS routes run the SCAN / r2SCAN energy with jk = "dense" (per-spin τ; jk = "rsgdf", task = "optimize" and any other meta-GGA are errors; kmesh = [1, 1, 1] is the Gamma point and runs the UKS SCAN / r2SCAN force; the k-point ROKS SCAN / r2SCAN force and stress run on kmesh with jk = "dense"). task = "optimize" works at the Gamma point for the SCF routes (RHF, UHF, ROHF, RKS, UKS, ROKS) with either jk: it moves the atoms at a fixed lattice using the analytic periodic force, and prints the final gradient (Hartree/Bohr per cell). A Gamma-point RKS with SCAN / r2SCAN / TPSS optimizes too, with jk = "dense" only (the force is the 1×1×1 k-point force fed the Gamma SCF; it builds the 1×1×1 dense kernels, 32 nao⁴ bytes on top of the 8 nao⁴ Gamma ERI, and max_eri_gb counts all of them before the SCF); jk = "rsgdf" with a meta-GGA and task = "optimize" is an error. With kmesh it works for rhf, uhf and rohf (no functional) and for Kohn-Sham (ksdft, or rhf/uhf/rohf with [dft] functional: RKS, UKS, ROKS) using the analytic k-point force, with either jk on every route except the dense-only cases named below (SCAN / r2SCAN on the ROKS route need jk = "dense"; unsplit RS-GDF: range_split with task = "optimize" follows the split gate below). The functionals are LDA, GGA and global hybrids such as PBE0 and B3LYP on every Kohn-Sham route, plus the pure meta-GGAs SCAN and r2SCAN on the closed-shell route (either jk) and the UKS route (either jk), TPSS on the closed-shell route (jk = "dense"), and the range-separated hybrids HSE06 and CAM-B3LYP (HYB_GGA_XC_CAM_B3LYP; other range-separated hybrids such as wB97X are energy only) on every Kohn-Sham route (RKS, UKS, ROKS; either jk); the force differentiates the energy's own XC grid (n_radial/n_angular/neighbour_cutoff) and, for a hybrid, its exxdiv. It is an error for range-separated hybrids other than HSE06 / CAM-B3LYP, VV10 functionals, TPSS on RS-GDF or an open-shell route, hybrid meta-GGA, ROKS meta-GGA forces and stress on RS-GDF (on jk = "dense" the k-point ROKS SCAN / r2SCAN force and stress run; the k-point UKS SCAN / r2SCAN ones run on either jk), and for rimp2/pdep-rpa. Cells whose basis carries an ECP are supported by the k-point force and stress of every route above (RHF, UHF, ROHF, RKS, UKS, ROKS). The lattice is fixed in task = "optimize" (no stress relaxation). The analytic stress of a k-point SCF is printed by a task = "energy" run with stress = true (see the key below): rhf, uhf, rohf, ksdft and the [dft] functional routes (RKS, UKS, ROKS), either jk except where the stress key below says jk = "dense", the 3×3 tensor in Hartree/Bohr³ and in GPa, and the same two tensors in the run log's run_end record (extra.stress_hartree_per_bohr3, extra.stress_gpa, full precision; see run logs). It equals the Python with_stress=True tensor bit for bit (Python: run_rhf_kpts, run_uhf_kpts, run_rks_kpts, run_uks_kpts, run_roks_kpts, run_rohf_kpts), with the gate shared: every route runs with either jk, the closed-shell SCAN / r2SCAN stress and the range-separated hybrid (HSE06, CAM-B3LYP) stress of every Kohn-Sham route (RKS, UKS, ROKS) included, and the UKS SCAN / r2SCAN stress (the ROKS one needs jk = "dense"; range_split with stress = true follows the split gate below). The k-point force and stress use an explicit functional allowlist that is separate from the energy gate (ferric_pbc::kxcgrad::check_deriv_functional, per route and J/K, wrapped by check_kpoint_deriv_functional, which the Python bindings call too). The run_end record of an optimization carries the returned geometry and the gradient there at full precision (extra.final_geometry_bohr, extra.final_gradient_hartree_per_bohr). solve_krks (every k-point Kohn-Sham energy run, run_rks_kpts and the CLI included) clones S(k) and h(k) transiently during the SCF (2 N_k n² × 16 bytes, not charged to the budget); the periodic XC Bloch AO cache of the SCF does not follow [memory] budget_gb. Each optimizer step runs a fresh SCF from the core guess; at a k-point mesh with uhf it can land in a different spin solution between steps, which shows as a visible jump in the step energies (nothing is hidden). The force is taken through the hcore and J/K objects the SCF built, which stay in memory for the force: their bytes are charged against the same memory budget ([memory] budget_gb with jk = "rsgdf"), and with jk = "dense" the kernels count against max_eri_gb while they exist. task = "frequencies" is an error.

The periodic run reads only [cell], [scf] max_iter, [scf] density_conv (Gamma point) or energy_conv (k-point mesh), [scf] level_shift (k-point rohf / ROKS only), [dft] functional, [memory] (RS-GDF only) and [optimize]. Any other section or key is an error. A charged cell is an error.

KeyTypeDefaultAllowed valuesNotes
lattice3×3 float arrayrequiredrows are the lattice vectorsIn unit.
unitstring"angstrom"angstrom bohrApplies to lattice, omega and gdf_omega (as their inverse), neighbour_cutoff and neighbour_switch.
kmesh[n1, n2, n3]none (Gamma point)each ≥ 1Selects the k-point drivers: rhf, uhf, rohf (no functional); Kohn-Sham (ksdft, or rhf/uhf/rohf with [dft] functional): RKS with LDA, GGA, global-hybrid and SCAN / r2SCAN / TPSS functionals (and range-separated (CAM) GGA hybrids such as HSE06, HYB_GGA_XC_CAM_B3LYP and HYB_GGA_XC_WB97X, with either jk; forces and stress for HSE06 and CAM-B3LYP with either jk, wB97X energy only), UKS (ksdft with multiplicity > 1 included) with the same functionals as RKS except TPSS (SCAN / r2SCAN energy, forces and stress with either jk; the range-separated hybrids with either jk: the energy of any libxc CAM GGA hybrid, HSE06 and CAM-B3LYP pinned, open-shell wB97X accepted, not pinned, and the force and stress of HSE06 / CAM-B3LYP), and ROKS with LDA, GGA, global-hybrid and range-separated hybrid functionals (either jk; range-separated forces and stress for HSE06 / CAM-B3LYP as for UKS) and SCAN / r2SCAN (energy, forces and stress, jk = "dense"); rimp2 and pdep-rpa. task = "optimize" and stress = true run with HSE06 / CAM-B3LYP on RKS, UKS and ROKS (either jk), with UKS SCAN / r2SCAN on either jk, and with TPSS and ROKS SCAN / r2SCAN on jk = "dense". Not yet supported with kmesh, each an error naming the gap: a ROKS meta-GGA with jk = "rsgdf", task = "optimize" or stress = true with a range-separated hybrid other than HSE06 / CAM-B3LYP, VV10 functionals, TPSS on UKS/ROKS, task = "optimize" or stress = true with TPSS on jk = "rsgdf", meta-GGAs other than the pure SCAN / r2SCAN / TPSS, and task = "optimize" for rimp2/pdep-rpa (see task). Open-shell k-point KS and ROHF use ewald_start; [cell] n_radial/n_angular/neighbour_cutoff apply to the Kohn-Sham routes and, with a 1×1×1 mesh, the energies equal the Gamma-point ones. The two drivers gate derivatives separately, so a 1×1×1 mesh can run a force or stress the Gamma-point driver (no kmesh) refuses, for example the ROKS HSE06 / CAM-B3LYP stress.
centringstring"gamma"gamma mpRequires kmesh. gamma is the Gamma-centred mesh (contains Γ; PySCF make_kpts(n)); mp is the shifted Monkhorst-Pack mesh (PySCF with_gamma_point=False). Energies, task = "optimize" forces and stress = true all accept either.
exxdivstring"ewald"ewald noneExchange G = 0 treatment.
jkstring"dense"dense rsgdfdense is a toy-scale dense AFT tensor.
auxbasisstringnonebundled basis nameRequired by jk = "rsgdf"; an error with dense.
range_splitbool or floatfalsefalse, true (λ = 1), or a number > 0 (λ)Opt-in RS-GDF range split: moves the short-range blocks whose Fourier transform converges in the long-range G sphere into G space. Orbital primitives with exponent ≤ λω²/2 and aux primitives with exponent ≤ λω² count as smooth, where ω is the RS-GDF split (gdf_omega, default 1 Bohr⁻¹; not the omega key). λ ≤ 1 adds no G vectors; the energy matches the unsplit build to fitting precision. Requires jk = "rsgdf" (Gamma point or kmesh). With task = "optimize" or stress = true the library gate (ferric_pbc::rsgdf::split_gate) allows λ ≤ 1 on the Gamma-point RHF and UHF and, with kmesh, RHF, UHF, ROHF and RKS / ROKS with PBE0 (the routes with a finite-difference or supercell anchor); every other route, and λ > 1, is an error naming the route.
omegafloatmin(2.5 √π / V^(1/3), 0.9636 × ω_gdf), ω_gdf = gdf_omega in Bohr⁻¹> 0, in unit⁻¹Nuclear-attraction Ewald split. Any value gives the same energy to truncation (~1e-11 Ha); the default balances the real- and reciprocal-space nuclear-attraction cost, and its cap keeps the reciprocal-space sphere inside the RS-GDF one (so the cap scales with gdf_omega).
gdf_omegafloat or "auto"1 Bohr⁻¹finite, > 0, in unit⁻¹; or "auto"RS-GDF Ewald split ω. Any value gives the same energy to the fitting precision; it moves work between the short-range lattice sums (radii ∝ 1/ω) and the long-range G sphere (|G| ≤ 2ω √ln(10¹³)). The range_split thresholds and the RS-GDF forces follow it. Requires jk = "rsgdf" (an error with dense). Same as Python gdf_omega= (Å⁻¹). "auto" (opt-in; the default is unchanged) picks ω from a cost model of the cell: it prices the short-range triplet walk (the build's own screen, sampled) against the long-range G sum at ω = 0.25..2 Bohr⁻¹ and leaves 1 Bohr⁻¹ unless another value is predicted at least 10% cheaper. On the study cells (Gamma RHF, cc-pVDZ / cc-pVDZ-RI, 6 threads) sparse molecular crystals run 1.4-2.4× faster (dry ice 20.0 → 11.8 s) and dense cells keep 1 Bohr⁻¹ at a cost of ~0.2-0.5 s for the choice. Gamma-point task = "energy" only; an error with kmesh and task = "optimize". The chosen value is printed in the header and on stderr. Python: ferric.auto_gdf_omega(...) returns the value to pass as gdf_omega=.
sr_column_rotationboolon for a jk = "rsgdf" run (Gamma or kmesh), off with jk = "dense"true falseColumn rotation of generally contracted shells (the separate s/p contraction columns of cc-pVXZ-style bases) in the short-range walks: the RS-GDF short-range 3-centre sum and the hcore short-range nuclear attraction run on rotated columns and are transformed back exactly (at a kmesh the back-transform acts on the short-range residue bins and on V_SR(k) before the Bloch phase sums, the long-range and G = 0 parts stay in the parent basis). The energy matches the unrotated build to the screening precision (≤ 1.5e-11 Ha/cell at gdf_omega ≥ 0.7 on dry ice and diamond, cc-pVDZ) with fewer short-range integral calls (dry ice 25.9 → 22.4 s, diamond 7.84 → 3.08 s at 6 threads, gdf_omega = 1, range_split = true). The analytic forces and stress (task = "optimize") differentiate the same rotated walks, with the derivative blocks evaluated on the rotated columns, so optimisations keep the saving; at the Gamma point forces and stress equal the unrotated ones to ≤ 1e-12 (Ha/Bohr, Ha) on the test cells; at a kmesh the gap to the unrotated derivative is set by the screen (force 1.5e-10 Ha/Bohr, stress 6.5e-9 Ha on H2 cc-pVDZ at hcore/fit precision 1e-9/1e-10, shrinking with the precision). A basis with nothing to rotate (STO-3G, Pople, segmented) runs the unrotated build bit for bit. Absent, it is on for a jk = "rsgdf" run (Gamma point or kmesh) and off with jk = "dense"; the header line sr_column_rotation = says which and why. false turns it off everywhere. true is an error with jk = "dense". The k-point analytic forces (task = "optimize" with kmesh) and the library's k-point stress differentiate the rotated walks (the derivative blocks on the rotated columns, the residue weights transformed with Tᵀ W T). The stage table counters report how many columns were rotated: hcore SR rotated columns and rsgdf SR3 rotated columns at the Gamma point, k hcore SR rotated columns and k rsgdf SR3 rotated columns at a kmesh (0 = unrotated). Same as Python sr_column_rotation= on the Gamma bindings (None = this default).
max_eri_gbfloat0.5> 0Dense tensor cap. An error with rsgdf.
ewald_startstring"staged"staged directOpen-shell SCF with exxdiv = "ewald" only.
denominatorsstringrequired for rimp2/pdep-rpashifted unshiftedAn error on other kinds.
frozen_coreinteger0≥ 0rimp2/pdep-rpa only.
quad_pointsinteger40≥ 1pdep-rpa only. Gamma point needs jk = "rsgdf".
drpa_energystring"quadrature"quadrature plasmon second-orderpdep-rpa with kmesh only.
grad_convfloat1e-9> 0k-point SCF orbital-gradient threshold. Requires kmesh.
stressboolfalsetrue falseCompute and print the analytic stress σ = (1/Ω) dE/dε of the converged SCF (Hartree/Bohr³ and GPa) and write it to the run_end record. task = "energy" only, at the Gamma point or with kmesh; rhf, uhf, rohf, ksdft and the [dft] functional routes. At the Gamma point the stress is the library's Gamma stress (the entries Python run_*_gamma(with_stress=True) runs, bit for bit): RHF, UHF, ROHF, RKS, UKS and ROKS on dense-AFT J/K (RHF, UHF, RKS and UKS also on jk = "rsgdf"), the HSE06 / CAM-B3LYP hybrids on RKS and UKS with either jk, and the closed-shell SCAN / r2SCAN / TPSS on jk = "dense"; an error naming [cell] stress = true for the Gamma ROKS range-separated hybrid stress (no library entry), ROHF / ROKS stress on jk = "rsgdf", a closed-shell Gamma meta-GGA on jk = "rsgdf" and any UKS / ROKS Gamma meta-GGA. Always an error, naming [cell] stress = true, with task = "optimize", rimp2/pdep-rpa, range_split on a route the split gate does not anchor, range-separated hybrids other than HSE06 / CAM-B3LYP, TPSS on jk = "rsgdf" (HSE06 / CAM-B3LYP run on RKS, UKS and ROKS with either jk; closed-shell SCAN / r2SCAN and UKS SCAN / r2SCAN with either jk, closed-shell TPSS on jk = "dense"). ECP cells are supported. With kmesh, ROKS SCAN / r2SCAN stress runs on jk = "dense"; ROKS meta-GGA on jk = "rsgdf" and any hybrid meta-GGA are refused earlier by the k-point energy gate ([cell] kmesh with functional ...), which does not name stress. The run does one SCF through the retained hcore and J/K (the iteration printout of the plain energy run is replaced by the iteration count, energy and stress). The SCF must converge (the stress gate for restricted open shell is loose, 1e-5 in the orbital gradient: keep grad_conv well below it).
n_radialinteger75Periodic XC grid. Kohn-Sham only.
n_angularinteger302as [dft] grid_angularPeriodic XC grid (flat: no pruning). Orders above 302 are refinement grids; an unsupported order is an error. Kohn-Sham only.
neighbour_cutofffloatmax(10 Bohr, covering-radius bound) (with neighbour_switch W: that value + W)> 0, in unit; ≥ bound + WPeriodic XC grid image cutoff D: image atoms within D of a grid point enter its partition weight. Kohn-Sham only. With the default neighbour_switch = 0 the cutoff is hard: the energy jumps wherever an image crosses D under a displacement or strain (measured: up to 2.2e-7 Ha on a (20, 50) grid at D = 10 on an H2 cell, and a 3.6e-5 Ha jump on an s+p triclinic cell at D = 10; the size depends on the grid and the cell) (a larger D does not remove the jumps; they get denser), and the analytic force and stress do not see the jumps, so a finite-difference step that straddles one misses by the jump / 2h. The default D also depends on the atom positions in a large sparse cell, so set it explicitly for task = "optimize" and for finite-difference checks.
neighbour_switchfloat0 (hard cutoff)≥ 0, in unitWidth W of a smooth taper on the image cutoff: an image at distance d from a grid point takes part with presence 1 for d ≤ D − W, falling to 0 at D (quintic smoothstep), and the analytic force and stress include the taper's derivative. This makes the energy continuous under displacement and strain. The taper costs the energy what lowering the cutoff toward D − W would (the automatic D adds W for that reason). Cost: the automatic D grows by W, so the image neighbours per point rise by about (1 + W/D)³; measured grid build on Li–H (75, 302): 0.29 s hard at D = 10, 0.87 s with W = 2 at the automatic D = 12. 0 is the hard cutoff, unchanged. Kohn-Sham only. Python: the neighbour_switch keyword (Å, default 0.0) of run_rks_gamma, run_uks_gamma, run_roks_gamma, run_rks_kpts, run_uks_kpts and run_roks_kpts; a negative or non-finite value is a ValueError.

Periodic [scf] defaults are max_iter = 200, density_conv = 1e-10 and energy_conv = 1e-12, not the molecular ones. k-point ROKS with a hybrid (exact exchange, global or range-separated) applies a 0.05 Ha virtual level shift by default, ramped to zero at convergence so the converged energy is unchanged; LDA/GGA ROKS and ROHF get none. [scf] level_shift (finite, ≥ 0, Hartree) overrides it on the k-point rohf / ROKS routes; 0 turns it off. Any other periodic route refuses the key.