Commit 78a6e0ae authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

fixing bug where I forgot to add underscore to staq src variable



Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent f9a0f01a
Pipeline #118357 passed with stage
in 12 minutes and 20 seconds
...@@ -190,11 +190,10 @@ std::shared_ptr<IR> StaqCompiler::compile(const std::string &src, ...@@ -190,11 +190,10 @@ std::shared_ptr<IR> StaqCompiler::compile(const std::string &src,
_src = "OPENQASM 2.0;\n" + _src; _src = "OPENQASM 2.0;\n" + _src;
} }
// std::cout << " HELLO:\n" << _src << "\n";
using namespace staq; using namespace staq;
ast::ptr<ast::Program> prog; ast::ptr<ast::Program> prog;
try { try {
prog = parser::parse_string(src); prog = parser::parse_string(_src);
transformations::desugar(*prog); transformations::desugar(*prog);
transformations::synthesize_oracles(*prog); transformations::synthesize_oracles(*prog);
} catch (std::exception &e) { } catch (std::exception &e) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment