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

Fixing bug: closing brace before code !!



Users reported incorrect ro mitigation decorator.

This is due to the ro error probabilities are incorrect. The code to populate the meas1_prep0 data was accidentally placed outside the if scope, hence contain bogus data.

Signed-off-by: Nguyen, Thien Minh's avatarThien Nguyen <nguyentm@ornl.gov>
parent c3faf15a
......@@ -892,10 +892,14 @@ HeterogeneousMap IBMAccelerator::getProperties() {
if (q["name"].get<std::string>() == "prob_meas0_prep1") {
p01s.push_back(q["value"].get<double>());
} else if (q["name"].get<std::string>() == "prob_meas1_prep0") {
p10s.push_back(q["value"].get<double>());
}
p10s.push_back(q["value"].get<double>());
}
}
assert(std::all_of(p01s.begin(), p01s.end(),
[](double x) { return x >= 0.0 && x < 1.0; }));
assert(std::all_of(p10s.begin(), p10s.end(),
[](double x) { return x >= 0.0 && x < 1.0; }));
m.insert("p01s", p01s);
m.insert("p10s", p10s);
......
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