remove phase correction, see Qiskit doc on controlled rotation gate CRZ
@@ -40,11 +40,6 @@ def apply_cu3(circuit, theta, phi, lam, c, t, use_basis_gates=True):
else:
circuit.cu3(theta, phi, lam, c, t)
- # the u3 gate below is added to account for qiskit terra's cu3
- # TODO: here or only in if=True clause?
- if not np.isclose(float(phi + lam), 0.0):
- circuit.u3(0, 0, (phi + lam) / 2, c)
-
def apply_ccx(circuit, a, b, c, use_basis_gates=True):
if use_basis_gates:
