Q-Day

Also known as: Y2Q

On this page 7

Q-Day is the anticipated moment when a cryptographically relevant quantum computer first becomes able to break the public-key cryptography that protects most digital communication today, above all RSA and elliptic-curve schemes. In quantum security, the term marks a deadline rather than a calendar date: nobody knows exactly when it will arrive, but every migration plan is measured against it. The synonym Y2Q, short for “years to quantum”, deliberately echoes the Y2K problem, although Q-Day differs in one crucial way: its date is unknown in advance.

Q-Day matters for quantum computing because it turns an engineering milestone into a security event. Once a sufficiently large, error-corrected machine can run Shor’s algorithm at scale, any recorded traffic or long-lived signature protected only by classical public-key algorithms becomes retroactively vulnerable.

Why Q-Day breaks public-key cryptography

Q-Day breaks public-key cryptography because the hard mathematical problems behind RSA, Diffie-Hellman and elliptic-curve cryptography all reduce to finding hidden periods, which Shor’s algorithm solves in polynomial time. Classical computers need sub-exponential or exponential time for integer factorization and the discrete logarithm problem, which is why a 2048-bit RSA key is considered safe today.

A quantum computer running Shor’s algorithm uses the quantum Fourier transform to extract the period of a modular function, and from that period it recovers the private key. The attack is not a faster brute-force search: it changes the complexity class of the problem. That is why key length increases do not help against it, while they remain an effective defense for symmetric ciphers.

Symmetric cryptography and hash functions are affected far less. Grover’s algorithm gives at most a quadratic speedup for key search, and in practice that speedup is reduced further because the search cannot be parallelized efficiently. The following table summarizes the exposure of common primitives.

PrimitiveQuantum attackEffect at Q-DayTypical response
RSA-2048Shor’s algorithmPrivate key recoverableReplace with ML-KEM or ML-DSA
ECDH and ECDSA (P-256)Shor’s algorithmPrivate key recoverableReplace with ML-KEM or ML-DSA
Finite-field Diffie-HellmanShor’s algorithmShared secret recoverableMove to hybrid key exchange
AES-128Grover’s algorithmSecurity margin reducedPrefer AES-256 for long-term data
AES-256Grover’s algorithmRemains strongNo change required
SHA-256 and SHA-3Grover and collision searchModest reductionKeep or use larger outputs
Exposure of common primitives at Q-Day

What a machine needs to reach Q-Day

Reaching Q-Day requires fault-tolerant logical qubits, not merely many physical qubits. Today’s processors contain hundreds to a few thousand noisy physical qubits, whereas breaking RSA-2048 is estimated to need thousands of logical qubits running billions of gate operations with very low error rates. Each logical qubit is built from many physical qubits through quantum error correction, such as the surface code.

Published resource estimates have fallen considerably over the past decade as algorithms and error-correction schemes improved. Early estimates spoke of hundreds of millions of physical qubits; more recent analyses suggest that roughly one million noisy qubits running for about a week could factor a 2048-bit modulus under favorable hardware assumptions. These figures depend heavily on gate fidelity, clock speed and connectivity, so they should be read as orders of magnitude, not forecasts.

FactorWhat it measuresWhy it matters for Q-Day
Physical error rateErrors per gate operationLower rates need fewer qubits per logical qubit
Logical qubit countError-corrected qubits availableShor’s algorithm needs thousands
Gate speedOperations per secondDetermines whether an attack takes hours or months
Magic state productionRate of non-Clifford resourcesOften the main bottleneck in estimates
Algorithm improvementsQubits and gates per key sizeCan pull Q-Day closer without new hardware
Hardware factors that move the Q-Day estimate

Q-Day is closely tied to several neighboring ideas, and each describes a different part of the same risk. The cryptographically relevant quantum computer is the machine itself, harvest now, decrypt later is the attack that makes Q-Day dangerous before it arrives, and Mosca’s theorem is the planning rule that tells organizations when they must start migrating.

