@label.setter
def label(self, name: str):
    'Set gate label to name\n\n        Args:\n            name (str or None): label to assign unitary\n\n        Raises:\n            TypeError: name is not string or None.\n        '
    if isinstance(name, (str, type(None))):
        self._label = name
    else:
        raise TypeError('label expects a string or None')
Set gate label to name

Args:
    name (str or None): label to assign unitary

Raises:
    TypeError: name is not string or None.
@label.setter
def label(self, name: str):
    'Set gate label to name\n\n        Args:\n            name (str or None): label to assign unitary\n\n        Raises:\n            TypeError: name is not string or None.\n        '
    if isinstance(name, (str, type(None))):
        self._label = name
    else:
        raise TypeError('label expects a string or None')