builtwithbend
← Back to the collection

Bend Quantum Simulator

Research & experiments · ☆ 0 GitHub stars

Built by splch

Preview of Bend Quantum Simulator

A compact quantum-circuit simulator written in Bend 2, with gates, controlled operations, measurement, and sampling. Examples cover Bell and GHZ states, teleportation, the quantum Fourier transform, and Grover's algorithm.

Quantum states are binary trees of complex amplitudes whose shape is indexed by the qubit count in the type system. The repository includes expected-output checks and a NumPy differential-test harness. Type-level shape guarantees are kept separate from floating-point numerical validation.

The sources

Explore the original posts and links behind this build.

GitHubhttps://github.com/splch/bend2-quantum-simulator/blob/main/README.md ↗GitHubhttps://github.com/splch/bend2-quantum-simulator/blob/main/src/sim.bend ↗
Curated by LVTDBuilt for the people building.