The WaveBlocks Project
@author: R. Bourquin @copyright: Copyright (C) 2010, 2011, 2012 R. Bourquin @license: Modified BSD License
This class represents inhomogeneous vector valued wavepackets
.
The coefficients
of the linear combination for each component
.
Evaluete the Hagedorn wavepacket
at the given nodes
.
| Parameters: |
|
|---|---|
| Returns: | A list of arrays or a single array containing the values of the |
Evaluate the Hagedorn functions
recursively at the given nodes
.
| Parameters: |
|
|---|---|
| Returns: | Returns a twodimensional array |
Generate an (unique) ID per wavepacket instance.
| Returns: | The size of the basis, i.e. the number of . |
|---|
| Returns: | The coefficients of all components as a single long column vector. |
|---|
Returns the coefficients
for some components
of
.
| Parameters: | component – The index of the coefficients we want to get. |
|---|---|
| Returns: | The coefficients either for all components
or for a specified one. |
Return the packet ID of this wavepacket instance. The ID may be used for storing packets in associative lists.
Calculate the
norm of the wavepacket
.
| Parameters: |
|
|---|---|
| Returns: | A list containing the norms of all components |
| Returns: | The number of components the wavepacket has. |
|---|
Get the Hagedorn parameters
of each component
of the wavepacket
.
| Parameters: |
|
|---|---|
| Returns: | A list with all the sets |
Return the InhomogeneousQuadrature instance used for evaluating brakets.
| Returns: | The current instance InhomogeneousQuadrature. |
|---|
Calculate the effect of
on a component
of the Hagedorn wavepacket
.
| Parameters: | component – The index of the component on which we apply the above operator. |
|---|---|
| Returns: | The modified coefficients. |
Calculate the kinetic energy
of the wavepacket componentwise.
| Parameters: | summed – Wheter to sum up the individual integrals . |
|---|---|
| Returns: | The kinetic energy of the wavepacket’s components or the overall kinetic energy of . |
Number of components
the wavepacket
has got.
Data structure that contains the Hagedorn parameter sets
of each component
.
The parameter values are initialized to the Harmonic Oscillator Eigenfunctions
Calculate the potential energy
of the wavepacket componentwise.
| Parameters: |
|
|---|---|
| Returns: | The potential energy of the wavepacket’s components |
Project the Hagedorn wavepacket into the canonical basis.
| Parameters: | potential – The potential whose eigenvectors are used for the transformation. |
|---|
Note
This function is expensive and destructive! It modifies the coefficients of the self instance.
Project the Hagedorn wavepacket into the eigenbasis of a given potential
.
| Parameters: | potential – The potential whose eigenvectors are used for the transformation. |
|---|
Note
This function is expensive and destructive! It modifies the coefficients of the self instance.
An object that can compute brakets via quadrature.
Set the size of the basis of a given component or all components.
| Parameters: |
|
|---|
Set a single coefficient
of the specified component
of
.
| Parameters: |
|
|---|---|
| Raises ValueError: | |
For invalid indices |
|
Set the coefficients for all components
simultaneously.
| Parameters: | vector – The coefficients of all components as a single long column vector. |
|---|
Note
This function does NOT copy the input data! This is for efficiency as this routine is used in the innermost loops.
Update the coefficients
of
.
| Parameters: |
|
|---|---|
| Raises ValueError: | |
For invalid indices |
|
Note
This function can either set new coefficients for a single component
only if the component attribute is set or for all components simultaneously if
values is a list of arrays.
Manually set an ID for the current wavepacket instance.
Set the Hagedorn parameters
of each component
of the wavepacket
.
| Parameters: |
|
|---|
Set the InhomogeneousQuadrature instance used for evaluating brakets.
| Parameters: | quadrature – The new InhomogeneousQuadrature instance. May be None
to use a dafault one with a quadrature rule of order . |
|---|
Transform the wavepacket to Fourier space.
| Parameters: | assign – Whether to assign the transformation to this packet or return a cloned packet. |
|---|
Note
This is the inverse of the method to_real_space().
Transform the wavepacket to real space.
| Parameters: | assign – Whether to assign the transformation to this packet or return a cloned packet. |
|---|
Note
This is the inverse of the method to_fourier_space().