文字稿 · CC BY 4.0

量子密钥分发如何运作:BB84 与 E91 协议详解

本页标题、字幕、摘要和阅读笔记为已保存的 AI 译文,可能有误。时间戳与来源一致,可展开查看原始字幕,并对照原视频核对。

对 XOR 加密、光子偏振和测量基的通俗讲解,展示 BB84 和 E91 量子密钥协议如何检测窃听者。

Improbable Matter · 发布于 · 13 分钟 · 英语 · 许可证:CC BY 4.0 · 来源:在 YouTube 上观看

文字稿来源:创作者上传至 YouTube 的字幕。AI 标点由 Vidleaf 添加;原始措辞和时间戳锚点均保留。原始文字稿见下方。

AI 生成的摘要

视频解释了 Alice 如何使用一次性密码本向 Bob 发送一个 24 位值:将先前共享的随机密钥与消息进行异或,使窃听者无法判断哪些位被翻转,而 Bob 可以将其还原。一次性密码本非常强大,但需要事先共享密钥,这并不实用,因此 https 网站使用公钥密码学;这在目前是安全的,但可能会发现数学缺陷,而且未来的量子计算机极有可能破解公钥方法。量子物理提供了无需物理共享密钥的密钥分发:光子具有可测量为二元结果的偏振,并且由于偏振是量子力学的,光子可以处于叠加态,因此窃听者的测量会使状态坍缩并暴露其存在。在 BB84 中,Alice 和 Bob 各自随机选择直线基或对角基,公开比较基(而非比特),保留匹配的情况,并比较一些比特以检测窃听者,而窃听者由于不可克隆定理无法克隆光子;这已在实验室中以及由中国和奥地利的团队通过卫星进行了演示,光纤通信也可行,从而开启了量子互联网的可能性。面对多个恶意行为者,检测仍然可行,他们最多只能进行拒绝服务攻击。Ekert 的 E91 使用处于贝尔单态中的纠缠光子对,在同一基下测量时给出相反的结果,这些情况用于建立随机一次性密钥;如果发送给 Bob 的被拦截光子被重新发送,它将不再与 Alice 的光子纠缠,这可以被检测到,并且在使用三个或更多测量方向时,非对齐的情况被用于检查相关性。这也已在实验室和长距离上得到展示。这些方法可以应用于其他亚原子粒子,如电子甚至分子,但光子最为实用:易于用商用激光器产生、易于检测、以光速移动,并可在真空和大气中传播。建议不熟悉量子物理的人阅读 Griffiths 和 Schroeter 的教科书。

根据文字稿生成。请对照原始视频核查所链接的段落。

带时间戳的章节摘要

量子加密与一次性密码本基础

使用异或的一次性密码本加密

  • [0:24] Alice 想要秘密地向 Bob 发送频道标志中的紫色,该颜色由三个字节(红、绿、蓝)表示,即 24 位。
  • [0:48] 使用一次性密码本,Alice 取一个先前共享的 24 位密钥,该密钥完全随机选择且不包含任何信息价值,并逐位应用异或:相同位得零,不同位得一。
  • [1:20] 密钥会翻转原始信息中的某些比特,从而对其进行编码;窃听者无法分辨哪些比特被翻转了,而持有密钥的 Bob 可以轻松地只将正确的比特翻转回来。

一次性密码本的优点与实际局限

  • [1:44] 一次性密码本是一种非常好的加密方法,因为除了知道随机密钥之外,没有任何数学或逻辑方法可以解码该消息。
  • [1:57] 它的缺点在于 Alice 和 Bob 必须事先共享密钥;若要安全地浏览网站,你必须亲自前往该网站,而且很可能需要不断返回以共享新密钥,以防黑客获取了旧密钥。

用于 HTTPS 的公钥密码学

  • [2:15] 由于物理共享密钥并不现实,以 https 开头的网站及其他互联网服务使用公钥密码学。

公钥密码学及其未来风险

密钥对结构与安全基础

  • [2:27] 每个参与者都有一对密钥:各自保管的私钥,以及可以共享的公钥。
  • [2:34] 这种方法之所以得名,是因为即使全世界都知道 Alice 和 Bob 的公钥,他们仍然可以安全地通信。
  • [2:43] 公钥密码学在数学上比一次性密码本复杂得多。

数学缺陷与量子威胁

  • [2:47] 公钥密码学目前是安全的,但问题已初现端倪。
  • [2:52] 对于每一种现行方法,都可能发现一个数学缺陷将其攻破,不过这需要一大群研究人员花费数年时间,而不是卧室里的黑客所能做到——而且这种情况以前也发生过。
  • [3:07] 未来的量子计算机极有可能攻破公钥方法,这又让我们回到了一次性密码本。

通过光子偏振实现的量子密钥分发

将密钥编码到光子偏振中

  • [3:14] 量子物理提供了一种无需亲自前往某地即可安全分发密钥的方法。
  • [3:23] 光由具有偏振的光子组成,偏振即电场振荡的方向,可以在单个光子层面相对于某个轴进行测量。
  • [3:38] 在垂直方向上测量可以揭示光子是上下振荡还是左右振荡,这是一种二元结果,使 Alice 和 Bob 能够编码一次性密钥,例如将左右记为 0,将上下记为 1。

通过状态坍缩检测窃听者

  • [4:01] 偏振是一种基本的量子力学属性,因此一个光子可以同时处于上下振荡和左右振荡的叠加态。
  • [4:13] 窃听者必须依次拦截每个光子才能进行测量,而测量会使光子的量子态坍缩。
  • [4:22] 从两种状态的叠加态坍缩为单一状态,这告诉 Alice 和 Bob 有窃听者存在,此时他们会丢弃密钥并稍后重试,或者报警,或者采取一切必要措施直到窃听者消失。
  • [4:39] 当没有窃听者时,Alice 和 Bob 可以确信只有他们自己——宇宙中再无他人——知道这个密钥。

BB84 量子密钥分发

光子偏振与测量

  • [4:49] 该协议是 Bennett 和 Brassard 的 1984 量子密钥分发协议,称为 BB84,其中 Alice 发送偏振态代表 1 和 0 的光子,Bob 对其进行测量。
  • [5:04] 创建具有给定偏振的光子很容易,因为偏振太阳镜或光学滤光片会让一种偏振通过并滤除其余部分,实际上就是在对每个光子进行量子力学测量。
  • [5:24] 有更精密、更精确的设备可用于此目的,但价格相对便宜。
  • [5:30] 将光子发射器侧转 45°,会使每个光子相对于 Bob 垂直对齐的测量系统处于垂直和水平偏振的叠加态。

离散测量结果与基

  • [5:49] 量子力学从根本上只允许测量给出特定的、离散的或量子化的结果,这正是量子物理得名的原因。
  • [6:00] 当 Alice 的发射器相对垂直方向顺时针旋转 45° 时,每个光子有 50% 的概率被水平测量,50% 的概率被垂直测量。
  • [6:12] 如果 Bob 将他的测量设备顺时针倾斜 45°,那么无论 Alice 发送什么,他都有 100% 的时间能正确测量。
  • [6:23] 在最初的 BB84 论文中,垂直方向是直角基,其中垂直光子为 1,水平光子为 0;倾斜 45° 是对角基,其中反斜杠方向的光子为 1,正斜杠方向的光子为 0。

随机基选择与公开比对

  • [6:47] Alice 随机选择一个基并发送数据比特,Bob 也随机选择一个基并进行测量。
  • [6:59] 平均而言,有一半时间他们选择相同的基,Bob 能准确接收到 Alice 发送的比特;如果基不同,测量就毫无用处,因为 Bob 有一半时间会得到错误答案。
  • [7:17] 他们公开分享发送基和测量基,这是安全的,因为这些只是基,而非比特本身;只有 Alice 和 Bob 知道这些比特,现在可以将其用作一次性密钥。

检测窃听者

  • [7:43] 窃听者若测量并重发光子,并不知道使用了哪种基,必然会在某个时刻用错基,从而破坏通信。
  • [8:01] 例如,如果 Alice 在对角基中发送一个反斜杠光子,而窃听者用直角基测量,可能会发送一个垂直光子,Bob 在对角基中将其测量为斜杠,于是 Alice 发送了 1,Bob 却得到了 0。
  • [8:21] Alice 和 Bob 公开比较他们认为成功共享的部分比特,任何不一致都会暴露窃听者的存在。

不可克隆定理与已演示的链路

  • [8:33] 窃听者可能幻想复制 Alice 的光子并在 Bob 不知情的情况下测量副本,但量子力学中的不可克隆定理严格禁止这样做。
  • [8:55] 因此,窃听者无法在不扰动光子的情况下测量它们,所以 Alice 和 Bob 要么成功共享一次性密钥,要么知道有人在监听。
  • [9:08] BB84 已在实验室中得到演示,并用于与卫星通信:中国的一个团队在其轨道的一部分建立了安全链路,奥地利的一个团队在轨道稍后阶段也做到了。
  • [9:22] 通过太空以这种方式通信意味着地球上任何地方的各方之间都可以进行,光纤通信也是可能的,这为在全球范围分发密钥的量子互联网开辟了可能性。

检测通信中的恶意行为者

恶意行为者的检测与局限

  • [9:41] 面对多个试图监视你的恶意行为者,至少总能检测到他们。
  • [9:48] 这类行为者最坏也只能发动拒绝服务攻击,阻止你通信,但无法秘密读取你的消息。

Ekert 的 E91 基于纠缠的密钥分发

纠缠光子对与贝尔单态

  • [9:57] E91,即 Ekert 在 1991 中提出的密钥分发方法,使用纠缠光子对。
  • [10:05] 纠缠意味着测量一个光子会影响另一个光子,即使它们相距许多公里。
  • [10:12] 在 E91 中,Alice 和 Bob 各自收到处于贝尔单态的一对光子中的一个。
  • [10:20] Alice 以相等概率随机得到 0 或 1,但只要 Bob 在相同的基或方向上进行测量,他就会得到相反的结果。

随机基测量与密钥提取

  • [10:54] Alice 和 Bob 随机在直角基或对角基中测量他们的光子,因此有时使用相同的基,有时使用不同的基。
  • [11:06] 他们在事后共享测量基,并利用在相同基中测量的时刻来建立一次性密钥。
  • [11:12] 由于纠缠光子的量子特性,密钥是随机的。

通过丢失的纠缠来检测窃听者

  • [11:17] 如果窃听者拦截并重新发送了前往 Bob 的光子,它就不再与 Alice 的光子纠缠,这可以被检测到。
  • [11:27] 每一方实际上有三种或更多方式来定向他们的测量设备。
  • [11:33] 他们利用基未对齐的时刻来计算测量的相关程度;如果它们没有以某种方式相关,那么光子就不是纠缠到达的,因此存在窃听者。

实验验证

  • [11:45] 这种方法也已在实验室和长距离上被证明有效。

光子作为量子方法的实用选择

为什么光子比其他粒子更受青睐

  • [11:50] 所描述的方法可以应用于其他亚原子粒子,如电子甚至分子,但光子是最实用的选择。
  • [11:56] 光子很容易用商用激光器产生,也容易检测。
  • [12:04] 光子自动以光速移动,并且可以在真空和大气中传播。

量子物理背景与进一步学习

  • [12:11] 熟悉量子物理的人应该会发现所描述方法背后的原理很直接。
  • [12:17] 不熟悉的人推荐阅读 Griffiths 和 Schroeter 的教科书。
  • [12:21] 演讲者的完整解释需要聘请他们讲授 20 讲座课程,因为该主题可能相当复杂。

阅读带时间戳的可用字幕,或转录播客、讲座和本地音频/视频。免费YouTube转录提取器。

需要提取其他公开视频的 SRT、TXT 或 Markdown 字幕?前往 YouTube 字幕提取工具。

前 3 段双语对照预览 · 免消耗额度

以下展示前 3 段已保存中文译文与英文原版字幕的逐段对照(零额度消耗):

[0:02]

我们在全球传输的数据量不断增加。我们个人信息、商业记录和政府机密的巨大价值使其成为窃听者的宝贵目标。别担心:这不是 VPN 的广告。我将解释一种利用量子物理加密数字信息的工作技术。想象 Alice 想秘密地将我频道标志中的紫色发送给 Bob。计算机屏幕上的颜色由三个字节表示:红、绿、蓝各一个。三个八位字节意味着一个由 24 个一和零组成的序列。Alice 和 Bob 保持秘密的一种方法是使用一种称为一次性密码本的技术。Alice 取一个她之前与 Bob 共享的数字密钥。这个密钥只是一个二进制数,也由 24 位组成,但它们是完全随机选择的。它们故意没有信息价值

We transmit an ever increasing amount of data all over the world. The immense value of our personal information, commercial records and government secrets makes them valuable targets for eavesdroppers. Don't worry: this is not an advert for a VPN. I'm going to explain a working technology which uses quantum physics to encrypt digital information. Imagine that Alice wanted to secretly send Bob the purple color in my channel logo. Colors on a computer screen are represented by three bytes: one for each of red, green and blue. Three bytes of eight bits each means a sequence of 24 ones and zeros. One way Alice and Bob can keep it secret is with a technique called a one-time pad. Alice takes a digital key which she has shared with Bob beforeand. This key is just a binary number, also composed of 24 bits, but they are chosen completely at random. They deliberately have no informational value

[1:05]

