Quantum Circuit Simulator & Computing Playground

Design quantum DSL circuits, simulate with shots, and explore probabilities, counts, OpenQASM export, and Bloch sphere visualization.

Keyboard: Enter / Ctrl+Enter = Run · Ctrl+L = Clear · Arrow keys = cycle samples

About This Quantum Circuit Simulator and Quantum DSL

This free quantum circuit simulator and quantum computing playground enables hands-on exploration of quantum computing concepts through a compact quantum DSL. Created by Anup Dharangutti with a focus on clarity and minimalism, it provides real-time visualization of quantum states, probability distributions, and Bloch sphere visualization. The simulator supports standard quantum gates (Hadamard, Pauli, CNOT) and shot-based measurements, making it ideal for students, educators, and developers learning quantum algorithms. All computations run client-side after an initial API call, ensuring privacy and instant feedback. Circuits can be shared through URL encoding, enabling collaborative learning without accounts or installations. The tool includes OpenQASM export for interoperability with other quantum platforms. Designed for accessibility and simplicity, this simulator bridges the gap between theoretical quantum mechanics and practical circuit design, serving as a zero-maintenance educational resource.

Continue with visual quantum lessons, quantum algorithms guides, quantum application examples, the quantum computing glossary, or the simulator API playground.

DSL editor

Shots-aware • Inline errors • Local storage
1 - 100000
Generate DSL

Circuit diagram

Returned by Function API
Circuit diagram will appear here

Probability distribution

Click a bar to pin a state

Bloch spheres

Per-qubit X/Y/Z

Circuit insights

Client-side analysis
Summary

    Full Derivation (Pro) 🔒

    Performance / complexity

    Circuit Complexity Score

    Normalized metric (0.00-1.00) based on depth, gate count, and entanglement

    Scope note: Structural analysis and protocol detection are accurate. Entanglement reporting is based on gate interactions, not analysis of the final quantum state. Observed‑behavior summaries are approximate; refer to raw counts for exact probabilities.

    API playground

    Uses the same Azure Function endpoint
    
          
    Sponsored

    Support This Project

    Independent • No tracking

    This simulator is independent and self-funded. If it helps your work or learning, you can support ongoing maintenance via the trusted options below.

    PDF appreciation gift: Quantum Circuit Examples & Explanations.

    Quick reference

    DSL + shortcuts + tips
    Quantum DSL statements
    • qubits N — declare qubits
    • H i, X i, Y i, Z i, S i, T i
    • CX a b / CNOT a b — control/target
    • MEASURE i — adds measurement for counts
    Shortcuts
    • Enter / Ctrl+Enter: run
    • Ctrl+L: clear DSL
    • Arrow keys: cycle samples
    • Auto-save: DSL, sample, shots, theme
    Sharing

    Use “Share” to copy a compact URL (base64 circuit + shots + theme + preset). Pasting the link reloads the state instantly.

    Feature map & implementation notes

    Research-grade enhancements

    All completed features are client-side only and require no backend modifications. They integrate seamlessly with existing circuit analysis and simulation results.

    How to Use This Tool

    Quick AutomationGlance walkthrough

    DSL basics

    Describe qubits, gates, and measurements line-by-line.

    • qubits N sets the register size.
    • Use single-qubit gates like H 0 or X 2.
    • Entangle with CX a b (control, target).
    • MEASURE i records counts for qubit i.

    Running & sharing

    • Press Run simulation or hit Enter / Ctrl+Enter.
    • Adjust Shots (1–100000) for sampling accuracy.
    • Try sample circuits or generate a random DSL for inspiration.
    • Use Share to copy a URL that replays your setup.

    Reading the visuals

    • Circuit diagram: rendered from your DSL.
    • Probability bars: hover or click to pin a state.
    • Counts: raw measurement tallies from the shots.
    • Bloch spheres: X/Y/Z for each qubit’s state.

    About the Author

    AutomationGlance ethos

    Anup Dharangutti

    Test automation specialist and quantum enthusiast focused on making technical tools approachable for newcomers and practitioners.

    Building at AutomationGlance — concise, human-friendly resources for automation and emerging tech. Personal site: dharangutti.in.

    Why this playground

    Created to help you sketch DSL circuits quickly, visualize them, and iterate without heavy frameworks. Designed to stay lightweight, mobile-friendly, and safe for experimentation.