@property
def generator(self):
    'Generator of the operation.\n\n        A length-2 list ``[generator, scaling_factor]``, where\n\n        * ``generator`` is an existing PennyLane\n          operation class or :math:`2\\times 2` Hermitian array\n          that acts as the generator of the current operation\n\n        * ``scaling_factor`` represents a scaling factor applied\n          to the generator operation\n\n        For example, if :math:`U(\\theta)=e^{i0.7\\theta \\sigma_x}`, then\n        :math:`\\sigma_x`, with scaling factor :math:`s`, is the generator\n        of operator :math:`U(\\theta)`:\n\n        .. code-block:: python\n\n            generator = [PauliX, 0.7]\n\n        Default is ``[None, 1]``, indicating the operation has no generator.\n        '
    return [None, 1]
Generator of the operation.

A length-2 list ``[generator, scaling_factor]``, where

* ``generator`` is an existing PennyLane
  operation class or :math:`2\times 2` Hermitian array
  that acts as the generator of the current operation

* ``scaling_factor`` represents a scaling factor applied
  to the generator operation

For example, if :math:`U(\theta)=e^{i0.7\theta \sigma_x}`, then
:math:`\sigma_x`, with scaling factor :math:`s`, is the generator
of operator :math:`U(\theta)`:

.. code-block:: python

    generator = [PauliX, 0.7]

Default is ``[None, 1]``, indicating the operation has no generator.
@property
def generator(self):
    'Generator of the operation.\n\n        A length-2 list ``[generator, scaling_factor]``, where\n\n        * ``generator`` is an existing PennyLane\n          operation class or :math:`2\\times 2` Hermitian array\n          that acts as the generator of the current operation\n\n        * ``scaling_factor`` represents a scaling factor applied\n          to the generator operation\n\n        For example, if :math:`U(\\theta)=e^{i0.7\\theta \\sigma_x}`, then\n        :math:`\\sigma_x`, with scaling factor :math:`s`, is the generator\n        of operator :math:`U(\\theta)`:\n\n        .. code-block:: python\n\n            generator = [PauliX, 0.7]\n\n        Default is ``[None, 1]``, indicating the operation has no generator.\n        '
    return [None, 1]