无论如何。现在,Alice 对每个比特依次执行所谓的异或运算(简称 XOR)。简单来说,如果两个比特相同,则结果为零;如果两个比特不同,则结果为一。实际上,密钥被用来翻转原始信息——紫色——中的某些比特。信息现在已被编码。任何截获它的窃听者都不知道哪些比特被翻转了,因此无法解码该消息。但对于拥有密钥的 Bob 来说,只翻转回正确的比特非常直接。即使是慢速计算机也能非常容易地执行或撤销 XOR 运算。一次性密码本是一种非常好的加密方法,因为除了知道随机密钥之外,没有数学或逻辑方法可以解码该消息。缺点是通信双方——在我的例子中是 Alice 和 Bob——必须事先共享密钥。如果你想安全地浏览网站,你就必须

whatsoever. Now, Alice performs what is called the exclusive or operation (XOR for short) to each of the bits in turn. Put simply, if both bits are the same then the result is zero; if both bits are different, the result is one. In effect, the key has been used to flip some of the bits of the original information - the color purple. The information has now been encoded. Any eavesdropper who intercepts it does not know which of the bits have been flipped and so cannot decode the message.Bbut for Bob who has the key, it's very straightforward to flip back only the correct bits. Even a slow computer can do or undo the XOR operation very easily. The one-time pad is a very good encryption method because there is no mathematical or logical way to decode the message, other than just knowing the random key. The downside is that the people communicating - Alice and Bob in my example - must have shared the key beforehand. If you wanted to browse a website securely, you would have to

[2:06]

亲自先去那里共享密钥。事实上,你可能还希望定期前往并共享新密钥,以防黑客确实拿到了旧密钥。这不切实际,因此以 https 开头的网站和其他互联网服务使用所谓的公钥密码学。在这种情况下,Alice 和 Bob 拥有一对密钥。一个是私钥,由他们各自单独保管;另一个是公钥,可以共享。这种方法得名于这样一个事实:即使全世界都知道他们的公钥,Alice 和 Bob 仍然可以在彼此之间安全通信。

physically go there first to share a key. In fact, you would probably also want to keep going regularly and sharing new keys just in case a hacker did get their hands on an old one. That is impractical, so websites which begin with https and other internet services use what is called public key cryptography. In this case, Alice and Bob have a pair of keys. One is private that each of them keeps individually and the other is public which they can share. The approach is named after the fact that even if the whole world knows their public keys, Alice and Bob can still communicate amongst themselves securely.

[0:02] 我们在全球传输的数据量不断增加。我们个人信息、商业记录和政府机密的巨大价值使其成为窃听者的宝贵目标。别担心:这不是 VPN 的广告。我将解释一种利用量子物理加密数字信息的工作技术。想象 Alice 想秘密地将我频道标志中的紫色发送给 Bob。计算机屏幕上的颜色由三个字节表示:红、绿、蓝各一个。三个八位字节意味着一个由 24 个一和零组成的序列。Alice 和 Bob 保持秘密的一种方法是使用一种称为一次性密码本的技术。Alice 取一个她之前与 Bob 共享的数字密钥。这个密钥只是一个二进制数,也由 24 位组成,但它们是完全随机选择的。它们故意没有信息价值

[1:05] 无论如何。现在,Alice 对每个比特依次执行所谓的异或运算(简称 XOR)。简单来说,如果两个比特相同,则结果为零;如果两个比特不同,则结果为一。实际上,密钥被用来翻转原始信息——紫色——中的某些比特。信息现在已被编码。任何截获它的窃听者都不知道哪些比特被翻转了,因此无法解码该消息。但对于拥有密钥的 Bob 来说,只翻转回正确的比特非常直接。即使是慢速计算机也能非常容易地执行或撤销 XOR 运算。一次性密码本是一种非常好的加密方法,因为除了知道随机密钥之外,没有数学或逻辑方法可以解码该消息。缺点是通信双方——在我的例子中是 Alice 和 Bob——必须事先共享密钥。如果你想安全地浏览网站,你就必须

[2:06] 亲自先去那里共享密钥。事实上,你可能还希望定期前往并共享新密钥,以防黑客确实拿到了旧密钥。这不切实际,因此以 https 开头的网站和其他互联网服务使用所谓的公钥密码学。在这种情况下,Alice 和 Bob 拥有一对密钥。一个是私钥,由他们各自单独保管;另一个是公钥,可以共享。这种方法得名于这样一个事实:即使全世界都知道他们的公钥,Alice 和 Bob 仍然可以在彼此之间安全通信。

