From 6d5da4cfb42f78932ce226668c27d132b943a09a Mon Sep 17 00:00:00 2001 From: xumingkuan Date: Sun, 23 Oct 2022 21:54:54 -0400 Subject: [PATCH] [qasm] Also ignore barrier and measure --- src/quartz/tasograph/tasograph.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/quartz/tasograph/tasograph.cpp b/src/quartz/tasograph/tasograph.cpp index f418b549..81ea91d0 100644 --- a/src/quartz/tasograph/tasograph.cpp +++ b/src/quartz/tasograph/tasograph.cpp @@ -1388,6 +1388,10 @@ Graph::_from_qasm_stream(Context *ctx, continue; // header, ignore this line } else if (command == "include") { continue; // header, ignore this line + } else if (command == "barrier") { + continue; // file end, ignore this line + } else if (command == "measure") { + continue; // file end, ignore this line } else if (command == "creg") { continue; // ignore this line } else if (command == "qreg") {