Quantum Computing
Advanced

Shor's Factoring Complexity

Time complexity for Shor's algorithm to factor an integer N on a quantum computer.

Formula

O((logN)3)O((\log N)^3)

Variables

NInteger to factorise

Example

RSA-2048: classical ≈ 10³⁰ ops; Shor's ≈ 10⁹ ops

Did You Know?

Shor's algorithm is the reason the world is racing to develop post-quantum cryptography before large-scale quantum computers arrive.

Share this formula