Skip to content

Commit

Permalink
Address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ausbin committed Dec 17, 2024
1 parent d7925ca commit c5397d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/qiree/Module.hh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Module
explicit Module(UPModule&& module);

// Construct from an externally created LLVM module and an entry point
explicit Module(UPModule&& module, std::string const& entrypoint);
Module(UPModule&& module, std::string const& entrypoint);

// Construct with an LLVM IR file (bitcode or disassembled)
explicit Module(std::string const& filename);
Expand Down
4 changes: 3 additions & 1 deletion src/qirxacc/XaccQuantum.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ XaccQuantum::XaccQuantum(std::ostream& os,
xacc::setIsPyApi();

// Create accelerator
set_accelerator_and_shots(accel_name, shots);
accelerator_ = xacc::getAccelerator(accel_name);
QIREE_VALIDATE(accelerator_, << "failed to create accelerator");
accelerator_->updateConfiguration({{"shots", static_cast<int>(shots)}});
// TODO: bit order is accelerator-dependent?
endian_ = Endianness::little;

Expand Down

0 comments on commit c5397d3

Please sign in to comment.