How much noise can
a quantum algorithm take?

Research prototype. We simulated three classic quantum algorithms under increasing hardware noise to see where each one breaks. Everything here comes from software simulation, not from a real quantum computer.

Discuss a research project ↗

Question

Real quantum computers make small errors on every gate. How does that error rate change the chance that an algorithm gives the right answer, and how quickly does the tolerance shrink as circuits get bigger?

Method

  • Three benchmark circuits written in Q#: GHZ state preparation (2 to 12 qubits), Grover search (2 to 5 qubits) and quantum teleportation.
  • Depolarizing noise applied to gates at eight strengths from 0% to 5%, with 1,000 runs per data point and a fixed random seed so results can be repeated.
  • 95% confidence bands on every curve (Wilson score intervals).
  • Fault-tolerant cost estimates from the Microsoft Resource Estimator for Grover search.

Results

GHZ states hold up well. With 12 qubits and 1% error per gate, all qubits still agree about 80% of the time.

Line chart: probability that all GHZ qubits agree falls as gate error rises from 0% to 5%, faster for larger circuits
GHZ state: success against gate error, 2 to 12 qubits · simulation

Grover search is far more fragile. With 5 qubits and 1% error, the chance of finding the marked item falls from 100% to about 24%.

Line chart: probability that Grover search finds the marked item falls as gate error rises, with 5-qubit search falling fastest toward random guessing
Grover search: success against gate error, 2 to 5 qubits · simulation

The error rate a circuit can tolerate while still succeeding half the time drops as it grows. For Grover search it falls from at least 5% at 2 qubits to 0.25% at 5 qubits.

Line chart: the largest gate error that keeps success at or above 50% shrinks as the number of qubits grows, for GHZ and Grover
Highest tolerated error rate against circuit size · simulation

Takeaway

Bigger quantum algorithms need much cleaner hardware, or error correction. The resource estimates show the price of correction: most of the physical qubits go to the factories that produce the special states needed for certain gates, not to the algorithm itself.

Stack

  • Q# and the open-source Microsoft Quantum Development Kit (QDK) simulator.
  • Python, pandas and matplotlib for experiments and charts.
  • pytest checks that every circuit is correct without noise and gets worse with noise.

Status and limits

Research prototype. Results are from simulation with one noise model (depolarizing) and small circuits. They are not measurements from quantum hardware. Elaichix is not affiliated with or endorsed by Microsoft; we use its open-source tools.