code: def get_programs(self):
          
          programs = [term.program for term in self.terms]
          coefficients = np.array([term.coefficient for term in self.terms])
          return programs, coefficients
docs: Get a Pyquil Program corresponding to each term in the PauliSum and a coefficient
          for each program
  
          :return: (programs, coefficients)