qiskit.quantum_info.PauliList.argsort¶
- PauliList.argsort(weight=False, phase=False)[ソース]¶
Return indices for sorting the rows of the table.
The default sort method is lexicographic sorting by qubit number. By using the weight kwarg the output can additionally be sorted by the number of non-identity terms in the Pauli, where the set of all Paulis of a given weight are still ordered lexicographically.
- パラメータ
weight (bool) – Optionally sort by weight if
True
(Default:False
).phase (bool) – Optionally sort by phase before weight or order (Default:
False
).
- 戻り値
the indices for sorting the table.
- 戻り値の型
array