Commit 8e89313f authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

Updating program to take IR at construction, fixing gateqir bug

parent addda997
......@@ -80,7 +80,7 @@ public:
* circuit gate (CircuitNode).
*
*/
class GateQIR: public virtual xacc::IR, public Graph<CircuitNode> {
class GateQIR: public xacc::IR, public Graph<CircuitNode> {
public:
......
......@@ -120,8 +120,8 @@ public:
src(sourceFile), accelerator(std::move(acc)) {
}
Program(std::shared_ptr<Accelerator> acc, const std::shared_ptr<xacc::IR> ir) :
xaccIR(std::move(ir)), accelerator(std::move(acc)) {
Program(std::shared_ptr<Accelerator> acc, std::shared_ptr<xacc::IR> ir) :
xaccIR(ir), accelerator(std::move(acc)) {
}
/**
......
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