Text this: Finding dense sublattices as low energy states of a Hamiltonian