Quantum Computing, Quantum Computer, Simulator, From Scratch.
(identity-matrix n)) Now we can create a gate that applies H gate to the first qubit and nothing to the second qubit (that is identity) and we can mesure the results. ┌───┐ q_0: ┤ H ├ └───┘ q_1: ───── (define new-gate (G* H (I 2))) (define initial-qubits (t* q0 q0)) (define state-vector (new-gate