Commit cbbc7a8f authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

adding hwe example with for loops in xasm

parent f1e5ba12
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ int main(int argc, char **argv) {

  // Create an objective function to optimize
  // Each call evaluates E(theta) = <ansatz(theta) | H | ansatz(theta)>
  xacc::OptFunction opt_func(
  qcor::OptFunction opt_func(
      [&](const std::vector<double> &x, std::vector<double> &grad) -> double {
        
        // Affect Observable observation and evaluate at given ansatz parameters
Loading