Quantum Computing, Quantum Computer, Simulator, From Scratch.
(array #[#[0] #[0] #[1] #[0]]) ;; |1> ⊗ |1> == |11> (t* (gX q0) (gX q0)) ; ==> (array #[#[0] #[0] #[0] #[1]]) ;; (H q0) ⊗ |1> (t* (gH q0) q0) ; ==> (array #[#[0.7071067811865475] #[0] #[0.7071067811865475] #[0]]) (counts (t* (gH q0) q0)) ; ==> '#hash(((0 0) . 518) ((1 0) . 506)) The last one is