Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def iSWAP(qubit1,qubit2,theta=None):
"""
QPanda Basic API` \n
Create an iSWAP(theta) gate \n
theta is optional \n
Qubit,Qubit,double(Optional) -> QGate
"""
if theta is None:
return pyQPanda.iSWAP(qubit1,qubit2)
else:
return pyQPanda.iSWAP(qubit1,qubit2,theta)
def iSWAP(qubit1,qubit2,theta=None):
"""
QPanda Basic API` \n
Create an iSWAP(theta) gate \n
theta is optional \n
Qubit,Qubit,double(Optional) -> QGate
"""
if theta is None:
return pyQPanda.iSWAP(qubit1,qubit2)
else:
return pyQPanda.iSWAP(qubit1,qubit2,theta)