WeightedPauliOperator.reorder_paulis

WeightedPauliOperator.reorder_paulis()[source]

Reorder the paulis based on the basis and return the reordered paulis.

Returns

the ordered paulis based on the basis.

Return type

list[list[complex, paulis]]