mindquantum.algorithm.compiler.ccx_decompose

mindquantum.algorithm.compiler.ccx_decompose#

mindquantum.algorithm.compiler.ccx_decompose(gate)#

分解一个 toffoli 门。

参数:
  • gate (XGate) - 一个有两个控制位的 XGate 门。

返回:

List[Circuit],可能的分解方式。