@classmethod
def _matrix(cls, *params):
    'Matrix representation of the operator\n        in the computational basis.\n\n        This is a *class method* that should be defined for all\n        new operations and observables, that returns the matrix representing\n        the operator in the computational basis.\n\n        This private method allows matrices to be computed\n        directly without instantiating the operators first.\n\n        To return the matrices of *instantiated* operators,\n        please use the :attr:`~.Operator.matrix` property instead.\n\n        **Example:**\n\n        >>> qml.RY._matrix(0.5)\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        '
    raise NotImplementedError
Matrix representation of the operator
in the computational basis.

This is a *class method* that should be defined for all
new operations and observables, that returns the matrix representing
the operator in the computational basis.

This private method allows matrices to be computed
directly without instantiating the operators first.

To return the matrices of *instantiated* operators,
please use the :attr:`~.Operator.matrix` property instead.

**Example:**

>>> qml.RY._matrix(0.5)
>>> array([[ 0.96891242+0.j, -0.24740396+0.j],
           [ 0.24740396+0.j,  0.96891242+0.j]])

Returns:
    array: matrix representation
@classmethod
def _matrix(cls, *params):
    'Matrix representation of the operator\n        in the computational basis.\n\n        This is a *class method* that should be defined for all\n        new operations and observables, that returns the matrix representing\n        the operator in the computational basis.\n\n        This private method allows matrices to be computed\n        directly without instantiating the operators first.\n\n        To return the matrices of *instantiated* operators,\n        please use the :attr:`~.Operator.matrix` property instead.\n\n        **Example:**\n\n        >>> qml.RY._matrix(0.5)\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        '
    raise NotImplementedError