-
Notifications
You must be signed in to change notification settings - Fork 50
A notebook for qutip.distributions #120
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
Conversation
| from qutip import * | ||
| from qutip.distributions import * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from ... import * hide what is imported.
For tutorials, we should always import implicitly what we need.
We also don't shorten qutip to qt in tutorials.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I modified it just now. Also removed example for WignerDistribution, QDistribution and TwoModeQuadratureCorrelations because already in visualization-exposition.md
Examples for removed material are already in visualization-exposition.md
|
|
||
| Optionally, define a range of values for each coordinate with the parameter called `extent`. Also, define a number of data points inside the given range with the optional parameter called `steps`. From this information, the distribution is generated and can be visualized with the `.visualize()` method. | ||
|
|
||
| It is also possible to calculate, along a given axis, the marginal distribution with `.marginal()` or the projection distribution with `.project()`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
marginal and project are only useful for 2d distributions.
It's not used for harmonic oscillator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed that
|
Could you merge the latest change in the main branch. |
A notebook with examples on how to use the distributions currently in qutip.distributions.