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
78a6e0ae
Commit
78a6e0ae
authored
Sep 18, 2020
by
Mccaskey, Alex
Browse files
fixing bug where I forgot to add underscore to staq src variable
Signed-off-by:
Alex McCaskey
<
mccaskeyaj@ornl.gov
>
parent
f9a0f01a
Pipeline
#118357
passed with stage
in 12 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
quantum/plugins/staq/compiler/staq_compiler.cpp
View file @
78a6e0ae
...
...
@@ -190,11 +190,10 @@ std::shared_ptr<IR> StaqCompiler::compile(const std::string &src,
_src
=
"OPENQASM 2.0;
\n
"
+
_src
;
}
// std::cout << " HELLO:\n" << _src << "\n";
using
namespace
staq
;
ast
::
ptr
<
ast
::
Program
>
prog
;
try
{
prog
=
parser
::
parse_string
(
src
);
prog
=
parser
::
parse_string
(
_
src
);
transformations
::
desugar
(
*
prog
);
transformations
::
synthesize_oracles
(
*
prog
);
}
catch
(
std
::
exception
&
e
)
{
...
...
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