Mythicals®

Backends & extending

Remote endpoints

Running circuits on a remote OpenQASM-compatible endpoint: adding one, the request it expects, and choosing it per run.

Mythicals runs every circuit on the built-in simulator by default. A backend lets it run on something else: real quantum hardware or a hosted simulator, reached by URL. Backends are listed in backends.json in your data folder, and each is just an endpoint URL and the credentials it needs.

Adding a backend

From the terminal, point a run at an endpoint:

mythicals sim bell --backend https://your-endpoint/run
mythicals sim ghz --backend https://your-endpoint/run --shots 2000
mythicals qasm bell
FieldWhat
urlthe endpoint that runs the circuit
headeran auth header sent with each request
shotsthe default number of measurements
namewhat you call this backend
defaultuse this backend unless --backend overrides it
CommandDoes
mythicals listthe built-in circuits you can run
mythicals sim <circuit>run on the built-in local simulator
mythicals sim <circuit> --backend <url>run on a remote backend
mythicals qasm <circuit>print the OpenQASM 3 that would be sent
mythicals drawrun a verifiable fair draw

In the window, the Backends view lists your backends, with the built-in local simulator always present.

The endpoint contract

// Mythicals POSTs this to your endpoint:
{ "openqasm": "...OpenQASM 3 source...", "shots": 1000 }

// your endpoint replies with the counts:
{ "counts": { "00": 503, "11": 497 } }
  • The endpoint receives the circuit as OpenQASM 3 and the shot count, and returns a map of each measured outcome to its count.
  • Credentials go in a header you configure; they stay in your data folder and reach only this endpoint.
  • Put your own gateway to IBM Quantum or AWS Braket behind this contract.
  • There is no markup — the provider bills you directly.
  • Any OpenQASM-compatible endpoint works.

The request is plain HTTP with a JSON body, so any language can serve it. The list is read again when backends.json changes.

Choosing a backend

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

With no --backend, a run uses the built-in local simulator. Add --backend with the endpoint URL to run it remotely, and --shots to set the measurement count. Your default backend from settings is used when you name none.

The exact same circuit runs either way, so you can test on the simulator and then submit to hardware without changing anything.

Running offline

With no backend set, Mythicals needs no network at all. The simulator, QASM export, fair draw and quantum seed all run locally:

mythicals sim bell

Only a run with --backend reaches the network, and only your chosen endpoint.