[2:43] 自然,它在数学上比一次性密码本复杂得多。公钥密码学目前是安全的,但问题已在地平线上显现。对于当前使用的每一种方法,都可能发现其数学上的某些缺陷从而将其攻破。这将由一大群研究人员花费数年完成,而不是某个在卧室里的黑客,但这种事以前发生过。更不祥的是,未来的量子计算机很可能能够攻破公钥方法。所以,我们又回到了一次性密码本。我们如何在不亲自前往某地的情况下安全地分发密钥?量子物理学也有答案。

[3:23] 光由具有偏振的光子组成。偏振是电场振荡的方向。可以在单个光子的层面上相对于某个轴或方向来测量偏振。如果你沿垂直方向测量,就能判断某个光子是上下振荡还是左右振荡。这是二进制的,因此 Alice 和 Bob 可以通过例如把左右称为 0、把上下称为 1 来传递他们的一次性密钥。

[3:53] 在深入细节之前,先说明 Alice 和 Bob 如何确保他们交换的密钥是安全的。偏振是一种根本性的量子力学属性,这意味着一个光子可以同时处于两种互斥结果的叠加态——上下振荡和左右振荡。如果有窃听者,他们需要依次拦截每个光子进行测量。通过进行测量,他们会坍缩光子的量子态。正是这种从两种状态的叠加坍缩为其中一种,让 Alice 和 Bob 知道存在窃听者。如果是这种情况,他们会丢弃密钥并稍后重试,或者报警,或采取任何必要措施直到窃听者消失。当没有窃听者时,Alice 和 Bob 可以确信只有他们、宇宙中没有其他人知道这个密钥。

[4:46] 量子密钥分发最简单的方法是 Bennett 和 Brassard 在 1984 年提出的,简称 BB84。正如我提到的,Alice 可以发送具有给定偏振的光子,对应 1 和 0,而 Bob 可以测量它们。实际上,创建具有给定偏振的光子相当容易。许多太阳镜或光学滤光片的工作原理就是让一种偏振的光通过并滤除其余所有光。每当一个光子穿过你的偏振太阳镜时,你实际上就是在量子力学意义上测量它。当然,也有更复杂、更精确的设备来做这件事,但相对便宜。将光子的量子态变为垂直和水平偏振的叠加也相当容易:只需将光子发射器 45° 侧转即可。

[5:41] 相对于 Bob 垂直对齐的测量系统,每个光子现在都处于两种可能结果的叠加态。这是因为量子力学从根本上只允许测量给出特定结果。用数学术语来说,这叫作离散或量子化。量子物理正是由此得名。如果 Alice 的发射器位于垂直方向顺时针 45° 处,那么每个光子有 50% 的概率被水平测量,有 50% 的概率被垂直测量。

[6:12] 当然,Bob 也可以将他的测量设备顺时针倾斜 45°,这样无论 Alice 发送什么,他都能在 100% 的情况下正确测量。在最初的 BB84 论文中,将设备置于垂直方向被称为直角基。在这种情况下,垂直光子对应 1,水平光子对应 0。将设备倾斜 45° 被称为对角基,其中方向像反斜杠的光子为 1,方向像正斜杠的光子为 0。

[6:47] 现在的思路是,Alice 随机选择一个基并发送数据位——即 1 或 0。相应地,Bob 也随机选择一个基进行测量。平均而言,有一半时间他们会选择相同的基——相同的对齐方式——那么无论 Alice 发送什么位,Bob 都能准确无误地收到。如果两个基不同,那么测量就毫无用处,因为无论 Alice 发送什么,Bob 都会有一半时间得到错误答案。此时他们并不知道哪些数据位是准确的,哪些是垃圾。现在他们公开共享发送基和测量基。这意味着任何人都可能截获这些信息,但这没关系——这些只是基,不是数据位本身,所以即使全世界都知道这些基也无妨。只有 Alice 和 Bob 知道数据位本身,这些数据位现在可以用作一次性密钥。

[7:43] 然而,现在我们设想有一个窃听者测量并转发了这些光子。由于窃听者不知道发送光子时使用的是哪个基,他们必然会在某个时刻用错基,从而扰乱 Alice 和 Bob 之间的通信。例如,假设 Alice 在对角基中发送了反斜杠光子。窃听者碰巧在直角基中测量,并发送了一个垂直光子。Bob 在对角基中测量,得到了一个正斜杠。换句话说:Alice 发送了 1,而由于窃听者的存在,Bob 得到了 0。

