Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Finite-key analysis

Finite-key analysis quantifies QKD security when parameter estimates and key material come from a finite dataset rather than an infinite asymptotic limit.

Edition released Coverage: Overview · Technical · Research
On this page

Definition and mechanism

A finite sample cannot reveal an exact error rate or photon-number contribution. Security analysis converts observed data into conservative bounds and allocates failure probabilities among parameter estimation, reconciliation, authentication and extraction. The resulting key can be shorter than an asymptotic formula suggests, and some small datasets support no positive key at the chosen security level.

A solved sampling bound

For m independent Bernoulli samples, Hoeffding's inequality gives P(|qhat-q|>=delta)<=2 exp(-2m delta squared). Taking m=10,000 and delta=0.03 gives an upper bound 2 exp(-18), approximately 3.046 times 10^-8. If the observed error fraction is 0.02, this particular model bounds q above by 0.05 except with the stated failure probability. A QKD proof may require a different sampling theorem because data selection and quantum side information matter.

Why asymptotic rates are insufficient

An expression such as 1-2h2(q) belongs to a particular idealized asymptotic setting and is not a universal formula for every QKD implementation. Finite-size deductions, device parameters, basis bias and reconciliation efficiency alter the key length. Report detections, sifted length, sampled length, confidence parameters and final secret bits, not only a favorable rate per accepted event.

Limits and misconceptions

A small observed error count does not prove that the true error probability is zero. A protocol can abort for insufficient evidence without implying that an attack occurred. Security parameters are bounds under assumptions, not empirically measured probabilities that a hacker will succeed. Reusing a finite dataset for undeclared selection can invalidate the bound.

An observed error frequency is an estimate

A finite sample cannot determine an unknown probability exactly. For independent Bernoulli observations with true error probability p, the observed frequency p_hat fluctuates around p. A one-sided Hoeffding bound gives Pr[p>=p_hat+delta]<=exp(-2m delta^2), where m is the number of independent sampled observations. Solving for a failure probability epsilon gives delta=sqrt[ln(1/epsilon)/(2m)]. This is an illustrative statistical bound for its stated sampling model; a QKD proof may require sampling without replacement, correlated quantum systems or a different finite-size theorem.

With m=100,000 and epsilon=10^-10, delta is approximately 0.0107298. If the observed frequency is 0.02, this simple bound gives an upper confidence value about 0.0307298. Increasing the sample to one million reduces delta by sqrt(10), to approximately 0.00339307. The sample frequency itself has not changed; the confidence statement is stronger because more observations constrain it.

The cost of stronger confidence

Keeping m fixed while reducing epsilon from 10^-6 to 10^-12 changes ln(1/epsilon) by a factor of two, so this particular confidence margin increases by sqrt(2). Stronger statistical confidence is not free. It can require a larger test sample or a more conservative final key length. A graph of the bound should show both m and epsilon, because reporting only a percentage error bar hides the security level used to obtain it.

Finite-key analysis also accounts for smoothing parameters, reconciliation leakage, error verification, source estimation and the possibility of protocol abort. Adding all these terms without attention to the governing theorem can produce an invalid expression. The encyclopedia should present one fully specified model at a time and distinguish an explanatory confidence calculation from a deployable key-length formula.

A nonlinear penalty from uncertainty

In the symmetric asymptotic expression 1-2h2(e), replacing e=0.02 by a conservative upper value near 0.03073 reduces the estimated secret fraction because binary entropy increases over this range. The derivative h2'(e)=log2[(1-e)/e] is positive for e<1/2. At e=0.02 it is log2(49), approximately 5.61471. A first-order change delta e=0.001 would therefore decrease 1-2h2(e) by about 0.0112294. This sensitivity calculation explains why apparently small error-estimation margins can have a visible effect on key length.

The calculation is local: applying the derivative over a large interval without checking curvature can misestimate the change. Also, bit-error and phase-error bounds need not be equal in a real finite protocol. Their separate roles should remain visible rather than compressed into a single generic 'noise percentage.'

A block can be secure yet yield no key

Suppose a lower entropy estimate gives 90,000 bits, while reconciliation and other required deductions total 92,000 bits. The resulting allowable length is nonpositive, so the protocol should not release a positive key under that bound. This does not show that the physical signals carried no correlations or that every possible proof would fail. It shows that the chosen protocol and analysis have not certified a positive secret key for that block.

Pooling more data can improve statistical efficiency but also changes storage, latency, drift and stationarity considerations. A proof that assumes one fixed source behavior across a block cannot silently combine observations from different operating conditions. A historical or experimental report should preserve its block size, proof version, security definition and acceptance conditions so later comparisons remain meaningful.

Zero observed errors does not establish a zero error probability

Under independent Bernoulli sampling, the probability of observing no errors in m trials is (1-p)^m. A one-sided upper confidence bound after zero observed errors can therefore be obtained by solving (1-p_upper)^m=alpha, giving p_upper=1-alpha^(1/m). For m=1,000 and alpha=0.05, the bound is approximately 0.00299125. The observation supports a small upper value at the stated confidence level; it does not prove p=0.

For small upper values, the approximation p_upper approximately -ln(alpha)/m follows from expanding the exponential. At alpha=0.05, the numerator is approximately 2.995732. This is the origin of a useful order-of-magnitude rule for zero-event observations, but the exact expression is available and its independence assumptions remain essential.

A QKD parameter-estimation proof may involve random sampling without replacement, adversarial correlations, basis-dependent selection or an entropy accumulation argument. The Bernoulli calculation is not a replacement for those results. It demonstrates a narrower point: absence of an observed failure and a proven failure probability of zero are mathematically different statements. A report should preserve its sample size, confidence convention and treatment of missing trials whenever it summarizes a result as no detected errors. The same distinction is relevant to hardware benchmark records, where zero observed logical failures over a finite run supplies an upper bound under a model, not evidence of a perfect logical qubit.

Sources

  • Feihu Xu; Xiongfeng Ma; Qiang Zhang; Hoi-Kwong Lo; Jian-Wei Pan · Review article · Peer-reviewed publication recorded · journals.aps.org · DOI 10.1103/RevModPhys.92.025002
    Verification scope

    Metadata and abstract checked ·

    Abstract supports the need to include device imperfections; individual security theorems are not certified by this bibliographic check.

  • Stefano Pirandola and colleagues · Review article · Peer-reviewed publication recorded · research.ed.ac.uk · DOI 10.1364/AOP.361502
    Verification scope

    Citation identity checked ·

    Bibliographic record and abstract checked; no figures or extensive text reproduced.

  • Christopher Portmann, Renato Renner · · Review article · Peer-reviewed publication recorded · DOI link · DOI 10.1103/RevModPhys.94.025008
    Verification scope

    Metadata and abstract checked

    Title, authors, publication date, DOI and abstract retrieved from the publisher. No claim of exhaustive independent proof review.

    Explanatory reference for security definitions and composition. Original synthetic examples are separately calculated.

  • Marco Tomamichel, Charles Ci Wen Lim, Nicolas Gisin, Renato Renner · · Research paper · Peer-reviewed publication recorded · nature.com · DOI 10.1038/ncomms1631
    Verification scope

    Available excerpt checked

    Publisher metadata and the available abstract identify the authors, date and finite-key topic.

    The primary paper is necessary to verify constants and protocol-specific conditions. The bounds here are illustrative.