ConceptWhat it describesRelationship to Q-Day
Cryptographically relevant quantum computerA machine able to break real keysIts first appearance defines Q-Day
Harvest now, decrypt laterRecording ciphertext for future decryptionMoves the impact of Q-Day into the present
Mosca’s theoremShelf life plus migration time versus threat timeTurns Q-Day into a migration deadline
Quantum-safe migrationReplacing vulnerable algorithmsThe defensive program completed before Q-Day
Crypto-agilityAbility to swap algorithms quicklyReduces the damage if Q-Day arrives early
How Q-Day relates to neighboring terms

Mosca’s inequality is the most practical lens. If the time data must stay secret plus the time needed to migrate exceeds the time until Q-Day, the organization is already exposed. A medical record that must remain confidential for 25 years is at risk today if a capable machine could appear within that window.

Preparing for Q-Day

Preparation for Q-Day starts with a cryptographic inventory and ends with deployed post-quantum algorithms. NIST finalized ML-KEM, ML-DSA and SLH-DSA as FIPS 203, 204 and 205 in 2024, and government programs such as CNSA 2.0 set transition deadlines around 2030 to 2035 for national security systems.

  • Inventory first: locate every use of RSA, Diffie-Hellman and elliptic curves, including in firmware, certificates and third-party libraries.
  • Prioritize by data lifetime: protect long-lived secrets and key exchange before short-lived authentication.
  • Deploy hybrid key exchange: combine a classical and a post-quantum algorithm, as X25519MLKEM768 does in TLS 1.3.
  • Plan signature migration: code signing and root certificates have long lifetimes and slow replacement cycles.
  • Build crypto-agility: abstract algorithm choices so they can change without redesigning systems.

The following decision table matches common situations to a sensible response.

SituationRecommended actionReason
Long-term confidential dataAdopt hybrid key exchange nowExposed to harvest now, decrypt later
Embedded devices with 15-year lifeShip post-quantum firmware signingDevices outlive the likely Q-Day window
Short-lived session authenticationMigrate after key exchangeForgery requires a live quantum attack
Legacy systems without updatesIsolate and wrap in a quantum-safe tunnelReplacement may take years
Q-Day readiness decisions

Uncertainty and common misconceptions about Q-Day

Predictions of Q-Day vary widely, and no credible expert gives a precise date. Expert surveys typically place a meaningful probability within the next 10 to 20 years, but the spread is large and depends on assumptions about engineering progress. Treating the uncertainty as a reason to wait is the most common strategic mistake.

  • Q-Day will not be announced: a capable actor may keep the capability secret, so the real date could pass unnoticed.
  • Qubit counts alone are misleading: a headline figure of physical qubits says little about logical capacity.
  • Not all cryptography falls: symmetric encryption and hashes remain usable with adequate key sizes.
  • Migration is slow: past transitions, such as retiring SHA-1, took more than a decade.

Stripped to the essentials

Most secure websites, banking apps and messaging services rely on locks whose keys are practically impossible to guess with ordinary computers. Q-Day is the day a large enough quantum computer can pick those locks. Nobody knows the exact date, and it might pass without a public announcement.

The danger is not only in the future. Someone can copy locked messages today and open them once the machine exists. That is why experts recommend changing the locks well before Q-Day, using new methods designed to withstand quantum computers.

Where it is applied

A national health insurer stores patient records that must remain confidential for at least 30 years, and its data travels between hospitals over TLS connections secured with elliptic-curve key exchange. During a risk review, the security team applies Mosca’s theorem: a 30-year confidentiality requirement plus an estimated six-year migration clearly exceeds the most cautious estimates of the time to Q-Day.

The team builds a cryptographic inventory covering 1,200 applications, enables hybrid X25519MLKEM768 key exchange on its external gateways within the first year and schedules certificate migration to ML-DSA once its certificate authority supports it. The outcome is that newly recorded traffic is protected against harvest now, decrypt later, while the slower parts of the migration continue on a documented timeline.