Commit 268ab47d authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

minor updates and clean up



Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent 3343a834
......@@ -429,6 +429,8 @@ PYBIND11_MODULE(_pyxacc, m) {
m.def("setOption", [](const std::string s, InstructionParameter p) {
xacc::setOption(s, boost::lexical_cast<std::string>(p));
});
m.def("info", [](const std::string s) { xacc::info(s);}, "");
m.def("error", &xacc::error, "");
m.def("setOption", &xacc::setOption, "Set an XACC framework option.");
m.def("setOptions",
[](std::map<std::string, std::string> options) {
......
......@@ -230,6 +230,8 @@ const std::string AcceleratorBuffer::name() const { return bufferId; }
void AcceleratorBuffer::resetBuffer() {
measurements.clear();
bitStringToCounts.clear();
children.clear();
info.clear();
}
void AcceleratorBuffer::appendMeasurement(const std::string &measurement) {
......
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