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

add arguments for plot_wigner_fock_distribution #2057

Merged
merged 4 commits into from Mar 1, 2024

Conversation

KosukeMizuno
Copy link
Contributor

@KosukeMizuno KosukeMizuno commented Jan 13, 2023

Description

Related to #1112. The scalling of Winger fuction can be changed in wigner() (default is g=sqrt(2)). But it cannot be specified with plot_wigner() or plot_wigner_fock_distribution(). For my usage, it should be g=2, so it was inconvenient. I modified these two plotter functions to pass g (and the other args of wigner()).

@KosukeMizuno KosukeMizuno marked this pull request as ready for review January 13, 2023 06:27
@coveralls
Copy link

Coverage Status

Coverage: 72.168%. Remained the same when pulling 8f1094e on KosukeMizuno:plot_wigner_args into fccec5d on qutip:master.

Copy link
Member

@Ericgig Ericgig left a comment

Choose a reason for hiding this comment

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

Sorry @KosukeMizuno for letting this fall though the cracks.
The change looks good, thank you for the contribution.

qutip/visualization.py Outdated Show resolved Hide resolved
qutip/visualization.py Outdated Show resolved Hide resolved
@Ericgig
Copy link
Member

Ericgig commented Feb 29, 2024

Since this PR was made, a new function, anim_wigner, was added to make animations using plot_wigner.
Changing plot_wigner signature created a conflict that was not visible using github conflict resolution tool...
@KosukeMizuno would you be able to fix that conflict?

@Ericgig Ericgig merged commit 79eab30 into qutip:master Mar 1, 2024
10 of 12 checks passed
@KosukeMizuno
Copy link
Contributor Author

oh you were much faster than me. Anyway thanks for approving this change :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants