Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/itsubaki/qasm-playground/llms.txt

Use this file to discover all available pages before exploring further.

OpenQASM Playground is a browser-based tool for writing and executing OpenQASM 3.0 quantum programs. You type circuit code into the built-in editor, click Run, and the playground sends your program to a remote quantum simulator. Results are returned as a list of quantum states — each showing its basis string, probability, and complex amplitude — directly in the browser. There is nothing to install and no account required to get started.

Who it’s for

The playground is useful for anyone working with quantum programs:
  • Learners exploring quantum computing concepts through hands-on circuits, without needing a local development environment
  • Researchers prototyping algorithms — Bell state, quantum teleportation, Grover’s, Shor’s, and more — and inspecting the resulting state distributions
  • Developers integrating OpenQASM into workflows who want a fast way to test circuits before running them on hardware or larger simulators

Key capabilities

  • Browser-based editor with line numbers, tab indentation, and syntax support for OpenQASM 3.0
  • Remote simulation via the quasar backend, supporting circuits up to 12 qubits
  • Quantum state output showing each basis state with its probability and complex amplitude (real and imaginary parts)
  • Built-in examples covering foundational algorithms: Bell state, quantum teleportation, Deutsch-Jozsa, quantum phase estimation, Grover’s algorithm, Shor’s algorithm, and quantum signal processing
  • Persistent sharing — save any circuit to a unique URL that anyone can open and re-run
Bit strings in the output are displayed in declaration order (MSB-first). Circuits are limited to 12 qubits; additional constraints may apply depending on the circuit structure.
OpenQASM Playground is built on top of a family of open-source Go libraries. Each project is independently usable.

itsubaki/q

A quantum computing simulator written in Go. Provides the core qubit and gate primitives used throughout the stack.

itsubaki/qasm

An OpenQASM 3.0 parser and simulator built on top of itsubaki/q. Executes QASM programs directly from source text.

itsubaki/quasar

A quantum simulator exposed as an HTTP service. The playground sends your code here via POST /api/simulate and receives the state vector in response.

Build docs developers (and LLMs) love