pygpe.spinhalf.wavefunction.SpinHalfWavefunction#
- class pygpe.spinhalf.wavefunction.SpinHalfWavefunction(grid)#
- __init__(grid)#
Constructs the wavefunction object.
Methods
__init__(grid)Constructs the wavefunction object.
add_noise(components, mean, std_dev)Adds noise to the specified wavefunction components using a normal distribution.
apply_phase(phase[, components])Applies a given phase to the specified condensate components.
density(components)Calculates the density of the specified component(s).
fft()Fourier transforms real-space components and updates Fourier-space components.
ifft()Inverse Fourier transforms Fourier-space components and updates real-space components.
set_wavefunction(plus_component, minus_component)Set the wavefunction components to the specified arrays.