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
xacc
Commits
d9ffbe37
Commit
d9ffbe37
authored
May 27, 2020
by
Nguyen, Thien Minh
Browse files
Added a missing param
Signed-off-by:
Nguyen, Thien
<
nguyentm@ornl.gov
>
parent
0061411f
Changes
1
Hide whitespace changes
Inline
Side-by-side
quantum/plugins/algorithms/qaoa/qaoa.cpp
View file @
d9ffbe37
...
...
@@ -82,7 +82,7 @@ void QAOA::execute(const std::shared_ptr<AcceleratorBuffer> buffer) const
std
::
make_pair
(
"nbQubits"
,
nbQubits
),
std
::
make_pair
(
"nbSteps"
,
m_nbSteps
),
std
::
make_pair
(
"cost-ham"
,
m_costHamObs
),
std
::
make_pair
(
"ref-ham"
,
m_refHamObs
)
,
std
::
make_pair
(
"ref-ham"
,
m_refHamObs
)
});
// Observe the cost Hamiltonian:
...
...
@@ -179,7 +179,8 @@ std::vector<double> QAOA::execute(const std::shared_ptr<AcceleratorBuffer> buffe
kernel
->
expand
({
std
::
make_pair
(
"nbQubits"
,
nbQubits
),
std
::
make_pair
(
"nbSteps"
,
m_nbSteps
),
std
::
make_pair
(
"cost-ham"
,
m_costHamObs
)
std
::
make_pair
(
"cost-ham"
,
m_costHamObs
),
std
::
make_pair
(
"ref-ham"
,
m_refHamObs
)
});
// Observe the cost Hamiltonian:
...
...
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