Commit 5fe22dd4 authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

fix clang compiler warning, merge qrack docs


Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent 21e2236b
Pipeline #102864 passed with stage
in 69 minutes and 11 seconds
...@@ -257,7 +257,7 @@ public: ...@@ -257,7 +257,7 @@ public:
return ret; return ret;
} }
virtual std::vector<std::shared_ptr<Observable>> getNonIdentitySubTerms() { std::vector<std::shared_ptr<Observable>> getNonIdentitySubTerms() override {
std::vector<std::shared_ptr<Observable>> ret; std::vector<std::shared_ptr<Observable>> ret;
for (auto &term : getTerms()) { for (auto &term : getTerms()) {
if (term.first != "I") { if (term.first != "I") {
...@@ -268,7 +268,7 @@ public: ...@@ -268,7 +268,7 @@ public:
return ret; return ret;
} }
virtual std::shared_ptr<Observable> getIdentitySubTerm() { std::shared_ptr<Observable> getIdentitySubTerm() override {
for (auto &term : getTerms()) { for (auto &term : getTerms()) {
if (term.first == "I") { if (term.first == "I") {
return std::make_shared<PauliOperator>(term.second.ops(), return std::make_shared<PauliOperator>(term.second.ops(),
......
Markdown is supported
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