old/qgate.py
def RZ(theta):
    """
    Returns R(theta) gate, or rotation matrix
    """
    return np.matrix([[exp(-1j * theta /2.0), 0],[0, exp(1j * theta/ 2.0)]])

    Returns R(theta) gate, or rotation matrix
    
Returns R(theta) gate, or rotation matrix
Returns R ( theta ) gate or rotation matrix
def RZ(theta):
    return np.matrix([[exp(-1j * theta /2.0), 0],[0, exp(1j * theta/ 2.0)]])
def RZ ( theta ) : return np . matrix ( [ [ exp ( - 1j * theta / 2.0 ) , 0 ] , [ 0 , exp ( 1j * theta / 2.0 ) ] ] )
Returns R(theta) gate, or rotation matrix
Returns R ( theta ) gate or rotation matrix
"""
    Returns R(theta) gate, or rotation matrix
    """
theta