Skip to content

Commit

Permalink
renaming _MultisetSort to _MultisetSortKey
Browse files Browse the repository at this point in the history
  • Loading branch information
DanPuzzuoli committed Apr 6, 2023
1 parent 3400b05 commit b770376
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qiskit_dynamics/perturbation/multiset_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def _multiset_to_sorted_list(multiset: Multiset) -> List:
return sorted_list


class _MultisetSort:
class _MultisetSortKey:
"""Dummy class for usage as a key when sorting Multiset instances. This assumes the elements
of the multisets can themselves be sorted.
"""
Expand Down Expand Up @@ -90,7 +90,7 @@ def _sorted_multisets(multisets: Iterable[Multiset]) -> List[Multiset]:
"""Sort in non-decreasing order according to the ordering described in the dummy class
_MultisetSort.
"""
return sorted(multisets, key=_MultisetSort)
return sorted(multisets, key=_MultisetSortKey)


def _clean_multisets(multisets: List[Multiset]) -> List[Multiset]:
Expand Down

0 comments on commit b770376

Please sign in to comment.