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
6f56c659
Commit
6f56c659
authored
Jan 15, 2019
by
Zachary Parks
Browse files
Little fix to use toString() for checking parameters
Signed-off-by:
Zachary Parks
<
1zp@ornl.gov
>
parent
cfdfed47
Changes
1
Hide whitespace changes
Inline
Side-by-side
quantum/aqc/ir/DWFunction.hpp
View file @
6f56c659
...
...
@@ -103,7 +103,7 @@ const int nRequiredBits() const override {
xacc
::
InstructionParameter
param
=
instruction
->
getParameter
(
0
);
bool
dupParam
=
false
;
for
(
auto
p
:
parameters
)
{
if
(
p
.
as
<
std
::
s
tring
>
()
==
param
.
as
<
std
::
s
tring
>
())
{
if
(
p
.
toS
tring
()
==
param
.
toS
tring
())
{
dupParam
=
true
;
}
}
...
...
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