def control(self, num_ctrl_qubits: Optional[int]=1, label: Optional[str]=None, ctrl_state: Optional[Union[(int, str)]]=None):
    "Return controlled version of gate. See :class:`.ControlledGate` for usage.\n\n        Args:\n            num_ctrl_qubits: number of controls to add to gate (default=1)\n            label: optional gate label\n            ctrl_state: The control state in decimal or as a bitstring\n                (e.g. '111'). If None, use 2**num_ctrl_qubits-1.\n\n        Returns:\n            qiskit.circuit.ControlledGate: Controlled version of gate. This default algorithm\n            uses num_ctrl_qubits-1 ancillae qubits so returns a gate of size\n            num_qubits + 2*num_ctrl_qubits - 1.\n\n        Raises:\n            QiskitError: unrecognized mode or invalid ctrl_state\n        "
    from .add_control import add_control
    return add_control(self, num_ctrl_qubits, label, ctrl_state)
Return controlled version of gate. See :class:`.ControlledGate` for usage.

Args:
    num_ctrl_qubits: number of controls to add to gate (default=1)
    label: optional gate label
    ctrl_state: The control state in decimal or as a bitstring
        (e.g. '111'). If None, use 2**num_ctrl_qubits-1.

Returns:
    qiskit.circuit.ControlledGate: Controlled version of gate. This default algorithm
    uses num_ctrl_qubits-1 ancillae qubits so returns a gate of size
    num_qubits + 2*num_ctrl_qubits - 1.

Raises:
    QiskitError: unrecognized mode or invalid ctrl_state
def control(self, num_ctrl_qubits: Optional[int]=1, label: Optional[str]=None, ctrl_state: Optional[Union[(int, str)]]=None):
    "Return controlled version of gate. See :class:`.ControlledGate` for usage.\n\n        Args:\n            num_ctrl_qubits: number of controls to add to gate (default=1)\n            label: optional gate label\n            ctrl_state: The control state in decimal or as a bitstring\n                (e.g. '111'). If None, use 2**num_ctrl_qubits-1.\n\n        Returns:\n            qiskit.circuit.ControlledGate: Controlled version of gate. This default algorithm\n            uses num_ctrl_qubits-1 ancillae qubits so returns a gate of size\n            num_qubits + 2*num_ctrl_qubits - 1.\n\n        Raises:\n            QiskitError: unrecognized mode or invalid ctrl_state\n        "
    from .add_control import add_control
    return add_control(self, num_ctrl_qubits, label, ctrl_state)