code: def U3(theta, phi, delta):
      r"""
      Arbitrary single qubit unitary.
  
      .. math::
  
          U_3(\theta, \phi, \delta) = \begin{bmatrix} \cos(\theta/2) & -\exp(i \delta)\sin(\theta/2) \\
          \exp(i \phi)\sin(\theta/2) & \exp(i (\phi + \delta))\cos(\theta/2) \end{bmatrix}
  
      Args:dd
          theta (float): polar angle :math:`\theta`
          phi (float): azimuthal angle :math:`\phi`
          delta (float): quantum phase :math:`\delta`
      """
      return math.array(
          [
              [
                  math.cos(theta / 2),
                  -math.exp(delta * 1j) * math.sin(theta / 2),
              ],
              [
                  math.exp(phi * 1j) * math.sin(theta / 2),
                  math.exp((phi + delta) * 1j) * math.cos(theta / 2),
              ],
          ]
      )
  
imports: import pennylane
  from pennylane import numpy
  from pennylane import math
label_desc: Use image node_id 8 for calling a global function with example usage: U3(theta, phi, delta) and returns: math