[8:21] Alice 和 Bob 选出一些他们认为已成功共享的比特,并公开进行比较。如果其中任何一个不匹配,他们就知道存在窃听者。窃听者可能想到的一个花招是设法复制 Alice 发送的光子。假设有某种设备能够完美复制穿过它的光子。那么窃听者就可以截取复制出的光子并进行测量,而 Bob 却毫不知情。然而,量子力学中存在所谓的不可克隆定理,严格禁止这种做法。因此,窃听者无法在不扰动光子的情况下对其进行测量。要么 Alice 和 Bob 成功共享他们的一次性密钥,要么他们就知道有人在窃听。BB84 方案已在实验室中成功演示,甚至被用于与卫星通信。特别是,中国的一个团队在卫星轨道的一段建立了安全链路,随后奥地利的一个团队在轨道的另一段也做到了。

[9:22] 能够通过太空以这种方式通信,意味着地球上任何两方之间都可以做到。通过光纤以这种方式通信也是可行的。这开启了量子互联网的可能性,密钥可以在全世界范围内分发。这种方法的性质意味着,即使你的网络中有多个恶意行为者试图监视你,也始终至少能够检测到他们。他们最坏也只能发动拒绝服务攻击——阻止你通信,但无法秘密读取你的消息。一种更优雅的密钥分发方法是 Ekert 于 1991 年提出的方法,简称 E91。它使用被称为“纠缠”的光子对。简而言之,这意味着测量其中一个会影响另一个,即使它们相距许多公里。

[10:12] 在 E91 中,Alice 和 Bob 各自收到一对处于所谓贝尔单态的光子中的一个。Alice 可以以相等概率随机得到 0 或 1 的结果,但无论她测量到什么,只要 Bob 在相同的基或相同取向下测量,他就会得到相反的结果。这是一个相当复杂的量子效应,但已经证明 Alice 对其光子的测量会影响 Bob 的光子,反之亦然。尽管看起来很奇怪,测量一个光子的行为似乎会使另一个光子的偏振瞬间确定。根据我们目前最好的理解,第一次测量的结果也是完全随机的,在测量发生之前无法预测。

[10:54] 和之前一样,Alice 和 Bob 会随机选择在直角基或对角基上测量他们的光子。有时他们会在相同的基上测量,有时则在不同基上测量。他们在事后共享各自的测量基,并利用恰好使用相同基测量的那些时刻来建立一次性密钥。由于纠缠光子的量子特性,该密钥是随机的。如果窃听者拦截并重新发送了发往 Bob 的光子,它就不再与发往 Alice 的光子纠缠,这一点可以被检测到。我不深入讲解数学细节,但实际上他们每个人都有三种或更多种方式来调整测量设备的朝向。他们利用基未对齐的那些时刻来计算测量结果的相关程度。如果它们没有以特定方式相关联,就说明光子并非以纠缠态到达,因而存在窃听者。这种方法也已在实验室中以及长距离传输中得到验证。我所说的一切同样适用于其他亚原子粒子,比如电子甚至分子,但光子

[11:56] 是最实用的选择。光子很容易用商用激光器产生,也很容易探测。它们自动以光速运动。它们既能在真空中传播,也能在大气中传播。如果你熟悉量子物理,我所述方法背后的原理应该不难理解。如果你不熟悉,我推荐 Griffiths 和 Schroeter 合著的教科书。如果你希望我给出完整讲解,恐怕你需要聘请我来就此主题讲授一门 20 讲的课程,因为内容会相当复杂。感谢观看。

查看英文原始字幕

[0:02] We transmit an ever increasing amount of data all over the world. The immense value of our personal information, commercial records and government secrets makes them valuable targets for eavesdroppers. Don't worry: this is not an advert for a VPN. I'm going to explain a working technology which uses quantum physics to encrypt digital information. Imagine that Alice wanted to secretly send Bob the purple color in my channel logo. Colors on a computer screen are represented by three bytes: one for each of red, green and blue. Three bytes of eight bits each means a sequence of 24 ones and zeros. One way Alice and Bob can keep it secret is with a technique called a one-time pad. Alice takes a digital key which she has shared with Bob beforeand. This key is just a binary number, also composed of 24 bits, but they are chosen completely at random. They deliberately have no informational value

