Commit 94b060d8 authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

Update h2_ucc1_expgen_vqe.cpp

parent a56f2ce0
Pipeline #50132 passed with stages
in 2 minutes and 17 seconds
......@@ -9,13 +9,13 @@ int main(int argc, char **argv) {
auto geom = R"geom(2
H 0.00000 0.00000 0.00000
H 0.00000 0.00000 0.7474)geom";
H 0.00000 0.00000 0.00000
H 0.00000 0.00000 0.7474)geom";
auto op = qcor::getObservable("chemistry",
{{"basis", "sto-3g"}, {"geometry", geom}});
auto future = qcor::submit([&](qcor::qpu_handler &qh) {
auto future = qcor::submit([&](qcor::qpu_handler &qh) {
qh.vqe(
[&](double x) {
X(0);
......@@ -27,6 +27,4 @@ auto future = qcor::submit([&](qcor::qpu_handler &qh) {
auto results = future.get();
auto energy = mpark::get<double>(results->getInformation("opt-val"));
std::cout << "Results: " << energy << "\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