src/framework/operations.hpp
// Raise an exception if params is empty
Raise an exception if params is empty
Raise an exception if params is empty
inline void check_length_params(const Op &op, const size_t size) {
  if (op.params.size() != size)
    throw std::invalid_argument("Invalid qobj \"" + op.name + 
                                "\" instruction (\"params\" is incorrect length)");
}
inline void check_length_params ( const Op & op , const size_t size ) { if ( op . params . size ( ) != size ) throw std :: invalid_argument ( " \" " + op . name + " \" \" \" " ) ; }
Raise an exception if params is empty
Raise an exception if params is empty