Quantum key distribution
Introduced
12:11
How Encryption Works
Look at the padlock in your browser's address bar. You typed your bank's name, and somehow your laptop is now certain it is really talking to the bank — and…
English narration · English and 中文 subtitles you can switch
In this lesson
| English | Meaning |
|---|---|
| encrypted file | A file whose contents have been changed so they cannot be read without a key. |
| network/ˈnetwɜːk/ | A set of connected devices or nodes that can exchange information. |
| secret key | A value kept private and used to encrypt or decrypt data. |
| Quantum cryptography/ˈkwɒntəm krɪpˈtɒɡrəfi/ | The use of quantum physics to help protect information and communication. |
| quantum key distribution/ˈkwɒntəm kiː ˌdɪstrɪˈbjuːʃn/ | Sharing key material using quantum states to help detect attempts to read it. |
| key material | Bits that can be processed to produce a secret key. |
| key exchange | The process of sharing or agreeing a key for secure communication. |
| sender/ˈsendə/ | The person or device that sends information to another party. |
| random bits | Bits chosen by chance, with values that cannot be predicted reliably. |
| quantum state | The condition of a quantum object that affects what happens when it is measured. |
| photon/ˈfəʊtɒn/ | A quantum of electromagnetic radiation with energy equal to Planck's constant multiplied by its frequency. |
| receiver/rɪˈsiːvə/ | The person or device that receives information from another party. |
| protocol/ˈprəʊtəkɒl/ | An agreed set of rules governing communication between devices or systems. |
| Interception | The act of capturing data while it is being sent. |
| authenticated/ɔːˈθentɪkeɪtɪd/ | Describes something whose identity has been checked and confirmed. |
| channel/ˈtʃænl/ | A selected range of radio frequencies used to carry wireless signals. |
| equipment noise | Unwanted changes caused by equipment that can produce errors in transmitted information. |
| error correction | The process of finding and fixing errors in data. |
| sample error rate | The proportion of compared sample bits that differ between the two parties. |
| candidate key/ˈkændɪdeɪt kiː/ | A proposed key that has not yet passed all required checks and processing. |
| quantum physics | The study of how matter and light behave at very small scales. |
| key distribution/kiː ˌdɪstrɪˈbjuːʃn/ | Securely providing or establishing the cryptographic keys that communicating parties need. |
| endpoint/endˈpɔɪnt/ | A device or system at one end of a communication link. |
| quantum link | A connection that carries quantum states between parties. |
| optical fibre/ˈɒptɪkl ˈfaɪbə/ | A thin strand of material that carries information as pulses of light. |
| Loss/lɒs/ | The loss of photons as they travel through a quantum link. |
| key-generation rate | The amount of usable key material produced in a given time. |
| routers/ˈruːtəz/ | Network devices that forward packets between networks using destination addresses and routing information. |
| encryption scheme | A method that uses a key to change data into an unreadable form. |
| Authentication/ɔːˌθentɪˈkeɪʃn/ | The process of checking that a person or system is who they claim to be. |
A key that cannot be photocopied quietly
- A shop can send an encrypted file 加密文件 over an ordinary network 网络, but first it must share a secret key 密钥. Making the key longer does not explain how the two sides obtain it safely.
- Quantum cryptography 量子密码学 includes quantum key distribution 量子密钥分发 (QKD): sharing key material 密钥材料 using quantum states 量子态. The key exchange 密钥交换 and the encrypted file are two separate jobs.
What is the main job of QKD?
Difficulty 1/5 · 100 coins + a small bonus on first completion today
QKD shares key material; an encryption scheme uses a key to protect the message.
Photons carry the key material
- A sender 发送方 encodes random bits 随机比特 in quantum states 量子态 of photons 光子. The receiver 接收方 measures the incoming photons. In a simple protocol 协议, the two sides use different measurement choices and later keep results from compatible choices.
- Measuring an unknown quantum state can disturb it; an attacker cannot make a perfect copy of an arbitrary unknown state. Interception 截获 can therefore leave a statistical error signal in the retained results.

