qiskit-community / qiskit-dynamics

Tools for building and solving models of quantum systems in Qiskit
https://qiskit-community.github.io/qiskit-dynamics/
Apache License 2.0
105 stars 61 forks source link

Fix perturbation label re-ordering bug #307

Closed DanPuzzuoli closed 10 months ago

DanPuzzuoli commented 10 months ago

Summary

The entries of the perturbation_labels argument to solve_lmde_perturbation were being re-ordered erroneously by the helper function _clean_multisets in a validation check. This PR ensures the original ordering is preserved during the validation check.