def __repr__(self):
    'Constructor-call-like representation.'
    if self.parameters:
        params = ', '.join([repr(p) for p in self.parameters])
        return '{}({}, wires={})'.format(self.name, params, self.wires.tolist())
    return '{}(wires={})'.format(self.name, self.wires.tolist())
Constructor-call-like representation.
def __repr__(self):
    
    if self.parameters:
        params = ', '.join([repr(p) for p in self.parameters])
        return '{}({}, wires={})'.format(self.name, params, self.wires.tolist())
    return '{}(wires={})'.format(self.name, self.wires.tolist())