def _get_dominated_indices(vectors: list[np.ndarray]) -> set[int]:
    """Get the indices of vectors that are element-wise at least some other
    vector.
    """
    dominated_indices = set()
    for i, v in enumerate(vectors):
        for w in vectors[:i] + vectors[i + 1 :]:
            if all(v >= w):
                dominated_indices.add(i)
                break
    return dominated_indices
Get the indices of vectors that are element-wise at least some other
    vector.
    
cirq-core/cirq/contrib/routing/greedy.py