xacc::error("ReadoutError Postprocessor: Invalid number of buffers and kernels.");
intnonIdentityKernels=0;
for(auto&k:ir.getKernels()){
if(k->nInstructions()>0){
nonIdentityKernels++;
}
}
if(buffers.size()%nonIdentityKernels!=0){
xacc::error("ReadoutError Postprocessor: Invalid number of buffers and kernels - "+std::to_string(buffers.size())+", "+std::to_string(nonIdentityKernels));