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.
| Primitive | Quantum attack | Effect at Q-Day | Typical response |
|---|---|---|---|
| RSA-2048 | Shor’s algorithm | Private key recoverable | Replace with ML-KEM or ML-DSA |
| ECDH and ECDSA (P-256) | Shor’s algorithm | Private key recoverable | Replace with ML-KEM or ML-DSA |
| Finite-field Diffie-Hellman | Shor’s algorithm | Shared secret recoverable | Move to hybrid key exchange |
| AES-128 | Grover’s algorithm | Security margin reduced | Prefer AES-256 for long-term data |
| AES-256 | Grover’s algorithm | Remains strong | No change required |
| SHA-256 and SHA-3 | Grover and collision search | Modest reduction | Keep or use larger outputs |
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.
| Factor | What it measures | Why it matters for Q-Day |
|---|---|---|
| Physical error rate | Errors per gate operation | Lower rates need fewer qubits per logical qubit |
| Logical qubit count | Error-corrected qubits available | Shor’s algorithm needs thousands |
| Gate speed | Operations per second | Determines whether an attack takes hours or months |
| Magic state production | Rate of non-Clifford resources | Often the main bottleneck in estimates |
| Algorithm improvements | Qubits and gates per key size | Can pull Q-Day closer without new hardware |
Q-Day and related concepts in quantum security
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.
| Concept | What it describes | Relationship to Q-Day |
|---|---|---|
| Cryptographically relevant quantum computer | A machine able to break real keys | Its first appearance defines Q-Day |
| Harvest now, decrypt later | Recording ciphertext for future decryption | Moves the impact of Q-Day into the present |
| Mosca’s theorem | Shelf life plus migration time versus threat time | Turns Q-Day into a migration deadline |
| Quantum-safe migration | Replacing vulnerable algorithms | The defensive program completed before Q-Day |
| Crypto-agility | Ability to swap algorithms quickly | Reduces the damage if Q-Day arrives early |
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.
| Situation | Recommended action | Reason |
|---|---|---|
| Long-term confidential data | Adopt hybrid key exchange now | Exposed to harvest now, decrypt later |
| Embedded devices with 15-year life | Ship post-quantum firmware signing | Devices outlive the likely Q-Day window |
| Short-lived session authentication | Migrate after key exchange | Forgery requires a live quantum attack |
| Legacy systems without updates | Isolate and wrap in a quantum-safe tunnel | Replacement may take years |
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.