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

fix subroutine args to memrefs, remove print outs in qir-qrt

parent b6792765
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -88,7 +88,7 @@ antlrcpp::Any qasm3_visitor::visitSubroutineDefinition(
        llvm::ArrayRef<int64_t> shaperef{};
        mlir_type =
            mlir::MemRefType::get(shaperef, builder.getIntegerType(bit_size));
        argument_types.push_back(builder.getIntegerType(bit_size));
        argument_types.push_back(mlir_type);
      } else if (type.find("float") != std::string::npos) {
        auto start = type.find_first_of("[");
        auto finish = type.find_first_of("]");
+1 −1
Original line number Diff line number Diff line
@@ -333,7 +333,7 @@ void __quantum__rt__end_ctrl_u_region(Qubit * ctrl_qbit) {
      std::make_pair("control-idx", ctrlIdx),
  });

  std::cout << "Running Ctrl on " << ctrlIdx << ":\n" << ctrlKernel->toString() << "\n";
  // std::cout << "Running Ctrl on " << ctrlIdx << ":\n" << ctrlKernel->toString() << "\n";
  for (int instId = 0; instId < ctrlKernel->nInstructions(); ++instId) {
    ::quantum::qrt_impl->general_instruction(
        ctrlKernel->getInstruction(instId));