lime/wpd.py
def gwp(x, a, x0=0., p0=0.):
    """
    a Gaussian wave packet centered at x0, with momentum k0
    """
    return (a/np.sqrt(np.pi))**(-0.25)*\
        np.exp(-0.5 * a * (x - x0)**2 + 1j * (x-x0) * p0)

    a Gaussian wave packet centered at x0, with momentum k0
    
a Gaussian wave packet centered at x0, with momentum k0
a Gaussian wave packet centered at x0 with momentum k0
def gwp(x, a, x0=0., p0=0.):
    return (a/np.sqrt(np.pi))**(-0.25)*\
        np.exp(-0.5 * a * (x - x0)**2 + 1j * (x-x0) * p0)
def gwp ( x , a , x0 = 0. , p0 = 0. ) : return ( a / np . sqrt ( np . pi ) ) ** ( - 0.25 ) * np . exp ( - 0.5 * a * ( x - x0 ) ** 2 + 1j * ( x - x0 ) * p0 )
a Gaussian wave packet centered at x0, with momentum k0
a Gaussian wave packet centered at x0 with momentum k0
"""
    a Gaussian wave packet centered at x0, with momentum k0
    """
x
a
x0
p0