code: def get_generation_code(self, **gencode):
          
          channels, verts = self.coordinates
          channels = ', '.join(["'{}'".format(ch) for ch in channels])
  
          verts = list(verts)
  
          ## Formatting the vertexes
          # List level (must be first), used for gates that may have multiple vertexes like a polygon
          if len(verts) == 1:
              verts = verts[0]
  
              # Tuple level (must be second), used for catching the number of dimensions
              # on which a vertex is defined
              if len(verts) == 1:
                  verts = verts[0]
  
          # Format vertices to include less sigfigs
          verts = apply_format(verts, '{:.3e}')
  
          gencode.setdefault('name', self.name)
          gencode.setdefault('region', self.region)
          gencode.setdefault('gate_type', self._gencode_gate_class)
          gencode.setdefault('verts', verts)
          gencode.setdefault('channels', channels)
          format_string = "{name} = {gate_type}({verts}, ({channels}), region='{region}', name='{name}')"
          return format_string.format(**gencode)
docs: Generates python code that can create the gate.