qiskit.quantum_info.PauliTable.argsort¶
- PauliTable.argsort(weight=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 Pauli’s of a given weight are still ordered lexicographically.
- 매개변수
weight (bool) – optionally sort by weight if True (Default: False).
- 반환
the indices for sorting the table.
- 반환 형식
array