def inv(self):
    'Inverses the CirqOperation.'
    if self.parametrized_cirq_gates:
        raise qml.DeviceError("CirqOperation can't be inverted after it was parametrized.")
    self.is_inverse = (not self.is_inverse)
Inverses the CirqOperation.
def inv(self):
    
    if self.parametrized_cirq_gates:
        raise qml.DeviceError("CirqOperation can't be inverted after it was parametrized.")
    self.is_inverse = (not self.is_inverse)