Automatic differentiation represents a paradigm shift in scientific programming, where evaluating both functions and their derivatives is required for most applications. By removing the need to explicitly derive expressions for gradients, development times can be be shortened, and calculations simplified. For these reasons, automatic differentiation has fueled the rapid growth of a variety of sophisticated machine learning techniques over the past decade, but is now also increasingly showing its value to support {\it ab initio} simulations of quantum systems, and enhance computational quantum chemistry. Here we present an open-source differentiable quantum chemistry simulation code, DQC, and explore applications facilitated by automatic differentiation: (1) calculating molecular perturbation properties; (2) reoptimizing a basis set for hydrocarbons; (3) checking the stability of self-consistent field wave functions; and (4) predicting molecular properties via alchemical perturbations.
翻译:自动差异化代表了科学编程的范式转变,其中多数应用都需要同时评价函数及其衍生物。通过消除明确提取梯度表达式的需要,可以缩短开发时间,简化计算。出于这些原因,自动差异化促进了过去十年各种尖端机器学习技术的迅速增长,但现在也日益显示出其价值,以支持量子系统的反射和增强计算量子化学。这里我们提出了一个开放源码可差异量子化学模拟代码(DQC),并探索通过自动区分促进的应用:(1) 计算分子扰动特性;(2) 重新优化碳氢化合物基准;(3) 检查自相容的实地波函数的稳定性;(4) 通过化学扰动预测分子特性。