加载中…
We develop a recursive algorithm to generalize the quantum SWAP test for an arbitrary number of quantum states requiring controlled-swap (CSWAP) gates and ancillary qubits. We construct a quantum circuit able to simultaneously measure overlaps of arbitrary pure states. Our construction relies on a pairing unitary that generates a superposition state where every pair of input states is labelled by a basis state formed by the ancillaries.

生成讲解博客的中文版本

生成AI智能校验的中文版本