Quantum Computing, Quantum Computer, Simulator, From Scratch.
defines another function nG* to do the same. Quantum Circuits Now we have all the ingredients to write a function that creates a quantum circuit. (define (make-circuit matrices #:assembler [assembler G*]) (let ([ops (map (λ (gs) (if (list? gs) (apply assembler gs) (apply-op gs))) matrices)]) (λ