Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ORNL Quantum Computing Institute
qcor
Commits
94b060d8
Commit
94b060d8
authored
Apr 23, 2019
by
Mccaskey, Alex
Browse files
Update h2_ucc1_expgen_vqe.cpp
parent
a56f2ce0
Pipeline
#50132
passed with stages
in 2 minutes and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
examples/h2_ucc1_expgen_vqe.cpp
View file @
94b060d8
...
...
@@ -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();
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment