Commit 51612a66 authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

fixing bug in readout ir preprocessor



Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent a677316c
......@@ -107,6 +107,7 @@ PYBIND11_MODULE(pyxacc, m) {
py::class_<xacc::Instruction, std::shared_ptr<xacc::Instruction>> inst(m, "Instruction", "Instruction wraps the XACC C++ Instruction class -"
" the base for all XACC intermediate representation instructions. Instructions, for example, can be common gates like Hadamard or CNOT.");
inst.def("getName", &xacc::Instruction::getName, "Return the name of this Instruction.");
inst.def("nParameters", &xacc::Instruction::nParameters, "Return the number of parameters this Instruction has.");
// Expose the Function interface
py::class_<xacc::Function, xacc::Instruction, std::shared_ptr<xacc::Function>> f(m, "Function", "Functions are composed of Instructions.");
......
......@@ -101,7 +101,7 @@ std::shared_ptr<AcceleratorBufferPostprocessor> ReadoutErrorIRPreprocessor::proc
if (!boost::contains(pauliStr, "X" + std::to_string(bit))
&& !boost::contains(pauliStr,
"Y" + std::to_string(bit))) {
pauliStr = "Z" + std::to_string(bit) + pauliStr;
pauliStr = pauliStr + "Z" + std::to_string(bit);
pauliTerm[bit] = "Z";
}
continue;
......
......@@ -12,6 +12,7 @@
*******************************************************************************/
#include "Program.hpp"
#include "XACC.hpp"
namespace xacc {
......@@ -47,7 +48,7 @@ void Program::build() {
// Make sure we got a valid
if (!compiler) {
XACCLogger::instance()->error("Invalid Compiler.\n");
xacc::error("Invalid Compiler requested in Program.build().\n");
}
// Before compiling, run preprocessors
......
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