A CCCZ gate performed with 6 T gates
A CCCZ gate performed with 6 T gates
复制标题
由 6 个 T 门组成的 CCCZ 门
DOI:
--
复制
发表时间:
2021
期刊:
影响因子:
--
通讯作者:
N. C. Jones
中科院分区:
文献类型:
--
作者:
C. Gidney;N. C. Jones
This short note reports a small serendipitous discovery that occurred while I was discussing a circuit optimization problem [4] with Cody. I was using Quirk [2] to demonstrate ideas, and Cody suggested an idea for how to approach the problem based on targeting one ancilla with two Toffolis so that a pair of T gates would cancel where the Toffolis met. I’d tried a similar idea before, and was going through the motions of showing how it didn’t quite work, when Cody pointed out that a CCCZ kickback had suddenly appeared in the circuit despite there only being 6 T gates. I isolated the CCCZ, cleaned up the circuit, and produced Figure 1. The circuit works because iab⊕cd = ii(−1). The circuit uses two Toffolis to prepare ab⊕ cd onto an ancilla, where a, b, c, d are the computational basis values of four qubits. The Toffolis are computed using four T gates instead of seven, to get phase kickback onto the controls. The Toffolis touch in a way that cancels two more T gates. After the ancilla is computed, it is phased and then removed using measurement based uncomputation. The kickback from the Toffolis cancels the ii components that arise from phasing the ancilla. This leaves behind only the (−1) term, which is the CCCZ. A Pauli gate with n > 2 controls can be performed with 4n − 4 T gates by using n − 2 temporary AND gates to cut the controls down to a pair controlling a Toffoli [3]. The final AND gate and the Toffoli can be replaced by a 6T CCCZ, saving 2 T gates, reducing the T cost to 4n− 6. Oddly, we’ve otherwise not found any way to iterate or nest or generalize the 6T CCCZ in a way that performs common operations with lower T costs. The 6T CCCZ circuit is simple enough that this note is likely a rediscovery, but we aren’t aware of prior art. We did find that Table I of Beverland et al. 2019 [1] claims that a |CCCZ〉 state can be prepared using six T gates, suggesting they knew the construction. However, the table references a paper [5] with a construction that uses eight T gates, not six. When we contacted Beverland et al. they guessed that the T count listed in the table was most likely a typo. Assuming that’s the case, we’re happy to report that the typo was merely ahead of its time.
影响因子:
6.7
作者:
Beverland, Michael;Campbell, Earl;Kliuchnikov, Vadym
通讯作者:
Kliuchnikov, Vadym