Commit f939e93a authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

removed circuit from allgatevisitor


Signed-off-by: Mccaskey, Alex's avatarAlex Mccaskey <mccaskeyaj@ornl.gov>
parent bc3f4609
......@@ -15,14 +15,12 @@
#include "InstructionIterator.hpp"
#include "Circuit.hpp"
#include "CommonGates.hpp"
namespace xacc {
namespace quantum {
class AllGateVisitor : public BaseInstructionVisitor,
public InstructionVisitor<Circuit>,
public InstructionVisitor<Hadamard>,
public InstructionVisitor<CNOT>,
public InstructionVisitor<Rz>,
......
......@@ -69,13 +69,9 @@ public:
void visit(U &u) { addSingleQubitGate(u); }
void visit(Circuit &f) {
// nothing
}
virtual ~IRToGraphVisitor() {}
};
} // namespace quantum
} // namespace xacc
#endif
\ No newline at end of file
#endif
......@@ -68,7 +68,6 @@ public:
void visit(U &u);
void visit(Circuit &function) {}
protected:
void baseGateInst(Gate &inst, bool endObject = true);
......
......@@ -13,6 +13,7 @@
#include <gtest/gtest.h>
#include "AllGateVisitorTester.hpp"
#include "XACC.hpp"
#include "Circuit.hpp"
using namespace xacc::quantum;
......
......@@ -65,10 +65,6 @@ public:
void visit(U &u) {foundU = true;}
void visit(Circuit &f) {
// nothing
}
virtual ~TestAllGateVisitor() {}
};
......@@ -95,4 +91,4 @@ public:
} // namespace quantum
} // namespace xacc
#endif
\ No newline at end of file
#endif
......@@ -5,7 +5,6 @@
#include <memory>
#include <set>
#include "IBMAccelerator.hpp"
#include "OpenQasmVisitor.hpp"
#ifdef LAPACK_FOUND
#include "LocalIBMAccelerator.hpp"
......@@ -29,7 +28,6 @@ public:
*/
void Start(BundleContext context) {
auto acc = std::make_shared<xacc::quantum::IBMAccelerator>();
auto vis = std::make_shared<xacc::quantum::OpenQasmVisitor>();
#ifdef LAPACK_FOUND
auto acc2 = std::make_shared<xacc::quantum::LocalIBMAccelerator>();
......@@ -45,7 +43,6 @@ public:
context.RegisterService<xacc::Accelerator>(acc);
context.RegisterService<xacc::OptionsProvider>(acc);
context.RegisterService<xacc::BaseInstructionVisitor>(vis);
}
/**
......
#include "IBMAccelerator.hpp"
// #include "OpenPulseVisitor.hpp"
#include "OpenQasmVisitor.hpp"
#include <cctype>
#include <fstream>
......
......@@ -222,9 +222,6 @@ public:
visit(c3);
}
void visit(Circuit& f) {
return;
}
/**
* Return the OpenQasm string
*/
......
......@@ -309,8 +309,6 @@ public:
visit(u1_3);
}
void visit(Circuit &f) override { return; }
/**
* The destructor
*/
......
......@@ -199,7 +199,6 @@ public:
quilStr += s.str();
}
void visit(Circuit &f) { return; }
/**
* Return the quil string
*/
......
......@@ -33,6 +33,7 @@
#include "QuilVisitor.hpp"
#include "InstructionIterator.hpp"
#include "XACC.hpp"
#include "Circuit.hpp"
using namespace xacc;
using namespace xacc::quantum;
......
Markdown is supported
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