一个除非拥有量子计算机,否则无法获胜的游戏

qimuai 发布于 阅读:40 一手编译

一个除非拥有量子计算机,否则无法获胜的游戏

内容来源:https://research.google/blog/a-game-you-cannot-win-unless-you-have-a-quantum-computer/

内容总结:

谷歌量子人工智能团队近日在《科学》杂志发表研究成果,首次在超导量子处理器上实现并测量了量子力学中最奇特的特征之一——量子语境性(quantum contextuality),并将其转化为可测量、可基准测试的实用工具,成功在多达105个量子比特的系统上完成验证。

研究团队以经典“魔术方阵”游戏为切入点:在一个3×3方格中填入+1或−1,要求每行乘积为+1、每列乘积为−1,该谜题在经典逻辑下无解。若将其转化为两人博弈,经典策略最多只能赢得9轮中的8轮(胜率上限88.89%)。而借助量子语境性——即测量结果不能预先确定、而依赖于测量语境这一量子特性——量子系统理论上可每轮必胜。

在Willow超导量子处理器上,团队让两个参与者各持两个量子比特并共享纠缠贝尔对,进行了全部9种版本的博弈各10万次,量子比特胜率达到98.30%±0.0001%,显著超越经典极限,统计意义明确。

团队进一步采用与贝尔测试密切相关的Bell-Kochen-Specker不等式测量系统的语境性程度,测得χ值为5.590±0.008,远超经典上限4,距量子力学允许的上限6仅差约7%。该测试具有态无关性,反映的是机器本身的属性而非特定输入。

在扩展性验证方面,团队通过GHZ宇称博弈将实验拓展至71个量子比特,全程保持高于经典界限,并验证了45个量子比特的真正纠缠。团队还实际运行了此前从未在真实硬件上规模化执行的隐线性函数求解算法,在多达105个量子比特的网格上以超过50%的成功概率完成求解。

研究还发现,此类任务对硬件中细微的相干误差高度敏感,可作为传统随机电路基准测试难以捕捉的新型基准工具。由于物理设定的性能上限(χ=6、胜率1)固定不变,随着量子处理器性能提升,该基准的区分度将越来越高,对化学和材料科学中的分子模拟等结构化算法应用具有重要意义。

该研究由谷歌量子人工智能团队与学术合作者共同完成。

中文翻译:

2026年11月19日
Shashwat Kumar 和 Rodrigo Cortiñas,Google Quantum AI 研究科学家,Google Research

在一台超导处理器上,我们将量子力学最奇特的特征之一,变成了可以测量、可以基准测试、并能在多达 10⁵ 个量子比特的大规模系统中加以利用的东西。

这里有一个你现在就可以尝试的“星期日报纸”式谜题。画一个 3×3 的方格。在每个格子里填入 +1 或 −1,但须满足两条规则:每一行的乘积必须为 +1,每一列的乘积必须为 −1。

来吧,我们等你……

你没能做到,对吧?这背后有一个优雅的原因。一行要乘积为 +1,就需要偶数个 −1。一列要乘积为 −1,就需要奇数个 −1。把所有行加起来,你会得知整个方格中 −1 的个数是偶数。把所有列加起来,你会得知 −1 的个数是奇数。嗯……这不可能!

这个方格必须同时是两件互相矛盾的事。这样的表格并不存在;它是一个悖论。

现在把这个谜题变成一个游戏:每一轮,Alice 拿到一行,Bob 拿到一列。在不能交谈的情况下,Alice 按行规则填写她的行,Bob 按列规则填写他的列。如果他们在各自行与列相交的格子里填入相同的数字,他们就赢了。任何事先制定的方案都不过是一张预先写好的表格,这意味着他们最多只能在 9 轮中赢 8 轮。但如果他们使用量子计算机,情况就不同了。量子计算机不会填出那个不可能的方格,但原则上,它能让他们每一轮都获胜。

原因在于一种名为“量子语境性”的性质,可以说是量子力学最奇特的特征。爱因斯坦曾有一句名言:当我们不看的时候,月亮是否还在那里?他用这句话坚持认为,物理性质应当存在,无论是否有人去测量它们。对于量子系统而言,语境性是一个精确的、可实验检验的论断:答案可以是否定的——你无法为你可能测量的每一个量都预先指定一个固定的、事先存在的值。

一次测量所得到的结果,可能取决于你同时进行了哪些其他相容的测量(即取决于它的“语境”)。这不仅是一个深刻的哲学命题,更是前沿科学和一项新技术的基础。在上面的游戏中,Alice 和 Bob 可以利用它来设计出一个解法。他们的答案并非从一张事先写好的隐藏表格中查得;那张表格根本不存在。他们的答案在测量时方才生成,而量子关联将它们拼接在一起,其紧密程度超出了任何经典规则手册所允许的范围。

纠缠通常被奉为量子计算“魔法配方”的头号主角。但越来越多的理论表明,语境性才是更深层的资源,是真正让某些量子算法超越其经典对应物的东西。问题在于,直到不久之前,语境性几乎只在少数几个粒子的小系统中得到过演示。它能否在真实量子计算机所由构成的多体系统中存活下来并保持有用,一直是一个悬而未决的问题。

这正是我们要回答的问题。在发表于《Science》的论文《由测量语境性产生的有限资源任务中的量子—经典分离》中,我们在自己的超导量子处理器上演示并测量了语境性。我们的量子比特在魔法方格游戏中的胜率达到 98.3%,在一项语境性检验中超越了经典极限,并在多达 10⁵ 个量子比特的任务中胜过经典策略。在此过程中,这些任务被证明是一种灵敏的量子硬件新基准,能够捕捉到随机电路测试所遗漏的细微错误。

我们在 Willow 量子处理器上运行了通常所说的魔法方格游戏。Alice 和 Bob 各持有两个量子比特,共享两对纠缠的贝尔态,而非一张预先写好的表格,并使用为其分配的行或列所预设的测量设置来测量它们,从而得到各自的 ±1 条目。

所能设想的的最佳经典策略在九轮中至少会输掉一轮,胜率最高为 88.89%。当我们将全部九个版本的游戏各玩 100,000 次时,我们的量子比特大约每六十次输一次,胜率为 98.30%(0.9830 ± 0.0001)。

这一差距是有意义的,且在统计上显著:我们的量子比特协调得比任何预先写好的表格所允许的都要好。这是因为没有任何一个格子的值是事先固定的。每个答案只有在与同一行或同一列的其他内容(即其语境)一起被测量时才成形,而共享的纠缠使 Alice 和 Bob 对共享格子的答案保持一致。

魔法方格游戏展示了语境性的潜在威力,因此我们接下来着手测量一台机器的语境性有多强。我们使用了一个贝尔—科亨—斯佩克不等式,它与著名的贝尔检验密切相关——后者表明,像上面那些贝尔对一样的纠缠粒子不可能携带事先固定的答案。我们的不等式将一组关联汇总为一个数,χ。用上面游戏中的行和列来表述,它写作 χ = R1 + R2 + R3 − C1 − C2 − C3,其中 R 和 C 分别代表 Alice 和 Bob 此前必须计算的行乘积和列乘积:

| +1 | +1 | +1 | R1 = (+1)(+1)(+1) = +1 |
| +1 | −1 | −1 | R2 = (+1)(−1)(−1) = +1 |
| −1 | +1 | −1 | R3 = (−1)(+1)(−1) = +1 |
| C1 = (+1)(+1)(−1) = −1 | C2 = (+1)(−1)(+1) = −1 | C3 = (+1)(−1)(−1) = +1 | χ = 4 |

任何测量结果都是预先确定的宇宙都必须服从 χ ≤ 4(试几张表格你就会发现,χ 只能取 −4、0 和 4 这几个值)。量子力学允许其取值高达 6,而这只有在所有 R 均为 +1 且所有 C 均为 −1 时才能发生。与大多数此类检验不同,这一检验是与状态无关的:无论你如何制备量子比特,结果都一样,这使它成为机器本身的属性,而非某个精心挑选的输入的属性。

测量 χ 要求很高:每一行和每一列都必须在同样的两个量子比特上依次测量,且不能扰动它们。我们用一个额外的辅助量子比特(“ancilla”)来完成这件事,它拾取每一个结果并被测量,从而使两个主量子比特保持完好。我们连续进行了 540 次测量,重复了 1,000 次。

我们测得 χ = 5.590 ± 0.008。

舒适地越过了 4 这一经典界限,距量子极限仅差 7%。这个数字说明:语境性就存在于这台机器的这个量之中。

两个量子比特是一回事,但量子效应很脆弱,每增加一个量子比特都会带来可能将其冲淡的噪声。有用的量子计算需要许多量子比特协同工作,所以问题在于语境性能否在规模上存活下来。

在 GHZ 宇称游戏中,N 名玩家共享一个纠缠的 GHZ 态(所有量子比特同为 0 与同为 1 的叠加态)。每名玩家得到一个一比特的问题,并以一比特作答,彼此不能通信。如果所有答案的宇称(偶数或奇数)与问题所设定的规则相符,他们就赢了。随机猜测有一半的时间会赢,而最佳的经典方案也只是略好一点:三名玩家时为 75%,随着玩家增多而趋近 50%。共享的 GHZ 态则每次都能获胜。我们最多用到了 71 名玩家,每个量子比特一人。噪声使我们达不到 100%,且随着每增加一个量子比特而增大,因此我们的领先优势收窄,但始终保持在经典界限之上。我们还在 45 个量子比特上验证了真正的纠缠,这超过了许多早期 GHZ 实验的完整规模。

除了多人游戏之外,同样的物理也区分了浅层量子电路与经典电路。2018 年,一个里程碑式的定理证明,一个特定问题——寻找隐藏线性函数——可以由恒定深度的量子电路解决,而任何恒定深度的经典电路都无法做到。这种量子优势的来源可追溯到语境性。

在这一定理中,恒定深度至关重要。它意味着电路不会随着问题变大而变深。由于每个输出比特都在固定步数内计算完成,信息只有时间传播很短的距离。因此每个经典输出只能“看到”输入的一小片邻域,就像一则必须在三分钟内穿越整座城市的传闻。而量子电路由于纠缠已经预先铺好,就不受这样的限制。

该算法此前从未在真实硬件上大规模运行过。我们运行了它,在多达 105 个量子比特的网格上求解隐藏线性函数实例,成功概率超过二分之一,且严格采用理论所规定的浅层电路方案。

在运行这些实验的过程中,还顺带发生了一件有用的事。这些任务要求许多量子比特同时且精确地达成一致。运行它们暴露了我们系统中细微的相干错误——那种会使量子态略微偏离目标的错误,而传统的随机电路基准测试往往将其平均掉,使其无从显现。

这暗示了语境性的第二种用途:不仅是作为计算资源,还可以作为一把尺子。

大多数基准测试问的是处理器能否越过某条经典横杆。而这些任务反其道而行之,给硬件设定了一个由物理本身规定的上限:χ = 6,胜率为 1,完美的语境性分数。机器所达到的水平与自然所允许的水平之间的距离,由此成为一个客观而有意义的评分。而且,与那些越来越容易越过的经典横杆不同,这个上限永远不动。我们的量子处理器越好,这样的基准测试就越能精确地区分优劣。这对于化学和材料科学中的分子模拟等现实应用尤为相关,因为它衡量的是处理器运行结构化算法的能力——在那些算法中,细微错误无处藏身。

一个近一个世纪之久的、关于物理系统在无人观看时是否始终存在的争论,原来可以有一个可测量的检验。对于我们的量子比特,裁决很明确:并非我们所测量的一切都具有等待被观测的预先存在的值。理论将语境性与纠错量子计算机运行完整算法所需的“魔法态”联系起来,而我们团队最近利用魔法态培育技术制备了这种态。

在许多量子比特上测量语境性,使我们能够在真实硬件上探究物理学和计算机科学中的一个悬而未决的问题:究竟是什么赋予了量子计算机优势。

这项工作由 Google Quantum AI 团队与我们的学术合作者共同完成。我们感谢所有构建和维护硬件、控制电子设备、低温系统及软件的人,正是他们使这些实验成为可能。

英文来源:

