PauliSum.get_programs

PauliSum.get_programs()[source]

Get a Pyquil Program corresponding to each term in the PauliSum and a coefficient for each program

Return type:Tuple[List[Program], ndarray]
Returns:(programs, coefficients)