How to use the pyqpanda.pyQPanda.iSWAP function in pyqpanda

To help you get started, we’ve selected a few pyqpanda examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github OriginQ / QPanda-2 / pyQPanda / pyqpanda / pywrapper.py View on Github external
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)
github OriginQ / QPanda-2 / pyQPanda / pyqpanda / pywrapper.py View on Github external
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)