I built a browser-based quantum circuit simulator
Understand this faster with AI
https://preview.redd.it/snapcs63x1cg1.png?width=1419&format=png&auto=webp&s=e6fafab5e4f3d2275b81863c77ab82c8a5d56b38 I built a quantum circuit simulator that runs entirely in the browser. Sharing in case it's useful for learning or quick prototyping. Features: Drag-and-drop circuit building (H, X, Y, Z, S, T, CNOT, CZ, Toffoli, Fredkin, parameterized gates) Up to 4 qubits with real-time state vector simulation Bloch sphere and amplitude visualizations Step-through debugger with conditional breakpoints Noise simulation and fidelity comparison Parameter sweeps for variational circuits State tomography with density matrix reconstruction Includes ~20 preset circuits: Bell states, GHZ, Grover's, QFT, QPE, VQE, QAOA, error correction codes, teleportation, etc. Implementation notes: Built with React/TypeScript, runs client-side only State vector simulation using explicit matrix multiplication Gates stored as position/wire tuples, executed in topological order by layer Noise model applies depolarizing channels post-gate with configurable error rates Circuits shareable via base64-encoded URL or saved to localStorage Built on TinyAleph: This is part of a larger examples site for TinyAleph, a library I've been working on that combines quantum-inspired primitives with hypercomplex math (sedenions), resonance-based semantic engines, and formal type systems. The circuit runner uses TinyAleph's PrimeState and ResonanceOperator abstractions under the hood—quantum states map to the library's hypercomplex number system, and the generated code panel shows how circuits translate to TinyAleph's API. The library also includes Kuramoto oscillator synchronization, entropy reduction dynamics, and an experimental formal type checker with reduction semantics. Still very much a work in progress. Demo site here. No accounts required. Feedback welcome. Click here to check it out. submitted by /u/sschepis [link] [comments]
Tags
Source Information
Discussion
0 professional contributions
Sign in to join this professional discussion.
Be the first to add a constructive contribution.
