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

Add getProperties() override for the rest of Simulator Accelerator impls in XACC



Signed-off-by: Nguyen, Thien Minh's avatarThien Nguyen <nguyentm@ornl.gov>
parent a5071d5f
......@@ -77,6 +77,9 @@ public:
virtual std::vector<std::pair<int, int>> getConnectivity() override;
virtual BitOrder getBitOrder() override { return BitOrder::MSB; }
virtual HeterogeneousMap getProperties() override {
return {{"shots", m_shots}};
}
virtual void execute(std::shared_ptr<AcceleratorBuffer> buffer,
const std::shared_ptr<CompositeInstruction>
compositeInstruction) override;
......
......@@ -29,6 +29,9 @@ public:
virtual void updateConfiguration(const HeterogeneousMap& config) override {initialize(config);};
virtual const std::vector<std::string> configurationKeys() override { return {}; }
virtual BitOrder getBitOrder() override {return BitOrder::LSB;}
virtual HeterogeneousMap getProperties() override {
return {{"shots", m_shots}};
}
virtual void execute(std::shared_ptr<AcceleratorBuffer> buffer, const std::shared_ptr<CompositeInstruction> compositeInstruction) override;
virtual void execute(std::shared_ptr<AcceleratorBuffer> buffer, const std::vector<std::shared_ptr<CompositeInstruction>> compositeInstructions) override;
private:
......
......@@ -226,6 +226,9 @@ public:
return {};
}
virtual BitOrder getBitOrder() override { return BitOrder::MSB; }
virtual HeterogeneousMap getProperties() override {
return {{"shots", m_shots}};
}
virtual void execute(std::shared_ptr<AcceleratorBuffer> buffer,
const std::shared_ptr<CompositeInstruction>
compositeInstruction) override;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment