Commit dd104c21 authored by Nguyen, Thien Minh's avatar Nguyen, Thien Minh
Browse files

Fixed an issue with qubit reg name in mirror circuit construction



Signed-off-by: default avatarThien Nguyen <nguyentm@ornl.gov>
parent fc7919fb
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -46,8 +46,14 @@ public:
  }

  // Keep these 2 gates:
  void visit(CNOT &cnot) override { m_program->addInstruction(cnot.clone()); }
  void visit(U &u) override { m_program->addInstruction(u.clone()); }
  void visit(CNOT &cnot) override {
    m_program->addInstruction(
        m_gateRegistry->createInstruction("CX", cnot.bits()));
  }

  void visit(U &u) override { 
    m_program->addInstruction(u.clone()); 
  }

  // Rotation gates:
  void visit(Ry &ry) override {