Synapse Language
An interpreted language for uncertainty-aware scientific computing, with built-in quantum circuit simulation and parallel blocks.
early stage The features listed below run and are covered by tests. Larger programs under examples/roadmap/ are design targets and do not execute yet.
Try it
- Run Synapse in the browser. Python in WebAssembly, no install, no model calls.
- PyPI:
pip install synapse-lang. The current release, 2.4.1, drops the uncertainty on a barex = 3 ± 0.2literal; the fix is on themasterbranch. - README on GitHub, with first-run output captured from real runs.
A first program
x = 3 ± 0.2 print(x * 2) print(x - x)
6.0 ± 0.4 0.0 ± 0.0
Uncertain values carry their sources, so a variable used twice in one formula is one variable. Output above is from the repository build of 2026-09-11.
What runs today
- Printing, variables, arithmetic and built-in math.
- Uncertain values with first-order propagation through arithmetic and the math builtins, plus
covarianceandcorrelationbetween results. - Parallel branches.
- Quantum circuits on the built-in state-vector simulator.
Documents in this folder
Reference material kept with the repository. Some of it describes roadmap features that do not run yet; where a document and the README disagree, the README is current.
- Runtime optimization and verification
- External isolation runner
- Language specification (includes roadmap syntax)
- Quantum syntax
- Qubit Flow
- Roadmap
- Trinity validation record
Limits
Propagation is first order and treats declared values as normal unless told otherwise. The quantum simulator has no noise model and no hardware backend. Source runs trusted and in-process. Nothing here has been validated on real instrument data yet. Not the same thing as Talon's .synapse score files, which are a separate music notation language.