Simulation & Execution

Once you have built your circuit, you need to execute it. MimiqCircuits offers two primary paths: running small simulations locally on your machine or submitting large-scale jobs to the QPerfect cloud.

Local Simulation

Perform exact statevector simulations directly on your local machine using the Quantanium backend. Ideal for debugging and small circuits.

Quantanium
Remote Execution

Connect to the QPerfect cloud via MimiqConnection to access high-performance backends like MIMIQ-CIRC (Tensor Network types) and MIMIQ-STIM (Clifford).

Execution on MIMIQ

Understanding Sampling

When measuring a quantum circuit, the result is probabilistic. To obtain an estimate of the output distribution, the circuit must be executed multiple times (sampled).

For unitary circuits (gates, no intermediate measurements), the final statevector can be computed once and then sampled efficiently. However, if the circuit contains non-unitary operations (like intermediate measurements or reset operations) that affect the subsequent path of execution, the simulation state might change in each shot. This typically requires re-simulating the circuit for every sample, which can be computationally more expensive than sampling from a final statevector.