mindquantum.algorithm.compiler.abc_decompose#
- mindquantum.algorithm.compiler.abc_decompose(gate, return_u3=True)#
通过abc分解来分解量子门。
- 参数:
gate (
QuantumGate) - 只有一个控制为的单比特量子门。return_u3 (bool) - 如果为
True,则返回U3形式的分解,否则返回UnivMathGate形式的分解。默认值:True。
- 返回:
Circuit,由单比特门和CNOT门构成的量子线路。