osiris-cli jobs, and connect GitHub/Zenodo.Sign In / Get StartedBuild, simulate, and verify quantum programs with OSIRIS AI.
- 1Prompt
Write DNA-Lang or OpenQASM 3.0, pick a starter, or ask OSIRIS Copilot (signed in) to draft or refactor a circuit.
- 2Run
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.
- 3Verify
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”.
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.
| Circuit | Passes | Depth | 2Q | 3Q | Ops | Fitness |
|---|---|---|---|---|---|---|
| Baseline (as lowered) | — | 23 | 8 | 3 | 31 | 163.31 |
| Fixed pipeline | cancel-inverses → fuse-rotations → commute-schedule → cancel-inverses | 15 | 8 | 3 | 27 | 155.27 |
| Search best (gen 2) | cancel-inverses → commute-schedule | 15 | 8 | 3 | 27 | 155.27 |
Depth 23 → 15 · 2Q 8 → 8 · ops 31 → 27
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];