def METHOD_NAME(self):
    """Return the inverse.
    Note that the resulting Gate object has an empty ``params`` property.
    """
    inverse_gate = Gate(
        name=self.name + "_dg", num_qubits=self.num_qubits, params=[]
    )  # removing the params because arrays are deprecated
    definition = QuantumCircuit(*self.definition.qregs)
    for inst in reversed(self._definition):
        definition._append(inst.replace(operation=inst.operation.METHOD_NAME()))
    inverse_gate.definition = definition
    return inverse_gate