Skip to main content

gaussian_wavepacket

Function gaussian_wavepacket 

Source
pub fn gaussian_wavepacket(
    x0: f64,
    k0: f64,
    sigma: f64,
    x_grid: &[f64],
) -> Vec<Complex>
Expand description

Generate a Gaussian wave packet centered at x0 with momentum k0.