Mythicals®

DevelopersDevelopers

Building on Mythicals

The engine and CLI: scripting circuits, exporting OpenQASM and adding a remote backend.

Everything the app does is available from the mythicals command, so your program can drive it from a script. The same state-vector simulator runs underneath, on your own computer, offline.

Pick one

  • You want measurement counts. Use mythicals sim. It simulates a circuit and prints the counts, as text or JSON.
  • You want the circuit as code. Use mythicals qasm. It prints the circuit as OpenQASM 3 to run elsewhere.
  • You want to run on real hardware. Use mythicals sim --backend. It sends the circuit to a remote OpenQASM endpoint and returns the counts.

From a script

mythicals sim runs without asking anything, so it is easy to call from a script. For output your program can parse, ask for JSON:

mythicals sim bell --shots 1000 --output json

The JSON lists the counts for each measured outcome and the total number of shots. Pipe it into whatever reads your results. To get the circuit as code instead of running it, export OpenQASM 3:

mythicals qasm bell

Every command and option is on the CLI reference: sim, qasm, draw, seed and list.

The local simulator

By default every circuit runs on the built-in state-vector simulator, on your own computer, offline:

mythicals sim bell

It supports the gates H, X, Y, Z, S, T, CX, CZ, CCZ, RX, RY, RZ and SWAP, and measures over the shots you choose. It handles roughly 26 qubits before memory runs short. See the gate reference.

A remote backend

To run on real hardware or a hosted simulator, add a remote OpenQASM-compatible endpoint and point a run at it:

mythicals sim bell --backend https://your-endpoint/run

Mythicals posts the job to your endpoint and reads the counts back:

DirectionBody
Mythicals sendsPOST with JSON {openqasm, shots}
the endpoint repliesJSON {counts} — a map of outcome to count
credentialssent as a header you configure; stored locally
costnone from Mythicals — you pay the provider directly

Any endpoint that speaks this contract works, so you can put your own gateway to IBM Quantum or AWS Braket behind it. Mythicals adds no markup, and the credentials never leave your computer except as the header the endpoint asks for.

For where credentials are stored, see Remote backends.