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
d26018b8
Commit
d26018b8
authored
Jul 20, 2017
by
Mccaskey, Alex
Browse files
Fixing bug in parameter setting where F was not negative
parent
4f6c42d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
quantum/aqc/compiler/default/DefaultParameterSetter.cpp
View file @
d26018b8
...
...
@@ -96,9 +96,9 @@ std::list<std::shared_ptr<DWQMI>> DefaultParameterSetter::setParameters(
problemGraph
->
getEdgeWeight
(
pi
,
neighbor
));
}
newWeight
=
std
::
get
<
0
>
(
problemGraph
->
getVertexProperties
(
pi
))
+
newWeight
-
1.0
;
newWeight
+
=
std
::
get
<
0
>
(
problemGraph
->
getVertexProperties
(
pi
))
;
newWeight
*=
-
1.0
;
}
if
(
std
::
fabs
(
newWeight
)
>
1e-4
)
{
...
...
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