Using MythicalsLocal simulator
Choosing a circuit
How many qubits fit your memory, which gates to use, and when to pick a backend.
What fits
A simulation holds the full statevector in memory: 2^n complex numbers for n qubits. Memory, not speed, is what limits how large a circuit the simulator can run on your computer.
| Memory free | Qubits you can simulate |
|---|---|
| 8 GB | about 26 qubits |
| 16 GB | about 27 qubits |
| 32 GB | about 28 qubits |
| 64 GB or more | 29 qubits and up |
Each extra qubit doubles the memory. A circuit that does not fit fails to allocate, so run it on a remote backend instead.
Gates
Mythicals builds circuits from a fixed gate set, so write them with those gates; the simulator applies each exactly. The reference calls them "basis gates". Deep circuits run slower but stay exact. When a circuit is too large for memory, switch to a remote backend for the hard parts.
When to use a backend
A remote backend runs a circuit the local simulator cannot: more qubits than memory allows, or real quantum hardware. You reach one through your own provider account, and Mythicals submits the OpenQASM to it.
If a backend rejects a circuit, Mythicals shows the error it returned: see a backend rejects a circuit.
--shots sets how many times a circuit is measured, when exact probabilities are not enough.