Skip to content

Commit

Permalink
v0.2.2 (#11)
Browse files Browse the repository at this point in the history
* bug fix: wrong sign in kinetic operator
  • Loading branch information
savowe committed Nov 11, 2020
1 parent ebf4af8 commit b262ac0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 18 deletions.
3 changes: 2 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
author = "Sascha Vowe, Bastian Leykauf"

# The full version, including alpha/beta/rc tags
release = "0.2.1"

release = "0.2.2"


# -- General configuration ---------------------------------------------------
Expand Down
26 changes: 13 additions & 13 deletions docs/source/examples.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions pytalises/propagator.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def nondiag_potential_prop(self, delta_t):
"xyzij,xyzj,xyzkj,xyzk->xyzi",
self.V_eval_array,
ne.evaluate(
"exp(1j*eigval*delta_t)",
"exp(-1j*eigval*delta_t)",
local_dict={"eigval": self.V_eval_eigval_array, "delta_t": delta_t},
),
np.conjugate(self.V_eval_array),
Expand All @@ -231,7 +231,7 @@ def diag_potential_prop(self, delta_t):
np.einsum(
"xyzii,xyzi->xyzi",
ne.evaluate(
"exp(1j*V*delta_t)",
"exp(-1j*V*delta_t)",
local_dict={"V": self.V_eval_array, "delta_t": delta_t},
),
self.psi._amp,
Expand All @@ -252,7 +252,7 @@ def kinetic_prop(self, delta_t):
np.einsum(
"xyz,xyzi->xyzi",
ne.evaluate(
"exp(1j*alpha*delta_t*(kx**2+ky**2+kz**2))",
"exp(-1j*alpha*delta_t*(kx**2+ky**2+kz**2))",
local_dict={
"kx": self.psi.kmesh[0],
"ky": self.psi.kmesh[1],
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

setup(
name="pytalises",
version="0.2.1",
version="0.2.2",

description="""
TALISES (This Ain't a LInear Schrödinger Equation Solver) is an easy-to-use Python implementation
of the Split-Step Fourier Method, for numeric calculation of a wave function's time-propagation
Expand Down

0 comments on commit b262ac0

Please sign in to comment.