[1:05] whatsoever. Now, Alice performs what is called the exclusive or operation (XOR for short) to each of the bits in turn. Put simply, if both bits are the same then the result is zero; if both bits are different, the result is one. In effect, the key has been used to flip some of the bits of the original information - the color purple. The information has now been encoded. Any eavesdropper who intercepts it does not know which of the bits have been flipped and so cannot decode the message.Bbut for Bob who has the key, it's very straightforward to flip back only the correct bits. Even a slow computer can do or undo the XOR operation very easily. The one-time pad is a very good encryption method because there is no mathematical or logical way to decode the message, other than just knowing the random key. The downside is that the people communicating - Alice and Bob in my example - must have shared the key beforehand. If you wanted to browse a website securely, you would have to

[2:06] physically go there first to share a key. In fact, you would probably also want to keep going regularly and sharing new keys just in case a hacker did get their hands on an old one. That is impractical, so websites which begin with https and other internet services use what is called public key cryptography. In this case, Alice and Bob have a pair of keys. One is private that each of them keeps individually and the other is public which they can share. The approach is named after the fact that even if the whole world knows their public keys, Alice and Bob can still communicate amongst themselves securely.

[2:43] Naturally, it is much more mathematically complicated than the one-time pad. Public key cryptography is secure for now, but there are problems on the horizon. For each of the current methods in use, some flaw with the mathematics may be discovered which breaks it. This will be done by a major group of researchers working for years, not some hacker in their bedroom, but this has happened before. More ominously, it is very likely that quantum computers in the future will be able to break public key methods. So, we're back to the one-time pad. How can we distribute the key securely, without physically having to go somewhere? Quantum physics also has the answer.

[3:23] Light is made up of photons which have a polarization. This is the direction in which the electric field oscillates. The polarization can be measured at the level of individual photons relative to some axis, or direction. If you measure in the vertical direction, you can tell whether a given photon is oscillating up-and-down or side-to-side. This is binary, so Alice and Bob could communicate their one-time key by, for example, calling the side to side 0 and the up and down 1.

[3:53] Before I go into the finer details, here is how Alice and Bob make sure that the key they exchange is secure. The polarization is a fundamentally quantum mechanical property which means that a photon can be in a superposition of the two mutually exclusive outcomes - oscillating up-and-down and side-to-side - simultaneously. If there is an eavesdropper, they will need to intercept each photon in turn to measure it. By making the measurement, they will collapse the quantum state of the photon. It is that collapse from a superposition of both states to just one or the other which tells Alice and Bob that an eavesdropper is present. If that's the case, they will throw away the key and try again later, or call the police, or do whatever is necessary until the eavesdropper is gone. When there is no eavesdropper, Alice and Bob can be sure that only they and no one else in the universe knows the key.

[4:46] The simplest approach to Quantum Key Distribution was that of Bennett and Brassard from 1984 or BB84 for short. As I mentioned, Alice can send out photons with a given polarization corresponding to 1s and 0s and Bob can measure them. It's actually quite easy to create photons with a given polarization. Many sunglasses or optical filters work by letting through light of one polarization and filtering out all the rest. Every time a photon goes through your polarizing sunglasses, you are effectively measuring it in a quantum mechanical sense. There is more sophisticated and precise equipment to do this too, of course, but it's relatively cheap. Making the quantum state of a photon into a superposition of vertical and horizontal polarizations is also quite easy: simply turn the emitter of photons 45° on its side.

[5:41] Relative to Bob's vertically aligned measurement system, each photon is now in a combination of both possible outcomes. This is because quantum mechanics fundamentally only allows a measurement to give specific results. Another word for this is discrete in the mathematical sense or quantized. This is what gives quantum physics its name. If Alice's emitter is at 45° clockwise to the vertical, each photon has a 50% chance of being measured horizontally and 50% vertically.

[6:12] Of course, Bob can also tilt his measurement equipment by 45° clockwise and then whatever Alice sends, he would measure correctly 100% of the time. In the original BB84 paper having your equipment in the vertical orientation is referred to as the Rectilinear Basis. In that case a vertical photon corresponds to a 1 and a horizontal photon to a 0. Tilting the equipment by 45° is referred to as the Diagonal Basis where a photon which is oriented like a backslash is a 1 and one that is like a forward slash is a 0.

[6:47] The idea now is that Alice picks a basis at random and sends the data bits - the 1s or 0s. Accordingly Bob also picks a basis at random and measures. On average half the time they will both pick the same basis - the same alignment - and whatever bit Alice sent Bob for sure has accurately received it. If the two bases are different, then the measurement is useless, because whatever Alice sent Bob would get the wrong answer half the time. At this point they don't know which of the bits of data are accurate and which are garbage. They now share the sending and measurement bases publicly. This means that anyone can possibly intercept the information, but that's OK - these are just the bases, not the bits themselves, so it doesn't matter if the whole world knows what they are. Only Alice and Bob know the bits themselves, which can now be used as the one-time key.

