mindquantum.algorithm.compiler.euler_decompose
- mindquantum.algorithm.compiler.euler_decompose(gate, basis='zyz', with_phase=True)[源代码]
单比特门欧拉分解。
当前支持 ZYZ 和 U3 分解。
- 参数:
gate (
QuantumGate) - 一个单比特的量子门。basis (str) - 分解的基,可以是
'zyz'或者'u3'中的一个。默认值:'zyz'。with_phase (bool) - 是否将全局相位以
GlobalPhase的形式作用在量子线路上。
- 返回:
List[
Circuit],可能的分解方式。