Loading README.md +2 −2 Original line number Diff line number Diff line Loading @@ -110,12 +110,12 @@ int main(int argc, char **argv) { auto q = qalloc(2); // Create the Deuteron Hamiltonian (Observable) auto H = qcor::createObservable( auto H = createObservable( "5.907 - 2.1433 X0X1 - 2.1433 Y0Y1 + .21829 Z0 - 6.125 Z1"); // Create the ObjectiveFunction, here we want to run VQE // need to provide ansatz and the Observable auto objective = qcor::createObjectiveFunction("vqe", ansatz, H); auto objective = createObjectiveFunction("vqe", ansatz, H); // Evaluate the ObjectiveFunction at a specified set of parameters auto energy = (*objective)(q, .59); Loading runtime/jit/qcor_jit.in.cpp +0 −1 Original line number Diff line number Diff line #include <clang/CodeGen/CodeGenAction.h> #include <filesystem> #include <fstream> #include <memory> Loading Loading
README.md +2 −2 Original line number Diff line number Diff line Loading @@ -110,12 +110,12 @@ int main(int argc, char **argv) { auto q = qalloc(2); // Create the Deuteron Hamiltonian (Observable) auto H = qcor::createObservable( auto H = createObservable( "5.907 - 2.1433 X0X1 - 2.1433 Y0Y1 + .21829 Z0 - 6.125 Z1"); // Create the ObjectiveFunction, here we want to run VQE // need to provide ansatz and the Observable auto objective = qcor::createObjectiveFunction("vqe", ansatz, H); auto objective = createObjectiveFunction("vqe", ansatz, H); // Evaluate the ObjectiveFunction at a specified set of parameters auto energy = (*objective)(q, .59); Loading
runtime/jit/qcor_jit.in.cpp +0 −1 Original line number Diff line number Diff line #include <clang/CodeGen/CodeGenAction.h> #include <filesystem> #include <fstream> #include <memory> Loading