Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lindblad model RWA bug fix #100

Merged
merged 2 commits into from
May 9, 2022
Merged

Conversation

DanPuzzuoli
Copy link
Collaborator

Summary

Fixes a bug in the rotating_wave_approximation function for when model is a LindbladModel and return_signal_map=True. The signature of the returned signal mapping function was inconsistent with the documentation, and has been fixed to restore consistency.

Details and comments

For a LindbladModel the rwa signal mapping function must act on both the Hamiltonian signals as well as the dissipator signals. The documentation for the rotating_wave_approximation implies that the returned signal mapping function, in the case of a LindbladModel, should have a single argument, corresponding to the structure of the LindbladModel.signals property, which contains both the Hamiltonian and dissipator signals in a two-entry tuple.

Currently, however, the signal mapping function returned by rotating_wave_approximation accepts the Hamiltonian and dissipator signals as two separate arguments, which is inconsistent. This PR fixes this to be consistent with the documentation.

@DanPuzzuoli DanPuzzuoli added the Changelog: Bugfix Include in the "Fixed" section of the changelog label May 9, 2022
@DanPuzzuoli DanPuzzuoli requested a review from brosand May 9, 2022 16:14
Copy link
Contributor

@brosand brosand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DanPuzzuoli DanPuzzuoli merged commit 2f9a667 into qiskit-community:main May 9, 2022
donsano33 pushed a commit to donsano33/qiskit-dynamics that referenced this pull request Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Bugfix Include in the "Fixed" section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants