Once you have OpenQASM code in the editor, you submit it to the remote quantum simulator by clicking Run. The simulator executes the circuit and returns the resulting quantum states, which appear in the right panel. This page explains the full lifecycle — from clicking Run through reading results and handling errors.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.
The Run button
The Run button is in the top-right area of the editor panel. It has a blue background and white label. Clicking it sends your code to/api/simulate as a JSON POST request and waits for the response.
The button is disabled while a simulation is in progress to prevent duplicate submissions.
Write or load your circuit
Enter OpenQASM code in the editor, or select an example from the Examples menu.
Click Run
Click the blue Run button. The button label disappears and a spinning loader icon takes its place while the simulation is running.
Wait for results
The right panel shows “Waiting for remote server…” during execution. This indicates that the request has been sent and the simulator is processing your circuit.
Loading state
While a simulation is running, the right panel displays a centered message:Waiting for remote server…The Run button also shows an animated spinner in place of its label. Both indicators clear as soon as the simulator responds, whether with results or an error.
Error handling
If the simulator returns a non-2xx HTTP response or a network error occurs, an error panel appears in the right panel instead of quantum states. The error panel contains:- An Error Details heading
- A preformatted block with the full error message, including the HTTP status code and any message returned by the server
Results panel toolbar
The results panel has two buttons that are always visible:| Button | Behavior |
|---|---|
| Sort | Toggles between index order (default) and probability-descending order |
| Copy | Copies all results as a formatted JSON string to your clipboard (or the error text when an error is shown) |
Sort mode
Clicking Sort cycles through two modes:- Index order (default): states appear in the order returned by the simulator
- Probability descending: states are sorted from highest to lowest probability