QuantumAtlas

Interactive Calculator · Security and Networks

QKD Key Rate and Distance Calculator

Model how fast a quantum key distribution link can make secret key as fiber gets longer, and where trusted nodes or repeaters become necessary.

Advanced
Presets

About 0.2 dB/km for standard telecom fiber and 0.16 dB/km for ultra-low-loss fiber.

Splitting the link into hops with trusted relay nodes that store the keys.

Channel loss

23.0 dB

0.5012% transmission

Secret key rate

435,707 bit/s

Decoy-state BB84, asymptotic model

Repeaterless limit

7,248,784 bit/s

PLOB upper bound for this channel

Trusted-node chain

14,025,887 bit/s

4 hops of 25.0 km

Reach

Maximum distance for 1 bit per second without relays: 270 km.

An AES-256 key is 256 bits, so one bit per second yields a fresh key every four minutes.

Trusted nodes extend the range but must be physically protected, because they hold the keys in the clear. Satellites and quantum repeaters aim to avoid that.

Secret key rate versus distance

10⁻³0.110100010⁵10⁷10⁹1002003004005006001 bit/s100 kmDistance (km)Secret key rate (bit/s)
Repeaterless limit (PLOB)Decoy-state BB84 (practical model)Trusted-node chain (4 hops)

The curves fall by a factor of ten for every 50 km of standard fiber. This exponential loss is why long-distance quantum communication needs trusted nodes, satellites, or repeaters.

Compute the secret key rate of decoy-state BB84 for a fiber link from loss, detector, and error parameters, compare it with the repeaterless PLOB limit and with a chain of trusted nodes, and find the maximum unrelayed distance.

What this calculator does

Quantum key distribution sends single photons through optical fiber and builds a shared secret key from the results. The physics gives the technology its security, but it also sets a harsh limit on distance: light in fiber loses about 0.2 decibels per kilometer, so every 50 kilometers the surviving fraction of photons drops by a factor of ten. A key rate that is megabits per second in a city falls to a few bits per second at 300 kilometers. Because quantum states cannot be amplified without destroying them, there is no simple fix. This calculator shows how steep the decline is and how different strategies change it.

You set the fiber length and attenuation, a fixed loss for connectors and optics, the clock rate of the source, the efficiency and dark-count rate of the detectors, and the optical misalignment error. It computes the total channel loss and three key rates. The first is a practical decoy-state BB84 rate from the standard asymptotic formula, optimized over the signal intensity. The second is the PLOB bound, the ultimate limit for any protocol without quantum repeaters, derived by Pirandola, Laurenza, Ottaviani, and Banchi in 2017. The third is the rate of a chain of trusted nodes, where the link is divided into hops and keys are relayed. It also reports the maximum distance at which the practical rate stays above one bit per second.

How to use it

The default settings model a 100 kilometer link over standard fiber with a 1 GHz source, detectors with 80 percent efficiency and 10 to the minus 7 dark counts per pulse, and a 1.5 percent misalignment error. The total loss is 23 dB, and the practical model gives about 440 kilobits per second, compared with a PLOB limit of about 7 megabits per second. The gap between practical and ultimate is typical, and it reflects imperfect detectors, error correction overhead, and the use of weak coherent pulses instead of ideal single photons. Now drag the distance to 200 kilometers. The practical rate falls to about 4 kilobits per second, a hundredfold decrease for a doubling of distance, because the loss doubles in decibels.

At 300 kilometers the practical model reaches zero: dark counts and background noise overwhelm the signal, and the secret key rate falls below one bit per second. The reach panel reports that the maximum distance with these parameters is about 270 kilometers. Try the Best detectors preset, with 95 percent efficiency and one-in-a-billion dark counts, together with the Ultra-low-loss fiber preset at 0.16 dB per kilometer: the reach extends past 450 kilometers, consistent in spirit with the 2018 experiment of Boaron and coauthors, who distributed keys over 421 kilometers of ultra-low-loss fiber at a few bits per second. Select Poor InGaAs detectors, with 15 percent efficiency and high dark counts, and watch the range shrink to about 130 kilometers.

Then use the trusted-node slider. Dividing a 300 kilometer link into four hops of 75 kilometers raises the end-to-end rate from zero to over a megabit per second, because each hop operates in the easy regime. This is how China's 2,000 kilometer backbone between Beijing and Shanghai works, with trusted relay nodes about every 30 to 100 kilometers. The cost is security: each relay holds the key in the clear, so it must be physically protected and trusted. The chart shows all three curves on a log scale and makes the exponential decay of the single-hop rate vivid.

Reading the result

