TLDR: We contribute an approach to simulate chemistry reaction with (1) catalyst and (2) endothermicity in 3D.
Special thanks: This work done in QOSF cohort 9 Quantum mentorship program. My gratitude to my mentor Danial Motlagh and to the organizer QOSF
Introduction
However, it is energy-intensive and relies on catalysts. Understanding the reaction pathway with catalyst hopes to gain insights into the process, enhancing its efficiency. [1] has simulated the reaction using VASP using Fe211 as a catalyst as shown in Fig. 1.
Since VASP is computationally expensive, what can we achieve with a less computationally expensive, hence faster method? This post explores how we can use Pennylane to execute the first steps with limited computer resources. Concretely, we replicate the first three steps of [1] in Fig. 2, which are the most complex reactions in the whole pathway. It is computationally cheaper than the method used in [1].
Method
- Varies the coordinates of the reactant: The transition in
axis and rotation angle around its center. - Construct the Hamiltonian
- Measure and Optimize: Measure the expectation value of the Hamiltonian using the quantum circuit and optimize the parameters using a classical optimizer to minimize this value.
Motivation
To define a 3D affine transformation for a molecule, we need to define three translation parameters
Bayes Optimization (BO)
BO, being a gradient-less method, does not have these requirements. Here is how it works. After the initial samplings
and fixes a regression curve through these data points. Only the observed data points have absolute certainty (variance = 0). For an unknown point
A beautiful property of Gaussian is that when conditioning the Gaussian on a set of variables, the result is also a Gaussian
Here, we face a dilemma. In
EI works by generating random functions that lie inside the confident intervals, as demonstrated in Figure 3. The intuition is a larger confidence interval would have more diverse sampling functions. Afterward, we sample the point at the extrema and update the prior. The process continues for a predefined number of steps.
Simplification
To facilitate the calculation with our limited computing resources we made the following simplification
- Calculating the Hamiltonian with
, a minimal orbital basis. - Simplyfing the catalyst substrate.
Visualization
We will replicate the first three steps of Figure 2, whose Hamiltonians are the most complex in the whole pathway.
In the below visualization, we color-coded the atoms as
Step 1
We fix the coordinates of the catalyst substrate and use the gradient descent method to optimize the coordinates of the reactants. The result is as follows.
Even with the same learning rate, the speed of the reactants slows down greatly compared to the beginning. Therefore, we conclude that in this step, the learning converged.
Step 2
In this step, we add
Note the moving speed of the reactants is much slower than the previous step. Therefore, it is clear that we are stuck at a local minimum, and gradient descent would have a hard time escaping it without modeling the endothermicity of this reaction (
Due to the nature of the acquisition function, the plot of the ground state energy does not decrease nicely as seen in the gradient descent. Most of the
We conclude that the search boundary condition is of utmost importance. Accordingly, we modify the search space as below.
Here is the optimization after setting the search boundary. We made these demonstration videos instead of GIFs so that readers can control the frame shown.
Conclusion
This blog post provides an alternate method to optimize the geometry of the Haber-Bosch process. Due to the lack of computational resources we have to reduce the catalyst platform, number of active orbitals, and electrons. These parameters are visible in chem_config.yaml
. Even with a simple orbital basis and reduced numbers of active electrons and orbitals, the experiments still take up a lot of time.
- Gradient descent: 32 CPU, 256 GB RAM, 50h runtime
- BO: 8 CPU, 64 GB RAM, 60h runtime
The parameters of free electrons and free orbitals are crucial parameters to make this project possible as a full configuration interaction can take up to TBs of RAM to calculate. That being said, even this setup can replicate the original paper. Even when we receive the desired result where
Comments? Questions? Please let us know at Issues page
References
[1] Reaction mechanism and kinetics for ammonia synthesis on the Fe(211) reconstructed surface. Jon Fuller, Alessandro Fortunelli, William A. Goddard III, and Qi An. Physical Chemistry Chemical Physics Issue 21, 2019
[2] Reiher Markus, Nathan Wiebe, Krysta M. Svore, Dave Wecker and Matthias Troyer. Elucidating reaction mechanisms on quantum computers. Proceedings of the National Academy of Sciences 2017
[3] Kevin Patrick Murphy. Machine Learning: a Probabilistic Perspective. MIT Press, 2012