PauliSum.get_programs

PauliSum.get_programs()[source]

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

Returns:(programs, coefficients)