The practical rate uses the standard decoy-state formula of Ma, Qi, Zhao, and Lo from 2005, building on the security analysis of Gottesman, Lo, Lütkenhaus, and Preskill from 2004. The secret key per pulse is one half times the quantity of single-photon-derived key, Q₁ times one minus the binary entropy of the single-photon error rate, minus the cost of error correction on all signals, with an error correction efficiency of 1.16. The calculator searches for the best signal intensity. The rate is asymptotic, meaning that it assumes an infinite number of pulses and an infinite number of decoy states, and real finite-size effects reduce the rate and the reach.

The PLOB bound is minus the logarithm base 2 of one minus the channel transmittance, per use of the channel. At long distances it behaves like 1.44 times the transmittance, so it too falls exponentially. Protocols such as twin-field QKD, proposed in 2018 by Lucamarini and coauthors, achieve a rate that scales with the square root of the transmittance, which allowed experiments beyond 500 kilometers, but they still fall below what quantum repeaters could do.

Assumptions and limits

The practical model is the idealized asymptotic decoy-state BB84 without finite-key penalties, detector dead time, saturation, polarization drift, or timing jitter, and it treats the fixed loss and misalignment as constants. The trusted-node curve assumes that all hops have identical parameters and that relay nodes are secure. It does not model satellite links, which have different loss behavior, or entanglement-based and twin-field protocols. Use the tool to learn how loss controls everything and to compare strategies, and use detailed link budgets for real systems.

The formulas behind it

Channel loss

A = α·L + A_fixed (dB)

Fiber attenuation α in dB per km, length L, plus fixed loss.

Transmittance

η = 10^(−A/10) · η_det

Overall probability that a photon is detected.

Decoy-state key per pulse

R = ½ [ −Q_μ f H₂(E_μ) + Q₁ (1 − H₂(e₁)) ]

Q_μ is the signal gain, Q₁ the single-photon gain, e₁ the single-photon error, f = 1.16.

PLOB bound

R_PLOB = −log₂(1 − η_ch)

Maximum secret bits per channel use without repeaters; η_ch is the channel transmittance.

Rate in bits per second

K = R × (clock rate)

Key per pulse times the pulse rate.

Worked examples

A 100 km link

  1. α = 0.2 dB/km, fixed loss 3 dB, so A = 23 dB and η_ch = 0.5%.
  2. With detector efficiency 80%, dark counts 10⁻⁷, error 1.5%, 1 GHz source.

ResultAbout 4.4 × 10⁵ bit/s for decoy-state BB84 against a PLOB limit of about 7 × 10⁶ bit/s.

A 200 km link

  1. A = 43 dB, so η_ch = 5 × 10⁻⁵.

ResultAbout 4 × 10³ bit/s practical, and 7 × 10⁴ bit/s as the ultimate bound.

A 300 km link split into four hops

  1. Each hop is 75 km with A = 18 dB.
  2. Single-hop rate is about 1.4 × 10⁶ bit/s at 75 km.

ResultAbout 1.4 × 10⁶ bit/s end to end, compared with zero for a single unrelayed 300 km link.

Frequently asked questions

Why can't we just amplify the photons?

Because a quantum state cannot be copied or amplified without disturbing it, so no ordinary amplifier can be used.

What do quantum repeaters change?

They would make key rates fall much more slowly with distance, but they require quantum memories and error correction that are not yet ready.

Why do trusted nodes reduce security?

Each node learns the key, so an attacker who compromises a node gets the key.

References

  1. Bennett, C. H., & Brassard, G. (1984). Quantum cryptography: Public key distribution and coin tossing. Proceedings of IEEE International Conference on Computers, Systems and Signal Processing, 175-179.
  2. Gottesman, D., Lo, H.-K., Lütkenhaus, N., & Preskill, J. (2004). Security of quantum key distribution with imperfect devices. Quantum Information and Computation, 4, 325-360.
  3. Ma, X., Qi, B., Zhao, Y., & Lo, H.-K. (2005). Practical decoy state for quantum key distribution. Physical Review A, 72, 012326.
  4. Pirandola, S., Laurenza, R., Ottaviani, C., & Banchi, L. (2017). Fundamental limits of repeaterless quantum communications. Nature Communications, 8, 15043.
  5. Lucamarini, M., Yuan, Z. L., Dynes, J. F., & Shields, A. J. (2018). Overcoming the rate-distance limit of quantum key distribution without quantum repeaters. Nature, 557, 400-403.
  6. Boaron, A., et al. (2018). Secure quantum key distribution over 421 km of optical fiber. Physical Review Letters, 121, 190502.
  7. Xu, F., Ma, X., Zhang, Q., Lo, H.-K., & Pan, J.-W. (2020). Secure quantum key distribution with realistic devices. Reviews of Modern Physics, 92, 025002.

Keep exploring

These calculators use simplified, published models for education and planning. Real devices and systems differ, so treat results as estimates. They are not engineering, investment, legal, or security advice.