A trial to map grouping problem of Pauli strings to knapsack problem, and use known genetic algorithm (NSGA-II) to solve it.
Given
The constraint for a group is that every members in the same group has to commute with each other.
Then we can consider a gene of length
For example, when
Then by adopting NSGA-II to the design of gene, we can find the smallest grouping given the runtime is long enough.