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 environment for writing and executing OpenQASM 3.0 quantum programs. Type your circuit code, click Run, and see the resulting quantum states — probabilities, amplitudes, and basis vectors — displayed instantly. No local installation required.

Quickstart

Write and run your first quantum circuit in under five minutes.

Using the editor

Learn the editor shortcuts, tab indentation, and line numbers.

Sharing circuits

Generate a permanent URL to share your OpenQASM code with anyone.

OpenQASM examples

Explore Bell state, teleportation, Shor’s algorithm, and more.

How it works

1

Open the playground

Navigate to the playground in your browser. The editor is pre-loaded with a Bell state example so you can see the format immediately.
2

Write or paste OpenQASM 3.0 code

Use the built-in code editor with line numbers. Press Tab to indent, Escape to exit the editor. Or pick a built-in example from the Examples menu.
3

Run your circuit

Click the Run button. Your code is sent to the remote quantum simulator. Results appear on the right panel as quantum states with probabilities and complex amplitudes.
4

Share your work

Click Share to save your circuit and copy a permanent URL. Anyone with the link can open and re-run your circuit.

Key features

Quantum state visualization

View each basis state with its probability and complex amplitude. Sort by probability or index order.

Curated algorithm examples

Bell state, quantum teleportation, Deutsch-Jozsa, QPE, Grover’s, Shor’s, and QSP — all ready to run.

Persistent snippet sharing

Every shared circuit gets a unique URL at /p/:id that persists indefinitely.

Deploy your own instance

Self-host with Vercel and Google Cloud Run using your own simulator backend.
The playground supports up to 12 qubits. For larger circuits or production workloads, deploy your own instance of the quasar simulator and connect it via the GOOGLE_CLOUD_SERVICE_URL environment variable.

Build docs developers (and LLMs) love