And so on. While this does not look like a code in python, it is a valid model of probabilistic computation, which looks similar to gate-based quantum computation. - Compose enough of such simple steps, and the complexity of the resulting probability distribution can be high. I.e. the ...