Back to News
quantum-computing

I built a browser-based quantum circuit simulator

/u/sschepis
Loading...
2 min read
0 likes
⚡ Quantum Brief
A developer created a browser-based quantum circuit simulator for educational and prototyping use, supporting drag-and-drop construction of gates (H, X, CNOT, etc.) and real-time state vector simulation for up to 4 qubits. The tool includes advanced features like noise simulation with depolarizing channels, fidelity comparisons, parameter sweeps for variational algorithms, and state tomography with density matrix reconstruction. Preloaded with 20+ circuits (Bell states, Grover’s, QAOA), it runs client-side via React/TypeScript, using matrix multiplication for state evolution and topological gate execution. Circuits are shareable via base64 URLs or localStorage, with no account required. The project leverages TinyAleph, a library integrating hypercomplex math (sedenions) and quantum-inspired primitives. Underlying abstractions like PrimeState and ResonanceOperator map quantum operations to TinyAleph’s API, with experimental features like Kuramoto oscillators and formal type checking.
AI Audio Summary
0:00 / 0:00
Click to play
I built a browser-based quantum circuit simulator

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]

Read Original

Tags

quantum-algorithms
quantum-hardware

Source Information

Source: Reddit r/QuantumComputing (RSS)

Discussion

0 professional contributions

Sign in to join this professional discussion.

Be the first to add a constructive contribution.