Commit 1f1cb507 authored by Nguyen, Thien Minh's avatar Nguyen, Thien Minh
Browse files

Update the deuteron ftqc example to reduce execution time



Signed-off-by: default avatarThien Nguyen <nguyentm@ornl.gov>
parent 657aa3c9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ int main(int argc, char **argv) {
  // Hamiltonian
  auto H = 5.907 - 2.1433 * X(0) * X(1) - 2.1433 * Y(0) * Y(1) + .21829 * Z(0) -
           6.125 * Z(1);
  auto optimizer = createOptimizer("nlopt");
  auto optimizer = createOptimizer("nlopt", {{"maxeval", 20}, {"ftol", 0.1}});
  OptFunction f(
      [&](const std::vector<double> &x, std::vector<double> &dx) {
        const double angle = x[0];