Using MythicalsThe CLI
Scripts and one-shot runs
Running mythicals in shell scripts and CI: measuring circuits, piping OpenQASM and seeding.
Every mythicals command prints to stdout and exits, so it drops straight into a script or a CI job — no window, and nothing to answer.
mythicals sim bell --shots 4096In a script
Loop over the built-in circuits and keep each histogram:
for c in super bell ghz grover; do
mythicals sim "$c" --shots 2048 > "$c.txt"
donePiping OpenQASM
qasm writes OpenQASM 3 to stdout, so you can save it or pass it to another tool:
mythicals qasm ghz > ghz.qasm
mythicals qasm grover | my-transpilerA remote backend
Point a run at your own OpenQASM endpoint, and keep the token in the environment rather than the script:
mythicals sim bell --shots 4096 \
--backend "$QPU_URL" --token "$QPU_TOKEN"The endpoint takes {openqasm, shots} and returns {counts}; your credentials stay on the machine that runs mythicals. See Keys in the terminal.
Seeding
mythicals seed prints a fresh quantum random hex seed for a job:
SEED=$(mythicals seed --bits 128)