sage: square = polytopes.hypercube(2)

Which version of sage are you using? That might be a problem as the function ambient_V_indices is available since version 8.8.