Using MythicalsLocal simulator
A local OpenQASM endpoint
The Local endpoint: an OpenQASM address on this computer that other tools can submit circuits to.
The Local endpoint lets other programs on this computer, such as a notebook or a script, run circuits through Mythicals over one OpenQASM address and one token, instead of each wiring up a simulator.
Switch it on
Settings > Accounts, under Local endpoint: switch on "Serve circuits on this computer". It is off by default. Once on, it shows its address and token, each with a button to copy it.
| Address | http://127.0.0.1:8642/v1 |
| Token | sent as Authorization: Bearer <token>; kept in the system's keychain |
Set local_port in settings.json to use another port.
What it answers
GET /v1/backendslists the local simulator and every backend you have connected, each once.POST /v1/jobstakes OpenQASM and a shot count, runs it on the chosen backend, and returns the counts as JSON.
Nothing else is served. It listens on 127.0.0.1 only, so other computers cannot reach it, and it answers nothing without the token. A circuit run on the local simulator is free; one sent to a remote backend is billed by your provider, as your own runs are.