November 19, 2026
Shashwat Kumar and Rodrigo Cortiñas, Research Scientists, Google Quantum AI, Google Research
On a superconducting processor, we turned one of quantum mechanics’ strangest features into something you can measure, benchmark, and put to work across systems as large as 105 qubits.
Here is a Sunday paper-style puzzle you can try right now. Draw a 3×3 grid. Fill every cell with either +1 or −1, subject to two rules: each row must multiply to +1, and each column must multiply to −1.
Go ahead. We’ll wait…
You didn’t manage it, right? There is an elegant reason for that. For a row to multiply to +1, it needs an even number of −1s. For a column to multiply to −1, it needs an odd number. Add up the rows and you learn the grid contains an even number of −1s. Add up the columns and you learn it contains an odd number. Well…That’s impossible!
The grid would have to be two contradictory things at once. No such table exists; it is a paradox.
Now turn the puzzle into a game: Each round, Alice is handed a row and Bob a column. Without talking, Alice fills her row by the row rule and Bob fills his column by the column rule. They win if they put the same number in the square where their row and column intersect. Any plan made in advance is just a pre-written table, meaning at best they will win 8 out of 9 rounds. This changes if they use a quantum computer. It won't fill in the impossible grid, but in principle, it lets them win every round.
The reason is a property called quantum contextuality, arguably the strangest feature of quantum mechanics. Einstein once famously asked whether the moon is there when nobody looks, his way of insisting that physical properties ought to exist whether or not anyone measures them. For quantum systems, contextuality is the precise, experimentally testable statement that the answer can be no: you cannot assign fixed, pre-existing values to everything you might measure.
What a measurement yields can depend on which other compatible measurements you make alongside it (i.e., on its context). This is not only a deep philosophical statement, but more so, cutting-edge science and the basis of a new technology. And in the game above, Alice and Bob can use it to engineer a solution. Their answers are not looked up in a hidden table written in advance; the table does not exist. Their answers come into being as they measure, and quantum correlations stitch them together more tightly than any classical rulebook permits.
Entanglement usually gets top billing as the “magic ingredient” of quantum computing. But a growing body of theory suggests contextuality is the deeper resource, the thing that actually powers certain quantum algorithms past their classical counterparts. The catch is that, until recently, contextuality had been demonstrated almost exclusively in small systems of a few particles. Whether it survives, and stays useful, in the many-body systems that real quantum computers are made of was an open question.
That is the question we set out to answer. In "Quantum-classical separation in bounded-resource tasks arising from measurement contextuality," published in Science, we demonstrate and measure contextuality on our superconducting quantum processors. Our qubits win the magic square game 98.3% of the time, exceed the classical limit on a contextuality test, and outperform classical strategies in tasks spanning up to 105 qubits. Along the way, these tasks proved to be a sensitive new benchmark for quantum hardware, catching subtle errors that random-circuit tests miss.
We ran what is commonly called the magic square game on our Willow quantum processor. Alice and Bob each hold two qubits, sharing two entangled Bell pairs instead of a pre-written table, and measure them using preset settings for their assigned row or column to get their ±1 entries.
The best conceivable classical strategy loses at least one round in nine, winning at most 88.89% of the time. When we played all nine versions of the game 100,000 times apiece, our qubits lost roughly one in sixty, winning 98.30% of them (0.9830 ± 0.0001).
The gap is meaningful and statistically significant: our qubits coordinated better than any pre-written table allows. That's because no cell has a value fixed in advance. Each answer takes shape only when it is measured alongside the rest of its row or column (its context), and shared entanglement makes Alice's and Bob's answers for the shared cell agree.
The magic square game demonstrated the potential power of contextuality, so next we set out to measure how contextual a machine is. We used a Bell–Kochen–Specker inequality, closely related to the famous Bell test which showed that entangled particles like the Bell pairs above can't carry answers fixed in advance. Our inequality bundles a set of correlations into a single number, χ. In terms of the rows and columns from the game above it reads, χ = R1 + R2 + R3 − C1 − C2 − C3, where R and C represent the products of the rows and columns Alice and Bob had to calculate earlier:
| +1 | +1 | +1 | R1 = (+1)(+1)(+1) = +1 |
| +1 | −1 | −1 | R2 = (+1)(−1)(−1) = +1 |
| −1 | +1 | −1 | R3 = (−1)(+1)(−1) = +1 |
| C1 = (+1)(+1)(−1) = −1 | C2 = (+1)(−1)(+1) = −1 | C3 = (+1)(−1)(−1) = +1 | χ = 4 |
Any universe where measurement outcomes are predetermined must obey χ ≤ 4 (try a few tables and you will see that χ can only take values -4, 0, and 4). Quantum mechanics permits values up to 6, which can only happen if all Rs = +1 and all Cs = -1. And unlike most such tests, this one is state-independent: it doesn’t matter how you prepare the qubits, which makes it a property of the machine rather than of a carefully chosen input.
Measuring χ is demanding: every row and column must be measured on the same two qubits, one after another, without disturbing them. We did this with an extra helper qubit (an "ancilla") that picks up each result and is measured instead, leaving the two main qubits intact. We ran 540 measurements in a row, repeated 1,000 times.
We measured χ = 5.590 ± 0.008.
Comfortably past the classical bound of 4 and only 7% away from the quantum limit. A number that says: the contextuality is in this machine in this quantity.
Two qubits are one thing, but quantum effects are fragile, and every added qubit brings noise that can wash them out. Useful quantum computing needs many qubits working together, so the question is whether contextuality survives at scale.
In the GHZ parity game, N players share one entangled GHZ state (a superposition of all qubits being 0 and all being 1). Each player gets a one-bit question and answers with one bit, without communicating. They win if the parity (even or odd) of all the answers matches a rule set by the questions. Random guessing wins half the time, and the best classical plan does only a bit better: 75% for three players, shrinking toward 50% as players are added. A shared GHZ state wins every time. We played with up to 71 players, one per qubit. Noise keeps us below 100% and grows with each added qubit, so our lead narrows, but we stay above the classical bound throughout. We also verified genuine entanglement across 45 qubits, more than the full size of many earlier GHZ experiments.
Beyond multiplayer games, the same physics separates shallow quantum and classical circuits. In 2018, a landmark theorem proved that a specific problem, finding a hidden linear function, can be solved by a constant depth quantum circuit, and that no classical circuit of constant depth can. The source of this quantum advantage traces back to contextuality.
In this proof, constant depth matters. It means the circuit doesn’t get deeper as the problem gets bigger. Because every output bit is computed in a fixed number of steps, information has time to travel only a short distance. Each classical output can therefore only “see” a small neighborhood of the input, like a rumor that must cross a city in three minutes. Quantum circuits, with entanglement already laid down, are not so limited.
That algorithm had never been run at scale on real hardware. We ran it, solving hidden-linear-function instances on grids of up to 105 qubits, with success probabilities above one-half, using exactly the shallow-circuit recipe the theory prescribes.
While running these experiments, something useful happened along the way. These tasks demand that many qubits agree simultaneously and exactly. Running them surfaced subtle coherent errors in our system, the kind that rotates a quantum state slightly off-target, which conventional random-circuit benchmarks tend to average away into invisibility.
That suggests a second use for contextuality: not just as a computational resource, but as a ruler.
Most benchmarks ask whether a processor can clear some classical bar. These tasks instead give hardware a ceiling set by physics itself: χ = 6, a win probability of 1, a perfect contextual fraction. The distance between what a machine achieves and what nature permits becomes an objective, meaningful score. And unlike classical bars that get easier to clear, this ceiling never moves. The better our quantum processors get, the more precisely such a benchmark discriminates. This is particularly relevant for real-world applications, such as simulations of molecules for chemistry and materials science, because it measures a processor’s ability to run structured algorithms, where subtle errors can’t hide.
A nearly century-old argument about whether physical systems always exist when nobody looks turns out to have a measurable test. For our qubits, the verdict is clear: not everything we measure can have pre-existing values waiting to be observed. Theory links contextuality to the "magic states" that error-corrected quantum computers need to run full algorithms, which our team recently prepared using magic state cultivation.
Measuring contextuality across many qubits lets us probe an open question in physics and computer science on real hardware: what gives quantum computers their edge.
This work was carried out by the Google Quantum AI team together with our academic collaborators. We thank everyone who built and maintained the hardware, control electronics, cryogenics and software that made these experiments possible.

谷歌研究进展

文章目录


    扫描二维码,在手机上阅读