quansim v0.1.0 — Initial Release
A quantum circuit simulator built in Rust. Runs entirely on your machine, no quantum hardware required.
Documentation & Install Guide: https://brewaway.gitbook.io/quansim-docs
Full Changelog: https://github.com/jagath-sajjan/quansim/commits/v0.1.0
What's included
Core Simulator
- Full complex amplitude state vector simulation
- Supports up to ~28 qubits (~512 KB RAM for a 15-qubit circuit)
- Exports circuits to OpenQASM 2.0 (compatible with IBM Quantum and other real hardware)
Gate Set
- Single qubit:
H,X,S,T,RX,RY,RZ,Phase - Two qubit:
CNOT,CZ,SWAP,CRX,CRY,CRZ - Three qubit:
Toffoli
Built in Demos
quansim demo bell
quansim demo ghz 4
quansim demo grover 3 5
quansim demo qft 3
quansim demo teleport
Analysis & Noise
- Full state vector amplitudes & probability distributions
- Single shot and multi shot measurement
- Expectation values (X, Y, Z) per qubit
- State fidelity, density matrix purity & trace
- Circuit depth and gate count
- Noise models: depolarizing, bit flip, phase flip
Interactive REPL
- Live gate input with real time state updates
- Run
.qasmcircuit files directly
Platform support
| Platform | Status |
|---|---|
| macOS | ✅ Tested |
| Linux | |
| Windows |
If you test on Linux or Windows and run into issues, please open an issue or reach out at jagathsajjan227@gmail.com. Contributions are very welcome!
Getting started
git clone https://github.com/jagath-sajjan/quansim
cd quansim
cargo build --release
cargo run