[7:43] However, let's now imagine there is an eavesdropper who has measured and resent the photons. Because the eavesdropper doesn't know which basis was used to send out the photons, they will inevitably use the wrong one at some point and mess up the communication between Alice and Bob. Let's say for instance that Alice sent out the backslash photon in the Diagonal Basis. The eavesdropper by chance measures in the Rectilinear Basis and sends out a vertical photon. Bob measures in the diagonal and gets a forward slash. In other words: Alice sent out a 1 and Bob got a 0 because of the eavesdropper.

[8:21] Alice and Bob select some of the bits they think they've shared successfully and compare them publicly. If any of them don't match up, they know an eavesdropper was present. One trick the eavesdropper could imagine is somehow duplicating the photons which Alice sends. Let's say there was some device that could make perfect copies of photons passing through it. Then the eavesdropper could siphon off the copied photons and measure them without Bob knowing. However, there is What's called the no-cloning theorem in quantum mechanics which strictly prohibits this. As a result, an eavesdropper cannot measure the photons without disturbing them. Either Alice and Bob successfully share their one-time key or they know that someone out there is listening. The BB84 approach has been successfully demonstrated in a lab and even used to communicate with a satellite. In particular, a team in China made a secure link to the satellite in one part of its orbit and then a team in Austria did so later on in the orbit. The

[9:22] fact that it is possible to communicate in this way through space means that it can be done between parties anywhere on Earth. communication in this way through fiber optics is also possible. This opens the possibility of a Quantum Internet where keys could be distributed all over the world. The nature of this method means that even if you had a network with multiple bad actors out there to spy on you, it would always be possible to at least detect them. The worst they could do is a denial of service attack - stopping you from communicating, but they could not secretly read your messages. A more elegant way to distribute a key is the method of Ekert from 1991 or E91 for short. This uses pairs of photons which are what is called "entangled". In short, this means that measuring one affects the other even if they are many kilometers apart.

[10:12] In E91 Alice and Bob each receive one of a pair of photons in what is called the Bell singlet state. Alice can get a result of 0 or 1 at random with equal probability, but whatever she measures Bob will get the opposite as long as he measures in the same basis or same orientation. This is a rather complicated quantum effect, but it has been shown that a measurement Alice makes on her photon affects the photon of Bob or vice versa. Strange as it would seem, the act of measuring one photon seems to pop the polarization of the other into being. According to our best understanding, the outcome of the first measurement is also totally random and cannot be predicted until it is made.

[10:54] As before, Alice and Bob will measure their photons either in the Rectilinear or Diagonal Bases at random. Some of the time they will measure in the same bases and some of the time in different ones. They share their measurement bases after the fact and use the times when they happen to measure in the same basis to set up a one-time key. The key is random due to the quantum nature of entangled photons. If an eavesdropper intercepted and resent the photon going to Bob, it would no longer be entangled with the one going to Alice, which can be detected. I won't go into the math, but each of them actually has three or more ways to orient their measuring devices. They use the times when the bases were not aligned to calculate how correlated the measurements are. If they are not correlated in a certain way, the photons are not arriving entangled and hence there is an eavesdropper. This method has also been shown to work in the lab and over long distances Everything I've said can apply to other subatomic particles like electrons or even molecules, but photons

[11:56] are the most practical choice. Photons are easy to generate with a commercial laser and also easy to detect. They automatically move at the speed of light. They can travel both in a vacuum and in the atmosphere. If you are familiar with quantum physics, the principles behind the methods I described should be straightforward. If you aren't, I recommend the textbook by Griffiths and Schroeter. If you would like a full explanation from me, I'm afraid you will need to hire me to give a 20 lecture course on the subject, because it can get quite involved. Thank you for watching.

在 Vidleaf 工作台中打开

搜索转录文本、选择行、复制带时间戳的引文、翻译。

署名

《量子密钥分发的工作原理(BB84 & E91)》,作者 Improbable Matter(https://www.youtube.com/@improbablematter),依据 CC BY 4.0(https://creativecommons.org/licenses/by/4.0/)许可。源视频:https://www.youtube.com/watch?v=V3WzH2up7Os。本页是该视频的文字转录稿,添加了段落分隔和时间戳;创作者与 Vidleaf 无关联,也不为其背书。Vidleaf 添加了 AI 标点和 AI 生成的摘要;原始措辞仍可在本页查看。

您是创作者或权利持有人吗?请求更正或移除:copyright@vidleaf.app(参见关于这些页面)。

最后更新于