An attacker can always copy an arbitrary unknown quantum state perfectly and leave it unchanged.
Difficulty 1/5 · 100 coins + a small bonus on first completion today
An unknown state cannot be perfectly cloned; interception can affect measured results.
A sample test, not a detector on every photon
- The two sides compare a sample of retained bits over an authenticated channel 信道: they must know who is speaking. They do not publish the whole secret key; revealed sample bits are discarded.
- Too many errors mean aborting the exchange and discarding the proposed key. Errors may come from interception or equipment noise 设备噪声, so an error does not identify an attacker. Accepted results still need error correction 纠错 and privacy processing.

Order this simplified QKD exchange.
Difficulty 3/5 · 200 coins + a small bonus on first completion today
A sample is revealed for testing, so those tested bits cannot remain part of the secret key.
Worked example: reject a noisy exchange
- A simplified classroom test compares 40 sample bits. Six differ. Calculate the sample error rate 样本误码率: $r = \dfrac{6}{40}\times100 = 15\%$. Suppose this exercise's stated acceptance limit is 10%; the exchange is rejected.
- Discard the candidate key 候选密钥 and investigate or retry. Do not use the revealed sample bits in a secret key, and do not conclude that six errors prove six bits were stolen. The 10% limit is an exercise assumption, not a universal QKD threshold.

Six of 40 sample bits differ. What percentage differ?
Difficulty 2/5 · 140 coins + a small bonus on first completion today
Error rate = 6 / 40 × 100 = 15%.
The sample error rate is 15%; the exercise acceptance limit is 10%. What should the parties do?
Difficulty 1/5 · 100 coins + a small bonus on first completion today
15% exceeds the stated limit. Discard the candidate key; the result does not prove who caused the errors.
The benefit follows from the mechanism
- In an ideal protocol, the key's secrecy is supported by quantum physics 量子物理学 rather than only the difficulty of a mathematical problem. Attempts to measure the transmitted states can affect the test results.
- This helps with key distribution 密钥分发. It does not protect a stolen endpoint 端点, authenticate the other party on its own, or make every practical implementation immune to attack.
Why ordinary networks still need ordinary encryption
- Practical QKD needs special equipment and a suitable quantum link 量子链路, such as optical fibre 光纤 or a free-space path. Loss 损耗, distance and key-generation rate 密钥生成速率 constrain deployment; ordinary routers 路由器 cannot simply copy and forward arbitrary quantum states.
- The agreed key is then used by an encryption scheme 加密方案 to protect the actual data on an ordinary channel. QKD supplies key material, not a new way of emailing a whole document as photons.

Which constraints remain with practical QKD? Select all that apply.
Difficulty 2/5 · 140 coins + a small bonus on first completion today
QKD does not by itself provide identity assurance or secure endpoints, and it needs suitable equipment and links.
Marks that slip away
- Explain a benefit through its cause: unknown states cannot be perfectly copied, and interception can introduce detectable errors. Avoid “every attack is instantly detected” or “the whole system is unhackable”.
- Explain a drawback through its effect: specialised links and equipment increase cost and limit where the method can be deployed. Authentication 身份认证 and secure endpoints are still necessary.
Choose the right job for each tool
- QKD shares key material; ordinary encryption protects the message with a key. A sample error test can cause the exchange to be rejected, and tested bits are not kept secret.
- A complete answer gives the purpose, the physical reason interception can be noticed, a benefit and a practical limit. It also keeps identity checks separate from key distribution 密钥分发.
Further reading: QKD in an authenticated key-exchange framework and practical deployment limitations. Sources checked 2 October 2026; this lesson is original classroom material.
Match the job to the mechanism.
Difficulty 2/5 · 140 coins + a small bonus on first completion today
Key distribution, data encryption and authentication serve different jobs.
What went wrong? Only the site team sees this.