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

updating formatting


Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent ff802f26
Pipeline #56550 passed with stages
in 7 minutes and 37 seconds
......@@ -5,10 +5,12 @@ int main(int argc, char **argv) {
qcor::Initialize(argc, argv);
auto optimizer = qcor::getOptimizer(
"nlopt", {{"nlopt-optimizer", "cobyla"}, {"nlopt-maxeval", 20}});
"nlopt", {{"nlopt-optimizer", "cobyla"},
{"nlopt-maxeval", 20}});
auto op = qcor::getObservable(
"pauli", "5.907 - 2.1433 X0X1 - 2.1433 Y0Y1 + .21829 Z0 - 6.125 Z1");
auto op = qcor::getObservable("pauli", "5.907 - 2.1433 X0X1 "
"- 2.1433 Y0Y1"
"+ .21829 Z0 - 6.125 Z1");
auto future = qcor::submit([&](qcor::qpu_handler &qh) {
qh.vqe(
......@@ -21,6 +23,4 @@ int main(int argc, char **argv) {
});
auto results = future.get();
// std::cout << "Results:\n";
// results->print();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment