Energy¶
The potential energy is associated with the "energy" or
"energy/<variant>" name (see Variants), and must have the
following metadata:
Metadata |
Names |
Description |
|---|---|---|
keys |
|
the keys must have a single dimension named |
samples |
|
the samples should be named
|
components |
the |
|
properties |
|
the |
The following simulation engines can use the "energy" quantity as output:
Gradients of the "energy" quantity¶
Most of the time, when writing an atomistic model compatible with metatomic, gradients will be handled implicitly and computed by the simulation engine using a backward pass. Additionally, it is possible for the model to support explicit, forward mode gradients
The following gradients can be defined and requested with
explicit_gradients:
“positions” (\(r_j\)) gradients will contain the negative of the forces \(F_j\).
\[\frac{\partial E}{\partial r_j} = -F_j\]
Metadata |
Names |
Description |
|---|---|---|
samples |
|
|
components |
|
there must be a single component named |
“strain” (\(\epsilon\)) gradients will contain the stress \(\sigma\) acting on the system, multiplied by the volume \(V\) (sometimes also called the virial of this system)
\[\frac{\partial E}{\partial \epsilon} = V \sigma\]
Metadata |
Names |
Description |
|---|---|---|
samples |
|
There is a single gradient sample dimension, |
components |
|
Both |
Energy ensemble¶
An ensemble of energies is associated with the "energy_ensemble" or
"energy_ensemble/<variant>" name (see Variants). Such ensembles
are sometimes used to perform uncertainty quantification, using multiple
prediction to estimate an error on the mean prediction.
Energy ensembles must have the following metadata:
Metadata |
Names |
Description |
|---|---|---|
keys |
same as Energy |
same as Energy |
samples |
same as Energy |
same as Energy |
components |
same as Energy |
same as Energy |
properties |
|
the |
The following simulation engines can use the "energy_ensemble" quantity as
output:
Energy ensemble gradients¶
The gradient metadata for energy ensemble is the same as for the energy
output (see Gradients of the "energy" quantity).
Energy uncertainty¶
The uncertainty on the "energy" quantity is associated with the
"energy_uncertainty" or "energy_uncertainty/<variant>" name (see
Variants). This corresponds to the expected standard deviation of
the predictions when compared to the ground truth.
The "energy_uncertainty" quantity must have the following metadata:
Metadata |
Names |
Description |
|---|---|---|
keys |
same as Energy |
same as Energy |
samples |
same as Energy |
same as Energy |
components |
same as Energy |
same as Energy |
properties |
same as Energy |
same as Energy |
The following simulation engines can use the "energy_uncertainty" quantity
as output to automatically warn users about high-uncertainty predictions:





