How MIMIQ™ works

From the exponential complexity of quantum mechanics to the compressed representations that make large-scale simulation possible

Start reading
01

Why quantum emulators?

Quantum computers promise exponential speedups for problems in chemistry, optimization, cryptography, and materials science. But today's quantum hardware is noisy, limited in qubit count, and expensive to access.

Before running on real hardware, researchers and engineers need a way to develop, test, and validate quantum algorithms — with full access to the quantum state, deterministic results, and no queue times.

A quantum emulator simulates the behavior of a quantum computer on classical hardware. Unlike a real quantum device, it gives you:

  • Complete access to amplitudes and state properties
  • Deterministic, reproducible results
  • Ideal and controllable noise models
  • No calibration drift or hardware errors
  • Unlimited availability and fast turnaround

The challenge is that simulating quantum systems on classical computers is fundamentally hard.

02

Simulating quantum systems is hard

The state of an n-qubit quantum computer lives in a Hilbert space of dimension 2n. Each additional qubit doubles the amount of information needed to describe the system.

Qubits Amplitudes Memory (complex128)
10 1,024 16 KB
20 1,048,576 16 MB
30 ~109 16 GB
40 ~1012 16 TB
50 ~1015 16 PB
300 ~1090 > atoms in the universe

A naïve classical simulation must store and manipulate all 2n complex amplitudes. At 50 qubits you need 16 petabytes of RAM — more than any computer on Earth. This is the exponential wall.

03

Statevector simulation

The most straightforward approach: store the full state vector |ψ⟩ as an array of 2n complex numbers. Apply each quantum gate as a unitary matrix multiplication.

This gives exact results — every amplitude is computed precisely. It's the gold standard for small circuits and the method most simulators use internally.

MIMIQ™’s statevector engine is one of the fastest available, exploiting low-level CPU instructions (AVX/SIMD), cache-aware memory layouts, and advanced circuit pre-conditioning to minimize gate count before execution.

Statevector simulation
|ψ⟩ = [α0, α1, α2, ..., α2n-1]

# Apply gate U to qubit k:
for each pair of amplitudes
  (αi, αj) where i,j differ in bit k:
    (αi, αj) ← U · (αi, αj)

Memory:  O(2n)
Time per gate:  O(2n)

Exact but limited: practical up to ~32 qubits on a workstation, ~42 on an HPC cluster. Beyond that, the exponential wall is insurmountable.

04

Clifford simulators

Not all quantum circuits are equally hard to simulate. Circuits composed entirely of Clifford gates (H, S, CNOT, and their relatives) can be simulated in polynomial time using the Gottesman–Knill theorem.

Instead of tracking 2n amplitudes, a Clifford simulator tracks n stabiliser generators — an exponentially compressed representation. This allows simulation of thousands of qubits in seconds.

Clifford simulation is essential for quantum error correction, where circuits are overwhelmingly Clifford.

What Clifford simulators can do

  • Simulate thousands of qubits
  • Polynomial time and memory
  • Perfect for error correction circuits

What they cannot do

  • Non-Clifford gates (T, arbitrary rotations)
  • Most quantum algorithms (Grover, VQE, QAOA…)
  • Universal quantum computation

Most interesting quantum algorithms require non-Clifford gates. We need a more general approach.

05

The simulation trade-off

Every simulator navigates a fundamental trade-off: generality vs. efficiency.

Full Hilbert space
2n dimensions
Efficiently
simulable
subset
Statevector: covers everything, but memory grows as 2n
Tensor networks: efficient for states with bounded entanglement
Clifford: highly efficient but limited to stabiliser states

The key insight: most physically relevant quantum states occupy a tiny corner of the full Hilbert space. Tensor networks exploit this structure.

06

The tensor network idea

Instead of storing the full 2n-dimensional state vector, decompose it into a network of smaller tensors connected by shared indices.

The amount of information flowing between tensors is controlled by the bond dimension χ. Low entanglement means small χ, and the state can be represented with far fewer parameters than 2n.

This is not an approximation for many important circuits — the Quantum Fourier Transform, many error-correction schemes, and variational circuits with limited entanglement have exact tensor network representations that are exponentially smaller than the full state vector.

Entanglement as a resource

The bond dimension χ captures how entangled neighboring parts of the system are. As entanglement grows, χ must grow to maintain accuracy — up to a maximum of 2n/2 (recovering the full state vector).

For circuits with bounded entanglement, tensor networks give exact results with polynomial resources. For highly entangled states, they still provide controllable approximations with fidelity guarantees.

But how do we actually compress a large object into smaller pieces while preserving the essential information? The answer is the singular value decomposition.

07

SVD: the engine of compression

The singular value decomposition (SVD) factorizes any matrix M = U Σ V, where Σ is a diagonal matrix of singular values ranked by magnitude. Discarding the smallest singular values gives the best possible low-rank approximation.

Strasbourg Cathedral: original, 95% compressed, 99.5% compressed
Strasbourg Cathedral — Left: original. Center: 95% of singular values discarded. Right: 99.5% discarded. The essential structure survives aggressive compression.

For images

An image stored as a matrix of pixel values can be reconstructed from a handful of singular values. Discarding 95% of the data barely changes the visual result.

For quantum states

A quantum state reshaped into a matrix can be compressed the same way. The singular values encode the entanglement spectrum — small singular values correspond to negligible quantum correlations that can be safely truncated.

08

Matrix Product States

Apply SVD sequentially along the qubit chain, and the quantum state decomposes into a Matrix Product State (MPS): a chain of small tensors, each connected to its neighbors by bonds of dimension χ.

A1
A2
A3
···
An
q1 q2 q3 qn
O(nχ2) Memory

Linear in qubit count, quadratic in bond dimension

O(nχ3) Time per gate

Polynomial operations per gate application

χ ≤ 2n/2 Bond dimension

Controlled accuracy: χ = 1 (product state) to exact

Gates are applied by absorbing them into the MPS tensors and re-compressing via SVD. MIMIQ converts every quantum circuit into a Matrix Product Operator (MPO) and contracts it into the MPS — the animation on the MIMIQ page shows this process in action.

09

MIMIQ™: the complete platform

MIMIQ™ combines all of these techniques into a single, production-grade quantum computing platform.

Multiple simulation backends

  • Statevector engine — exact simulation up to ~32 qubits, optimized with AVX/SIMD instructions and cache-aware layouts
  • MPS engine — large-scale simulation with thousands of qubits for entanglement-bounded circuits, controllable approximation for general circuits
  • Circuit pre-conditioning — automatic gate fusion, cancellation, and reordering before execution

Tested at scale

MIMIQ™ is benchmarked against the MQT Bench library: 28 algorithms, 70,000+ circuits, 2–130+ qubits. It achieves 100% accuracy for the vast majority — more than any other quantum platform.

Production-ready features

  • Ideal and noisy circuit simulation
  • Full access to state amplitudes, expectation values, and circuit fidelity
  • Dynamic circuits: mid-circuit measurements, reset, conditional logic
  • Large gate library with custom gate support
  • Python and Julia interfaces
  • Native OpenQASM v2/v3 support
  • Managed cloud or on-premises deployment

Why it matters

The combination of exact statevector (for small circuits), MPS (for large circuits), and Clifford (for error correction) means MIMIQ can handle any quantum circuit you throw at it — choosing the right backend automatically.

Ready to try MIMIQ™?

Run quantum algorithms at scale — with the speed, accuracy, and flexibility that only MPS-based simulation can deliver.