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
52ae384d
Commit
52ae384d
authored
Feb 04, 2019
by
Mccaskey, Alex
Browse files
updating to include chain_strength option on default param setter
Signed-off-by:
Alex McCaskey
<
mccaskeyaj@ornl.gov
>
parent
4d1e6866
Pipeline
#32916
passed with stages
in 9 minutes and 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
quantum/aqc/compiler/default/DefaultParameterSetter.cpp
View file @
52ae384d
...
...
@@ -54,8 +54,8 @@ std::list<std::shared_ptr<DWQMI>> DefaultParameterSetter::setParameters(
}
double
chain_strength
=
1.0
;
if
(
xacc
::
optionExists
(
"chain
_
strength"
))
{
chain_strength
=
std
::
stod
(
xacc
::
getOption
(
"chain
_
strength"
));
if
(
xacc
::
optionExists
(
"chain
-
strength"
))
{
chain_strength
=
std
::
stod
(
xacc
::
getOption
(
"chain
-
strength"
));
}
for
(
int
i
=
0
;
i
<
nHardwareVerts
;
i
++
)
{
...
...
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