Lesson 3 of 3 · Phase-error bounds and composable key accounting
Account for finite-key blocks
22 minute lesson · 3 checks along the way
Your goal for this lessonCalculate an illustrative finite-key allowance from supplied valid parameter bounds, while retaining protocol conditions, verification costs and failure-budget composition.
In this lesson 4 sections · 3 checks
Read & understand
Identify the inputs a key-length formula needs
The planned SpeQtral-1 design motivates learning how a weak-pulse protocol might convert observations into key material. This lesson uses a published decoy-state BB84 bound as a separate teaching model; the mission description does not establish that the spacecraft implements this exact protocol. In particular, an entanglement-based design option cannot simply inherit a weak-pulse proof without matching its assumptions. No flight key-generation result is being claimed.
Assume the cited protocol’s preparation, measurement, authenticated discussion and statistical estimation conditions are met. Supply valid lower bounds S0 and S1 on vacuum and single-photon events in the raw key, an upper bound φ on the single-photon phase-error rate, and a known error-correction leakage leakEC. The phase-error bound is not automatically the observed bit-error fraction in the key basis. It must come from the protocol’s justified complementary-basis and finite-data analysis. In particular, Bob’s detection probability must be independent of his basis choice, as the cited proof requires.
Read & understand
Subtract uncertainty and disclosure before rounding
With binary entropy h₂(p)=−p log₂p−(1−p)log₂(1−p), the selected allowance is ℓ=floor[S0+S1(1−h₂(φ))−leakEC−6log₂(21/εsec)−log₂(2/εcor)]. Here εsec and εcor are the secrecy and correctness allowances in that proof. The final logarithmic term accounts for error verification under its convention; subtracting it a second time elsewhere would double-count that cost. This formula is meaningful only with bounds and leakage defined consistently with the proof.
Invent S0=0, S1=20,000, φ=0.02, leakEC=4,000 bits and εsec=εcor=10⁻⁹. The entropy h₂(0.02) is approximately 0.14144054. The single-photon contribution is about 17,171.18915 bits. Together the two logarithmic penalties are approximately 236.63537 bits, leaving 12,934.55377 before rounding. Rounding down gives an allowed length of 12,934 bits. Rounding to the nearest integer would exceed this bound by returning 12,935.
Check 1 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Check a smaller block instead of assuming positive yield
For another original block, retain the same two failure allowances but supply S1=1,000, S0=0, φ=0.05 and leakEC=500 bits. Then h₂(0.05)≈0.28639696, so the unrounded expression is 1,000×0.71360304−500−236.63537≈−23.03233. This recipe certifies no positive output for that block. The correct operational decision in the toy is to abort or produce zero key bits, not take an absolute value or advertise a negative key rate.
Even doubling every count and the error-correction disclosure does not generally double the final length when φ and the failure allowances are held fixed. The logarithmic penalty is a per-block cost. Combining observations into a larger block can change that cost per input event, but it also changes latency, parameter estimation and potentially stationarity assumptions. A larger arithmetic answer is useful only if the combined block still meets the conditions under which its bounds were established. As a purely algebraic comparison, doubling the main example’s S1 and leakEC while keeping its valid φ and failure allowances fixed gives floor[2×13,171.18915−236.63537]=26,105 bits. Twice the separately rounded result is 25,868. This comparison isolates the once-per-block penalty and rounding; it is not permission to combine actual records without re-estimating their bounds.
Tightening εsec by a factor of sixteen while holding the other valid inputs fixed adds 6log₂16=24 bits to the penalty. Tightening only εcor by that factor adds four bits instead. To compare splitting a block fairly, also preserve the overall failure budget: two halves with εsec=εcor=5×10⁻¹⁰ each have four terms summing to the original 2×10⁻⁹. Splitting the main block into halves with S1=10,000, φ=0.02 and leakEC=2,000 gives 6,341 bits per half, or 12,682 total, under supplied validity for both halves.
Subtract every cost, then round down
Original calculation under the cited decoy-state BB84 proof. Supplied parameter bounds and the proof’s conditions are prerequisites; the displayed allowance is not a service guarantee.
Open full-size diagram in a new tab: Subtract every cost, then round downCheck 2 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Keep one block distinct from a complete service
For the main example, the cited proof combines correctness and secrecy to give at most εcor+εsec=2×10⁻⁹ for its stated key guarantee. This is not a per-bit error probability or the chance that someone guesses the whole key. If one composes 1,000 blocks with valid sequential guarantees at that level, the simple sum is at most 2×10⁻⁶. Independence is not required for this additive upper bound, but each conditional guarantee must remain applicable in the composed system.
Authentication failure and any other external protocol components need their own valid treatment; they are not licensed by silently reusing the displayed number. Authentication keys or other consumed resources also affect net deliverable key, whereas ℓ above is a gross extraction allowance for the stated block. Record all supplied parameter bounds and their derivation before comparing implementations. Raw detections, sifted bits, an evaluated allowance, an implemented final key and a continuously available service are successive claims requiring different evidence.
Check 3 of 3
10 pointsUse the reading above. You can try again without losing points.
Put it together
Your lesson progress
Each check connects to a part of the story. Complete all 3 to earn your 25-point lesson bonus.
Explore further · Optional
Go to the source
Explore the evidence behind this lesson. These optional readings and videos open in a new tab.
- Read: SpeQtral satellite designsDeveloper description of the planned 16U SpeQtral-1 design, weak coherent and entangled sources, and intended BB84/BBM92 capabilities; design claims do not establish achieved service.
- Read: Finite-key decoy-state BB84 boundProtocol and Equation 1 on printed page 2 define the block-length bound and secrecy/correctness convention. All numerical inputs here are invented and supplied as already valid bounds; their experimental estimation is not demonstrated.