Quantum Computing, Quantum Computer, Simulator, From Scratch.
0)) ; ==> '#hash(((0) . 1024)) (counts (qubit 0 1)) ; ==> '#hash(((1) . 1024)) Unsurprisingly, measuring a |0> will always produce 0 and a |1> will produce 1. How about the special state we discussed last time? (define h-factor (/ 1.0 (sqrt 2))) (counts (qubit h-factor h-factor)) ; ==> '#hash(((0)