Skip to content
vibyverse
Ko-fi Patreon Steady
← Back to News

What's new in vibe-qc 0.19.3

Analytic basis-set gradients for DFT, including meta-GGAs, consistent symmetry-reduced periodic hybrids and clearer failures, with the verification numbers.

Chart from the vibe-qc 0.19.3 verification: differences between analytic and finite-difference meta-GGA basis-exponent gradients for water (TPSS, SCAN, r2SCAN) and the carbon triplet atom (TPSS, PBE), all below their acceptance bounds on a logarithmic axis.

vibe-qc 0.19.3 was released on 26 November 2026 and is on the download page. Its main addition is analytic basis-set gradients for DFT energies in the basis-set optimiser, now including meta-GGA functionals. It also carries a fix for symmetry-reduced periodic hybrid calculations and a set of robustness fixes. Each section below gives the numbers from the independent verification of that change.

Analytic basis-set gradients for DFT

The basis-set optimiser (vibeqc.basisopt) can now differentiate a molecular DFT energy analytically with respect to Gaussian exponents and ordinary contraction coefficients. This covers LDA, GGA and global-hybrid functionals (for example LDA, PBE, B3LYP, PBE0) and the meta-GGAs TPSS, SCAN and r2SCAN, for RKS and UKS references. The gradient uses the same functional and integration grid as the energy. Before 0.19.3, each DFT gradient was a finite difference: two re-converged SCFs per optimised parameter. Now one converged SCF gives the whole gradient.

How it was checked. For LDA, PBE, B3LYP and PBE0, an independent verification run compared the analytic gradient with a Richardson-extrapolated central difference of the re-converged energy. The test set was 16 cases: water (RKS) and the Li atom (UKS), STO-3G, with three exponents or three coefficients per case. The largest deviation was 7.4×10⁻¹⁰ Ha against an acceptance bound of 10⁻⁷ Ha.

Dot plot on a logarithmic axis from 1e-13 to 1e-5. Eight rows: exponent and coefficient gradients for LDA, PBE, B3LYP and PBE0. Each row has three blue circles for RKS water and three orange squares for the UKS Li atom, one per basis parameter. Every point lies between about 5e-13 and 7e-10, well left of a vertical line marking the acceptance bound of 1e-7 Ha.
Analytic versus Richardson-extrapolated finite-difference basis-parameter gradients, RKS water and UKS Li atom, STO-3G, LDA/PBE/B3LYP/PBE0. One point per parameter. Source: independent verification calculation for vibe-qc#1125.

For the meta-GGAs, the verification used pob-TZVP, with one valence exponent of water moved off its library value to a more diffuse one. For TPSS, SCAN and r2SCAN on water, the analytic exponent gradient agrees with a central difference of the re-converged energy to 5.7×10⁻⁸ Ha. A TPSS contraction-coefficient gradient (STO-3G) agrees with a Richardson difference to 4.9×10⁻¹⁰ Ha. For the open-shell carbon atom (³P, UKS), TPSS and PBE agree to 1.1×10⁻⁶ and 2.5×10⁻⁶ Ha. That is the noise floor of re-converging an open-shell SCF, and it is within the open-shell acceptance bound.

Dot plot on a logarithmic axis from 1e-11 to 1e-3. Rows: water with TPSS, SCAN and r2SCAN exponents (blue circles, between about 2e-10 and 6e-8); the carbon triplet atom with TPSS and PBE exponents (orange squares, between about 5e-9 and 2.5e-6); water TPSS coefficients (blue circles near 1e-10 to 5e-10). Short grey ticks mark each parameter's acceptance bound, about 1e-6 to 2e-5 for water, about 6e-5 to 9e-5 for carbon and 1e-7 for the coefficients. Every point lies left of its bound.
Analytic versus finite-difference meta-GGA basis-parameter gradients: RKS water (TPSS, SCAN, r2SCAN, pob-TZVP exponents; TPSS STO-3G coefficients against a Richardson difference) and the UKS carbon ³P atom (TPSS, PBE). Grey ticks: acceptance bound per parameter. Source: independent verification calculation for vibe-qc#1126.

Limits. Range-separated and double-hybrid functionals, atoms with an effective core potential and zero contraction coefficients still use finite differences. The objective records the reason for each fallback. The analytic route is molecular only. A periodic (crystal) term in a basis-set objective is still finite-differenced.

