I will explain different algorithms for sampling and specifically focus on direct sampling, which is in a sense optimal. Reviewing how you do this in MPS, I will explain how to (partially) generalize this approach to PEPS, something I have been working on recently.