simplify_pauli_sum

pyquil.paulis.simplify_pauli_sum(pauli_sum)[source]

Simplify the sum of Pauli operators according to Pauli algebra rules.

Warning: The simplified expression may re-order pauli operations, and may impact the observed performance when running on the QPU.

Return type

PauliSum