Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Glossary

Big O notation

A notation describing an upper bound on how a quantity grows for sufficiently large inputs, ignoring constant factors. It is used to summarize algorithmic resource scaling.

Also called O notation, asymptotic notation

Edition released Entry updated Coverage: Overview
On this page

Plain-language explanation

O(n squared) means the resource is eventually bounded by a constant times n squared. It does not mean the exact count equals n squared, nor does it always give the tightest possible bound. Other notations express lower or matching bounds. When reading a quantum claim, identify what n measures and whether the counted resource is queries, gates, time, memory or precision dependence.

This simple literacy skill makes technical headlines more intelligible. It prevents a square-root query statement from being misread as an exact wall-clock prediction.

Example

A cost of 7n squared + 20n + 100 is O(n squared). A cost of n is also technically O(n squared), though the latter is a loose upper bound. For comparisons, tight bounds and the underlying assumptions are more informative than a big-O label alone.

Scope and limits

Big O hides constants and lower-order terms. Those can matter greatly at practical sizes, especially when comparing different hardware technologies.

Polynomial time is a related idea. Polynomial time is a class of scaling behavior. Big O is the notation that can express a particular polynomial upper bound or many other kinds of growth.

Sources

  • Ronald de Wolf, CWI, QuSoft and University of Amsterdam · Reference · homepages.cwi.nl
    Verification scope

    Recorded source check ·

    Algorithms, complexity, simulation and mathematical background

    Version observed dated August 27, 2026; educational synthesis, not experimental performance evidence.

  • John Preskill, Caltech · Reference · preskill.caltech.edu
    Verification scope

    Recorded source check ·

    Quantum query methods, Fourier methods, phase estimation and algorithms

    Algorithm guarantees depend on access and resource models.