Quantum Computing, Quantum Computer, Simulator, From Scratch.
(input-qbits) (for/fold ([sv input-qbits]) ([f ops]) (f sv))))) (define (qubits n) (apply t* (for/list ([i (range n)]) q0))) The helper function qubits creates an input state vector with all qubits as zero. A simple quantum circuit We will now conclude this part by trying to make a simple circuit