Quantum key distribution

Also known as: QKD

On this page 7

Quantum key distribution (QKD) is a method for two distant parties to establish a shared secret key by exchanging quantum states, usually single photons, so that any attempt to intercept them disturbs the states and becomes detectable. In quantum communication, QKD is the most mature application: it is deployed in fiber networks and has been demonstrated over satellite links.

QKD does not encrypt data itself. It only distributes keys, which are then used with a classical cipher such as the one-time pad or AES. Its appeal within quantum computing and quantum-safe security is that its secrecy relies on physical laws rather than computational hardness, so a future quantum computer cannot break recorded key exchanges retroactively.

How quantum key distribution works

Quantum key distribution works by encoding random bits in non-orthogonal quantum states that an eavesdropper cannot copy or measure without error, as guaranteed by the no-cloning theorem and measurement disturbance. Alice sends the states over a quantum channel, and Bob measures them; both then talk over an authenticated classical channel to turn the raw data into a key.

In the classic BB84 protocol, Alice encodes each bit in one of two randomly chosen polarization bases. Bob also picks a basis at random, and afterward the two publicly compare bases and keep only matching positions, a step called sifting. They then sacrifice a sample to estimate the quantum bit error rate (QBER), which reveals how much information an eavesdropper could hold.

The table below lists the processing steps that convert transmitted photons into a usable key.

StageChannel usedPurpose
Quantum transmissionQuantum channelSend random bits in random bases
SiftingClassical, authenticatedDiscard positions with mismatched bases
Parameter estimationClassical, authenticatedMeasure the error rate and bound leakage
Error correctionClassical, authenticatedReconcile differences between the two keys
Privacy amplificationClassical, authenticatedHash out any partial eavesdropper knowledge
Key confirmationClassical, authenticatedVerify that both final keys match
Stages of a QKD session

If the measured QBER exceeds a protocol-specific threshold, about 11 percent for BB84 under standard proofs with one-way processing, the parties abort because no secure key can be extracted. Below that threshold, privacy amplification shortens the key enough to make the eavesdropper’s information negligible in a composable security sense.

Main families of QKD protocols

QKD protocols fall into families that differ in how states are prepared and measured and in what they assume about the devices. Each family trades implementation difficulty against distance, key rate or resistance to hardware attacks.

FamilyCore ideaMain advantage
Prepare-and-measure (BB84)Single photons in two basesSimple, well-proven security
Decoy-state QKDWeak laser pulses of varying intensityPractical sources without true single photons
Entanglement-based (E91)Shared entangled photon pairsSource can be untrusted
MDI-QKDUntrusted relay performs Bell-state measurementRemoves all detector side channels
Twin-field QKDSingle-photon interference at a middle nodeLonger reach on fiber
Continuous-variable QKDField quadratures with coherent detectionUses standard telecom components
Major protocol families

Device-independent QKD goes furthest by deriving security from a violation of a Bell inequality, but it demands very high detection efficiency and currently yields extremely low key rates. Most commercial systems use decoy-state BB84 variants or continuous-variable schemes.

Distance, key rate and the role of photon loss

The practical reach of QKD is limited by photon loss, because quantum signals cannot be amplified without destroying their quantum properties. Standard telecom fiber loses roughly 0.2 dB per kilometer at 1550 nm, so the secret key rate falls exponentially with distance.

The following table gives indicative orders of magnitude; real figures depend on detectors, source quality, protocol and finite-key effects.

Link typeTypical reachTypical key rate
Metropolitan fiberUp to about 50 kmKilobits to megabits per second
Intercity fiberAbout 100 to 200 kmBits to kilobits per second
Twin-field laboratory fiberSeveral hundred kmVery low, bits per second or less
Low-orbit satellite linkOver 1,000 kmLimited by pass time and weather
Indicative performance by link type

Without a working quantum repeater, long networks rely on trusted nodes, where keys are decrypted and re-encrypted at intermediate sites. That approach extends reach but means each node must be physically secured and trusted, which weakens the end-to-end argument.

QKD compared with post-quantum cryptography

QKD and post-quantum cryptography (PQC) both answer the threat that quantum computers pose to RSA and elliptic-curve key exchange, but they do so in fundamentally different ways. PQC replaces the mathematics, while QKD replaces the key exchange mechanism with physics.

AspectQuantum key distributionPost-quantum cryptography
Security basisQuantum physicsHard mathematical problems
InfrastructureDedicated optical hardwareSoftware on existing networks
DistanceLimited without trusted nodesUnlimited over the internet
AuthenticationStill requires classical authenticationProvides signatures natively
StandardizationETSI and ITU-T specificationsNIST standards such as ML-KEM
QKD and PQC side by side

Several security agencies currently favor PQC as the primary migration path and treat QKD as a niche option, citing cost, distance limits and implementation risks. Many experts view the two as complementary, with QKD reserved for high-value fixed links.

Implementation risks and common misconceptions

The theoretical security of QKD does not automatically transfer to real equipment, because hardware imperfections open side channels that ideal proofs do not model. Several published attacks have targeted detectors rather than the protocol itself.

  • Detector blinding attacks can let an eavesdropper control single-photon detectors without raising the error rate.
  • Multi-photon pulses from weak lasers enable photon-number splitting unless decoy states are used.
  • QKD is not unconditionally secure without authentication; the classical channel needs a pre-shared key or signatures.
  • QKD offers no protection against denial of service, since an attacker can simply cut or flood the link.
  • Finite-key effects reduce the real key rate below asymptotic estimates for short sessions.

The simple explanation

Quantum key distribution is a way for two people to agree on a secret password using tiny particles of light. The trick is that these particles behave like soap bubbles: anyone who touches them on the way changes them.

So if a spy tries to look at the light, the two people notice unusual errors when they compare notes, and they throw that password away. If the errors stay low, they can trust that nobody else knows the key. They then use that key to lock and unlock their messages with ordinary encryption.

How it is used in practice

A national bank operates two data centers about 40 km apart in the same metropolitan area and replicates transaction records between them over dark fiber. To protect that link against harvest now, decrypt later attacks, the bank installs a pair of decoy-state BB84 QKD devices on a dedicated fiber strand next to its data link.

The QKD system produces secret key material at a few tens of kilobits per second, and the link encryptors refresh their AES-256 keys every minute from that pool. Operators monitor the QBER, which stays near 2 percent in normal operation; during a maintenance incident a disturbed fiber raises it sharply, and the system halts key generation automatically until engineers restore the line. The bank also runs a post-quantum key exchange in parallel, so the link stays protected even if one layer fails.