def __repr__(self):
    'Constructor-call-like representation.'
    temp = super().__repr__()
    if (self.return_type is None):
        return temp
    if (self.return_type is Probability):
        return (repr(self.return_type) + '(wires={})'.format(self.wires.tolist()))
    return (((repr(self.return_type) + '(') + temp) + ')')
Constructor-call-like representation.
def __repr__(self):
    
    temp = super().__repr__()
    if (self.return_type is None):
        return temp
    if (self.return_type is Probability):
        return (repr(self.return_type) + '(wires={})'.format(self.wires.tolist()))
    return (((repr(self.return_type) + '(') + temp) + ')')