Quantum Computing, Quantum Computer, Simulator, From Scratch.
0 scaled-probs obs roll 0 len))) The heavy-loading of the operation is done by a recursive function range-map and measure-mat drives it. Note that, a state vector is just a matrix of n rows and 1 column in Racket, see Part 1 for how we are constructing the matrix. We are not quite done yet.