-
-
Notifications
You must be signed in to change notification settings - Fork 360
Split op updates #249
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
jiegillet
merged 10 commits into
algorithm-archivists:master
from
leios:split_op_updates
Jul 28, 2018
Merged
Split op updates #249
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
0a3659c
modifying julia split_op code with imaginary time evolution.
leios f1f1904
Merge branch 'master' into split_op_updates
leios 667d9fc
adding largescale updates to quantum sysmtes and split_op
leios 3f2cfd7
adding plotting intructions to julia file.
leios 66dc991
revisions to the bulk text
leios 3b292f4
Merge branch 'master' into split_op_updates
leios 7647b7a
adding images and fixing typos.
leios 2b31901
smallscale changes to a large number of things.
leios fccbe28
updating real time gif.
leios cf53249
formatting LaTeX
leios File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# We are calculating the energy to check <Psi|H|Psi> | ||
function calculate_energy(wfc, H_k, H_r, dx) | ||
# Creating momentum and conjugate wavefunctions | ||
wfc_k = fft(wfc_r) | ||
wfc_c = conj(wfc_r) | ||
|
||
# Finding the momentum and real-space energy terms | ||
energy_k = wfc_c.*ifft((H_k) .* wfc_k) | ||
energy_r = wfc_c.* H_r .* wfc_r | ||
|
||
# Integrating over all space | ||
energy_final = 0 | ||
for i = 1:length(energy_k) | ||
energy_final += real(energy_k[i] + energy_r[i]) | ||
end | ||
|
||
return energy_final*dx | ||
end |
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is it necessary to renormalize at every time step? I can't quite remember.
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.
Sorry, I saw later you commented on this. Basically if you don't renormalize the values all fly to 0, right?