Instruct: Identify the main and secondary category of Arxiv papers based on the titles and abstracts
Query: How to Differentiate Collective Variables in Free Energy Codes:
  Computer-Algebra Code Generation and Automatic Differentiation   The proper choice of collective variables (CVs) is central to biased-sampling
free energy reconstruction methods in molecular dynamics simulations. The
PLUMED 2 library, for instance, provides several sophisticated CV choices,
implemented in a C++ framework; however, developing new CVs is still time
consuming due to the need to provide code for the analytical derivatives of all
functions with respect to atomic coordinates. We present two solutions to this
problem, namely (a) symbolic differentiation and code generation, and (b)
automatic code differentiation, in both cases leveraging open-source libraries
(SymPy and Stan Math respectively). The two approaches are demonstrated and
discussed in detail implementing a realistic example CV, the local radius of
curvature of a polymer. Users may use the code as a template to streamline the
implementation of their own CVs using high-level constructs and automatic
gradient computation.

8
The categories of this paper are: hep-ex
21
The categories of this paper are: adap-org
14
The categories of this paper are: math-ph
7
The categories of this paper are: hep-th
6
The categories of this paper are: astro-ph
35
The categories of this paper are: mtrl-th
13
The categories of this paper are: quant-ph
0
The categories of this paper are: hep-ph
33
The categories of this paper are: plasm-ph
25
The categories of this paper are: patt-sol
2
The categories of this paper are: math
15
The categories of this paper are: nucl-ex
11
The categories of this paper are: hep-lat
31
The categories of this paper are: ao-sci
17
The categories of this paper are: q-fin
37
The categories of this paper are: supr-con