Skip to main content

coherent_state

Function coherent_state 

Source
pub fn coherent_state(
    n_max: usize,
    alpha: Complex,
    x_grid: &[f64],
    omega: f64,
    mass: f64,
    hbar: f64,
) -> Vec<Complex>
Expand description

Generate a coherent state of the harmonic oscillator.