vibeqc.compute_gradient¶
- vibeqc.compute_gradient(mol, basis, result, options=None, *, dft_plus_u=None, _auto_df_for_fshell=False)[source]¶
RHF analytic nuclear gradient (Ha/bohr, per atom).
_auto_df_for_fshellis accepted but ignored – kept for one minor-version backwards compatibility after v0.7.3’s f-shell auto-route was retired.dft_plus_u(optional): list ofHubbardSitethe SCF was run with. When set, the +U explicitdE_U/dRis added to the HF gradient. The orbital-response (Pulay) piece ofdE_U/dRis automatically captured by the standard energy-weighted-density Pulay term because the convergedresult.mo_energiesalready include the +U shift (the C++ SCF iterates the variational FockF + S V_AO S, seevibeqc.dft_plus_u). Verified against FD on H2O/STO-3G at 6.9x10⁻¹¹ Ha/bohr.