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 18, 2024
1 parent 3a6106f commit 1626b8e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
3 changes: 2 additions & 1 deletion src/qiree/Module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ Module::Module(UPModule&& module) : module_{std::move(module)}
//---------------------------------------------------------------------------//
/*!
* Construct with an LLVM module and an entry point.
* Useful when there are multiple entry points.
*/
Module::Module(UPModule&& module, std::string const& entrypoint)
: module_{std::move(module)}
Expand All @@ -128,7 +129,6 @@ Module::Module(UPModule&& module, std::string const& entrypoint)
<< "no entrypoint function '" << entrypoint << "' exists");
}


//---------------------------------------------------------------------------//
/*!
* Construct with an LLVM IR file (bitcode or disassembled).
Expand All @@ -141,6 +141,7 @@ Module::Module(std::string const& filename)
//---------------------------------------------------------------------------//
/*!
* Construct with an LLVM IR file (bitcode or disassembled) and entry point.
* Useful when there are multiple entry points.
*/
Module::Module(std::string const& filename, std::string const& entrypoint)
: module_{load_llvm_module(filename)}
Expand Down
11 changes: 0 additions & 11 deletions src/qirxacc/XaccQuantum.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,6 @@ XaccQuantum::~XaccQuantum()
xacc::Finalize();
}

//---------------------------------------------------------------------------//
/*!
* Update the XACC accelerator and shot count.
*/
void XaccQuantum::set_accelerator_and_shots(
std::string const& accel_name, size_type shots) {
accelerator_ = xacc::getAccelerator(accel_name);
QIREE_VALIDATE(accelerator_, << "failed to create accelerator");
accelerator_->updateConfiguration({{"shots", static_cast<int>(shots)}});
}

//---------------------------------------------------------------------------//
/*!
* Prepare to build a quantum circuit for an entry point.
Expand Down
7 changes: 0 additions & 7 deletions src/qirxacc/XaccQuantum.hh
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,6 @@ class XaccQuantum final : virtual public QuantumNotImpl
size_type num_qubits() const { return num_qubits_; }
//!@}

//!@{
//! \name Mutators
// Update the XACC accelerator and shot count
void set_accelerator_and_shots(
std::string const& accel_name, size_type shots);
//!@}

//!@{
//! \name Quantum interface
// Prepare to build a quantum circuit for an entry point
Expand Down

0 comments on commit 1626b8e

Please sign in to comment.