Skip to content

Removed certain distributions already in visualization#2607

Merged
Ericgig merged 20 commits into
qutip:masterfrom
MathiB123:Distributions_to_visualizations
Jan 14, 2025
Merged

Removed certain distributions already in visualization#2607
Ericgig merged 20 commits into
qutip:masterfrom
MathiB123:Distributions_to_visualizations

Conversation

@MathiB123

Copy link
Copy Markdown
Contributor

Removed WignerDistribution, QDistribution from distributions.py and their tests.

Added Harmonic Oscillator to API doc.

@Ericgig Ericgig left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looking good for the removals.

plot_qfunc looks good, but it need to be integrated in the rest of the code more: apidoc, __all__, tests, animations, towncrier... You can search for plot_wigner in the full project, for a list places.

@Ericgig Ericgig left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Also changes in #2599 broke qutip-jax tests.
qutip should work when matplotlib it not installed, but types hints in distribution don't work without it.
Could you fix it in this PR.

Comment thread qutip/animation.py Outdated
Co-authored-by: Eric Giguère <[email protected]>
@coveralls

coveralls commented Jan 13, 2025

Copy link
Copy Markdown

Coverage Status

coverage: 87.736% (+0.04%) from 87.699%
when pulling 5ef7994 on MathiB123:Distributions_to_visualizations
into d1dda95 on qutip:master.

@Ericgig Ericgig left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you add anim_qfunc in the apidoc.
Also move the distribution section as an automodule under "Graphs and Visualization".

@Ericgig Ericgig merged commit e2b66f7 into qutip:master Jan 14, 2025
@MathiB123 MathiB123 deleted the Distributions_to_visualizations branch January 14, 2025 19:54
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.

3 participants