Quantum · Classical · Visual · DSL
SANSQRIT

A hybrid quantum-classical visual programming environment. 639 drag-and-drop blocks. Rust/WASM engine. Sanskrit DSL. Sparse and sharded workflows for serious local experiments.

639
Visual Blocks
54
Categories
30×
Rust Speedup
71/71
Tests Pass
Scroll to explore
RUST
Core Engine · WASM
PYTHON
Pre-computation · Tools
SANSKRIT DSL
Visual · Code · Hybrid
WASM
Browser · Node.js
639 BLOCKS
Quantum · Chem · ML

Why Sansqrit

Quantum Computing
for Scientists,
Not Physicists

VISUAL CANVAS

Drag-and-drop 639 blocks across Quantum, Chemistry, Drug Discovery, Biology, Physics, ML, and more. Connect with wires. Run instantly.

RUST ENGINE

Core quantum simulation written in Rust, compiled to WebAssembly. 15-30× faster than pure JavaScript. Zero GC pauses during VQE loops.

⟨ψ⟩
SANSKRIT DSL

A clean Python-like DSL designed for quantum programs. All gates, algorithms, statistics, and ML available as first-class functions.

🔬
VQE & CHEMISTRY

Run VQE on H₂, LiH, BeH₂, H₂O. Pre-computed Hamiltonians. Chemical accuracy. Dissociation curves. Orbital analysis.

📤
10 EXPORT FORMATS

Export to QASM2/3, IBM JSON, IonQ JSON, Google Cirq, Amazon Braket, Rigetti Quil, QIR, SVG, and native Sanskrit JSON.

71 TESTS PASS

39 core tests + 32 advanced DSL tests. 12 Rust physics unit tests. Bell state, Grover, QFT, VQE, cross-shard gates all verified.

The Language

Clean.
Readable.
Quantum-Native.

Sanskrit DSL feels like Python but speaks quantum. Variables, loops, functions, f-strings — everything you know — plus qubits(), H(), CNOT(), measure_all(), vqe() as primitives.

Language Reference See Examples
-- Bell State: quantum entanglement
let q = qubits(2)
H(q[0])
CNOT(q[0], q[1])
let r = measure_all(q, shots=1000)
print(r.histogram)
-- {"00": 503, "11": 497}

-- VQE hydrogen molecule
molecule H2 {
  atoms: [H, H],
  bond_length: 0.74,
  basis_set: "STO-3G"
}
let result = vqe(H2, ansatz="UCCSD")
print(f"Energy: {result.energy:.6f} Ha")
-- Energy: -1.136891 Ha

-- Grover search: find item 7 in 16
let found = grover(4, [7], 2000)
print(found.histogram)
-- {"0111": 1916, ...}
Learning path · core concepts

Start with the quantum foundations

This section now keeps the beginner learning tracks separate from the Python package and advanced runtime material, so the home page has more breathing room and the cards do not feel cramped.

Python package · advanced labs

Move into SansqritPy, sharding, install and community

Advanced readers can jump directly into pip installation, the SansqritPy wheel documentation, 120+ logical-qubit examples, sharded simulation, and community resources.