Skip to main content
Offline browser compilation & simulation work right away. Sign in to save workspaces, run cloud osiris-cli jobs, and connect GitHub/Zenodo.Sign In / Get Started

Build, simulate, and verify quantum programs with OSIRIS AI.

  1. 1
    Prompt

    Write DNA-Lang or OpenQASM 3.0, pick a starter, or ask OSIRIS Copilot (signed in) to draft or refactor a circuit.

  2. 2
    Run

    Run in browser executes the TypeScript engine in a Web Worker: no login, no API key, no network. Saved projects can also run on the osiris-cli worker when signed in.

  3. 3
    Verify

    Every browser run gets a SHA-256 receipt labelled SIMULATED (hardware=false). Check integrity on Verify & Ledger; publishing to GitHub or Zenodo needs explicit approval.

This panel collapses after your first edit or run. Reopen it any time with “How it works”.

adaptive_qec.dnaSIMULATED · hardware=falseUI thread (TypeScript fallback)
STALE · Run to refresh5q · depth 23 · 2Q 8MEASURED
q[0]|0⟩q[1]|0⟩q[2]|0⟩q[3]|0⟩q[4]|0⟩RYπ/3XHHHHHHHHXXXXRY-π/3
Syndrome-dependent correction: injected error vs matched controlMEASURED
injected X on q1
syndrome (q4 q3): 11
data qubits recovered to |000⟩: 100.0% of 1024 shots
counts: 11000:1024
control (no injected error)
syndrome (q4 q3): 00
data qubits recovered to |000⟩: 100.0% of 1024 shots
counts: 00000:1024

Ideal simulation, seed 42, bitstrings q4…q0. Correction is coherent (Toffoli-controlled by the syndrome ancillas); the compiler has no classical feed-forward. The control is the same organism without the inject_error call.

Seeded pass-ordering search (deterministic)MEASURED
seed 20261130 · population 12 · 10 generations · 38 orderings evaluated
CircuitPassesDepth2Q3QOpsFitness
Baseline (as lowered)—238331163.31
Fixed pipelinecancel-inverses → fuse-rotations → commute-schedule → cancel-inverses158327155.27
Search best (gen 2)cancel-inverses → commute-schedule158327155.27

Depth 23 → 15 · 2Q 8 → 8 · ops 31 → 27

EQUIVALENT · unitary (all basis states) · max |ΔU| = 2.22e-16 < 1e-7 after removing one global phase (UNITARY_EQUIVALENT)

fitness = 10·N2q + 20·N3q + depth + 0.01·Nops (lower is better; every count is measured by compileSource on the emitted OpenQASM 3.0). Passes: cancel-inverses (remove adjacent gate pairs whose product is the identity); fuse-rotations (merge adjacent same-axis rotations and phase gates); commute-schedule (re-order commuting gates and pack them into wire-disjoint layers). The search is a seeded genetic search over pass orderings; its initial population includes the fixed pipeline.

Optimized OpenQASM 3.0 (preview only; the editor is not changed)
OPENQASM 3.0;
include "stdgates.inc";
qubit[5] q;
bit[5] c;
ry(1.0471975511965976) q[0];
x q[1];
h q[3];
h q[4];
cx q[0], q[1];
cx q[0], q[2];
cz q[1], q[3];
cz q[0], q[3];
cz q[1], q[4];
cz q[2], q[4];
h q[3];
h q[4];
ccx q[3], q[4], q[1];
x q[4];
ccx q[3], q[4], q[0];
x q[4];
x q[3];
cx q[0], q[2];
ccx q[4], q[3], q[2];
cx q[0], q[1];
x q[3];
ry(-1.0471975511965976) q[0];
c[1] = measure q[1];
c[2] = measure q[2];
c[4] = measure q[4];
c[0] = measure q[0];
c[3] = measure q[3];