@property
def matrix(self):
    'Matrix representation of an instantiated operator\n        in the computational basis.\n\n        **Example:**\n\n        >>> U = qml.RY(0.5, wires=1)\n        >>> U.matrix\n        >>> array([[ 0.96891242+0.j, -0.24740396+0.j],\n                   [ 0.24740396+0.j,  0.96891242+0.j]])\n\n        Returns:\n            array: matrix representation\n        '
    return self._matrix(*self.parameters)
Matrix representation of an instantiated operator
in the computational basis.

**Example:**

>>> U = qml.RY(0.5, wires=1)
>>> U.matrix
>>> array([[ 0.96891242+0.j, -0.24740396+0.j],
           [ 0.24740396+0.j,  0.96891242+0.j]])

Returns:
    array: matrix representation
@property
def matrix(self):
    'Matrix representation of an instantiated operator\n        in the computational basis.\n\n        **Example:**\n\n        >>> U = qml.RY(0.5, wires=1)\n        >>> U.matrix\n        >>> array([[ 0.96891242+0.j, -0.24740396+0.j],\n                   [ 0.24740396+0.j,  0.96891242+0.j]])\n\n        Returns:\n            array: matrix representation\n        '
    return self._matrix(*self.parameters)