Skip to content

Fix references to Julia code in split-operator method #274

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

Merged
merged 1 commit into from
Jul 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Frist, we need to set all the initial parameters, including the initial grids in

{% method %}
{% sample lang="jl" %}
[import:4-31, lang:"julia"](code/julia/split_op.jl)
[import:4-32, lang:"julia"](code/julia/split_op.jl)
{% endmethod %}

As a note, when we generate our grid in momentum space `k`, we need to split the grid into two lines, one that is going from `0` to `-kmax` and is then discontinuous and goes from `kmax` to `0`.
Expand All @@ -64,7 +64,7 @@ Afterwards, we turn them into operators:

{% method %}
{% sample lang="jl" %}
[import:32-41, lang:"julia"](code/julia/split_op.jl)
[import:34-42, lang:"julia"](code/julia/split_op.jl)
{% endmethod %}

Here, we use a standard harmonic potential for the atoms to sit in and a gaussian distribution for an initial guess for the probability distribution.
Expand All @@ -75,7 +75,7 @@ And finally go step-by-step through the simulation:

{% method %}
{% sample lang="jl" %}
[import:42-69, lang:"julia"](code/julia/split_op.jl)
[import:44-70, lang:"julia"](code/julia/split_op.jl)
{% endmethod %}

And that's it.
Expand Down