src/framework/operations.hpp
// Return a set of all invalid circuit op names
Return a set of all invalid circuit op names
Return a set of all invalid circuit op names
OpSet::optypeset_t OpSet::invalid_optypes(const optypeset_t &allowed_ops) const {
  optypeset_t invalid;
  for (const auto &op : optypes) {
    if (allowed_ops.find(op) == allowed_ops.end())
      invalid.insert(op);
  }
  return invalid;                    
}
OpSet :: optypeset_t OpSet :: invalid_optypes ( const optypeset_t & allowed_ops ) const { optypeset_t invalid ; for ( const auto & op : optypes ) { if ( allowed_ops . find ( op ) == allowed_ops . end ( ) ) invalid . insert ( op ) ; } return invalid ; }
Return a set of all invalid circuit op names
Return a set of all invalid circuit op names