Direct certification of a class of quantum simulations