Quantum Circuit Simulator: Qubits, Gates & Entanglement (2D)
Exact statevector quantum-circuit simulator: apply real H/X/Y/Z/S/T/CNOT gates to 1-4 qubits, watch the measurement-probability histogram update from the actual complex amplitudes, and read the von Neumann entanglement entropy live.
This 2D companion trades the 3D original's decorative spinning-orb "quantum computer" for the mechanic its title actually promises: a real exact-statevector circuit simulator. A register of 1-4 qubits starts in the |0…0⟩ ground state; applying H, X, Y, Z, S, T or CNOT gates multiplies the underlying complex amplitude vector by the matching 2×2 (or controlled) unitary, and the probability histogram redraws itself from the genuine Born-rule probabilities |ψᵢ|² read off that vector — nothing here is a pre-scripted animation. A one-click "Bell pair" button (H then CNOT) shows the qubit-0 entanglement entropy jump from 0 to 1 bit, the textbook signature of true quantum correlation, and "Measure" samples and collapses the state exactly as a physical measurement would.
Exact statevector quantum-circuit simulator: real H/X/Y/Z/S/T/CNOT gates on 1-4 qubits, a live Born-rule probability histogram, and a von Neumann entanglement-entropy readout computed from the reduced density matrix of qubit 0.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install