Skip to content

Commit

Permalink
Address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ausbin committed Oct 8, 2024
1 parent 4904fa8 commit 454b207
Show file tree
Hide file tree
Showing 2 changed files with 5 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
5 changes: 4 additions & 1 deletion src/qirxacc/XaccQuantum.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ 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 454b207

Please sign in to comment.