Mitiq: Making Noisy Quantum Computers Useful
Open source error mitigation for the NISQ era
The Problem
Today's quantum computers are noisy. Really noisy. Gates fail, qubits decohere, and results drift. This "NISQ" (Noisy Intermediate-Scale Quantum) era means raw quantum results are often useless.
You have two choices: wait for fault-tolerant quantum computers (years away), or mitigate errors in software. Mitiq chose the second path - making today's noisy hardware actually useful.
How It Works
Mitiq implements several error mitigation techniques:
Zero-Noise Extrapolation (ZNE) - Run your circuit at different noise levels, then extrapolate to zero noise. Like measuring a trend and predicting the ideal case.
Probabilistic Error Cancellation (PEC) - Learn the noise model, then probabilistically cancel it out. More expensive but more accurate.
Clifford Data Regression (CDR) - Train a model on "easy" circuits where you know the answer, then apply corrections to hard circuits.
Digital Dynamical Decoupling (DDD) - Insert pulse sequences that refocus errors, like NMR echo techniques.
Who's Using It
- IBM Quantum users improving results on real hardware
- Research groups publishing papers with mitigated results
- Quantum startups building applications that actually work
- National labs running chemistry simulations
- Anyone tired of garbage results from noisy QPUs
Code Walkthrough
import mitiq
from mitiq import zne
# Your noisy quantum circuit (any framework)
def execute(circuit):
# Run on real hardware or noisy simulator
return noisy_result
# Apply zero-noise extrapolation
mitigated_result = zne.execute_with_zne(
circuit,
execute,
scale_noise=mitiq.zne.scaling.fold_global,
factory=mitiq.zne.inference.RichardsonFactory([1, 2, 3])
)
print(f"Noisy: {noisy_result}, Mitigated: {mitigated_result}")
# Mitigated result is closer to ideal!
Results & Benchmarks
Why Mitiq matters:
- Works with Qiskit, Cirq, pyQuil, Braket - any framework
- Can improve results by 10-100x on real hardware
- Backed by Unitary Fund (non-profit)
- Active community and development
- Essential tool for NISQ-era quantum computing