Symmetry-reduced periodic hybrids on the physical pair support

With LatticeSumOptions.pair_complete_1e = True, a calculation on the irreducible wedge of the k mesh (multi-k Ewald RHF, RKS and UKS, including hybrid and screened-hybrid functionals and 2D slabs) now reproduces the full Monkhorst–Pack mesh. Before, the wedge folded its density onto the wrong cell list. Hybrid exchange then refused the run, an oblique-cell RHF differed from the full mesh by 1.9×10⁻⁷ Ha, and a slab check failed. In the verification run, all 32 corrected-exchange regression tests pass with this option and with the shipped default. They include wedge-versus-full-mesh comparisons for hybrid and screened-hybrid UKS and for six slab screened-hybrid cases, and the oblique-cell comparison to 10⁻⁹ Ha. The shipped default (pair_complete_1e = False) is unchanged.

Robustness fixes

  • Slab SCFs that run away now stop with a diagnosis. A covered water/MgO(001) slab (def2-SVP, PBE) used to report a Coulomb excursion to −276,212 Ha on its third SCF step. It now stops at that step with an error that gives the density norm and the smallest overlap eigenvalue (2.5×10⁻⁶) and suggests raising linear_dep_threshold. No unphysical energy is reported; the lowest is −1249.26 Ha.
  • Periodic Γ-point GFN2-xTB refuses saddle points of the charge self-consistency. The run now estimates the largest eigenvalue of the linearised SCC map at convergence. For lattice-summed rock-salt MgO this gives 4.554, matching an independent finite-difference Jacobian to 3.5×10⁻⁵, and the state is refused with the atom and multipole channel of the unstable mode. A stable polar HF cell is accepted, and its free energy is within 1.0×10⁻⁷ Ha of tblite 0.7.0. Behaviour change: the nearest-image NaCl and MgO cells that matched tblite 0.7.0 are saddles and are now refused by default. XTBSccOptions.allow_unstable_stationary_point = True returns such a state, flagged as unstable.
  • Linux builds with GCC compile the restricted local-triples bindings again; the regression tests give identical moments.

Fixes announced on 18 November, now released

The verified fixes described in our previous post ship in 0.19.3. They include space-group-reduced Hartree–Fock for rock-salt NaCl, the Gaussian solvation cavity and the opt-in split Ewald Hartree term. One example: restricted-open-shell PBE for the OH radical (def2-SVP) from a core-Hamiltonian start used to cycle for 200 iterations. It now converges in 12 iterations to E = −75.5732171312 Ha with a fixed-occupation gradient of 6×10⁻¹¹, and PySCF evaluates the same densities to within 3.3×10⁻⁸ Ha.

Also in 0.19.3, not yet independently verified

These changes were tested by their developers but have not yet been through an independent verification run. Some of them change results:

  • A k-mesh given as a tuple, kpoints=(n1, n2, n3), now means the Γ-centred mesh on every run_periodic_job route. The 2D slab Ewald route and symmetry-attached GPW and GAPW used a half-shifted mesh for even meshes before, so their energies change. Pass KPoints.monkhorst_pack(system, mesh) for the half-shifted mesh.
  • Symmetry-reduced multi-k GPW and GAPW runs now build the density on the full mesh, so they give the full-mesh energy. Before, the energy could differ by up to about 2×10⁻⁴ Ha on a compact cell.
  • Every periodic run now states the k-point sampling it executed (Γ-centred or shifted, offset, mesh and point count) in the .out header and the .system record.
  • BIPOLE analytic forces and stresses with Hartree–Fock or global-hybrid exchange were wrong on k meshes with points that are not time-reversal invariant, such as (3,1,1) and denser meshes of a dispersive cell. On a UHF H₃ chain the force errors were up to 4×10⁻⁴ Ha/bohr; the fixed forces agree with central differences to 8×10⁻⁸ Ha/bohr. Pure functionals and HSE06 do not use the affected term. Relaxations, transition-state searches, frequencies and stresses from such runs should be repeated. Gamma, (2,1,1) and (2,2,2) meshes were not affected.

Upgrade

Download vibe-qc 0.19.3 from the download page. The changelog lists every change in this release, including experimental work not covered here.

Documentation