Пример #1
0
 def _mirrored_gate_fidelities(node):
     matrix = node.op.to_matrix()
     swap = SwapGate().to_matrix()
     targetm = TwoQubitWeylDecomposition(matrix @ swap)
     tracesm = two_qubit_cnot_decompose.traces(targetm)
     return [trace_to_fid(tracesm[i]) for i in range(4)]
Пример #2
0
 def _gate_fidelities(node):
     matrix = node.op.to_matrix()
     target = TwoQubitWeylDecomposition(matrix)
     traces = two_qubit_cnot_decompose.traces(target)
     return [trace_to_fid(traces[i]) for i in range(4)]