The WaveBlocks Project
@author: R. Bourquin @copyright: Copyright (C) 2010, 2011, 2012 R. Bourquin @license: Modified BSD License
This class represents a vector valued quantum state as used in the vector valued time-dependent Schroedinger equation. The state is composed of where is a single wavefunction component.
Returns: | The grid nodes the wave function values belong to. |
---|
Calculate the norm of the whole vector or some individual components . The calculation is done in momentum space.
Parameters: |
|
---|---|
Returns: | The norm of or a list of the norms of all components . (Depending on the optional arguments.) |
Returns: | The number of components the vector consists of. |
---|
Return the wave function values for each component of .
Returns: | A list with the values of all components evaluated on the grid nodes . |
---|
Calculate the kinetic energy of the different components.
Parameters: |
|
---|---|
Returns: | A list with the kinetic energies of the individual components or the overall kinetic energy of the wavefunction. (Depending on the optional arguments.) |
Calculate the potential energy of the different components.
Parameters: |
|
---|---|
Returns: | A list with the potential energies of the individual components or the overall potential energy of the wavefunction. (Depending on the optional arguments.) |
Assign a new grid to the wavefunction. All values are regarded to belong to these grid nodes.
Parameters: | grid – The grid values as an numeric array. |
---|
Assign new function values for each component of .
Parameters: | values – A list with the new values of all the . |
---|---|
Raises ValueError: | |
If the list values has the wrong number of entries. |