Quanlse/QOperation/RotationGate.py
def U(theta: 'RotationArgument',
      phi: Optional['RotationArgument'] = None,
      lamda: Optional['RotationArgument'] = None) -> 'OperationFunc':
    """
    U Gate

    Generate a single-qubit U1 (or U2 or U3) gate according to the number of angles.
    """
    uGateArgumentList = angleList = [value for value in [theta, phi, lamda] if value is not None]
    gate = RotationGateOP('U', 1, angleList, uGateArgumentList)
    gate.generateMatrix = gate._generateUMatrix()
    return gate

    U Gate

    Generate a single-qubit U1 (or U2 or U3) gate according to the number of angles.
    
U Gate
Generate a single-qubit U1 (or U2 or U3) gate according to the number of angles.
U Gate Generate a single - qubit U1 ( or U2 or U3 ) gate according to the number of angles .
def U(theta: 'RotationArgument',
      phi: Optional['RotationArgument'] = None,
      lamda: Optional['RotationArgument'] = None) -> 'OperationFunc':
    uGateArgumentList = angleList = [value for value in [theta, phi, lamda] if value is not None]
    gate = RotationGateOP('U', 1, angleList, uGateArgumentList)
    gate.generateMatrix = gate._generateUMatrix()
    return gate
def U ( theta : 'RotationArgument' , phi : Optional [ 'RotationArgument' ] = None , lamda : Optional [ 'RotationArgument' ] = None ) -> 'OperationFunc' : uGateArgumentList = angleList = [ value for value in [ theta , phi , lamda ] if value is not None ] gate = RotationGateOP ( 'U' , 1 , angleList , uGateArgumentList ) gate . generateMatrix = gate . _generateUMatrix ( ) return gate
U Gate
Generate a single-qubit U1 (or U2 or U3) gate according to the number of angles.
U Gate Generate a single - qubit U1 ( or U2 or U3 ) gate according to the number of angles .
"""
    U Gate

    Generate a single-qubit U1 (or U2 or U3) gate according to the number of angles.
    """
theta
'RotationArgument'
phi
Optional['RotationArgument']
lamda
Optional['RotationArgument']