The WaveBlocks Project
This file contains the class which represents a homogeneous Hagedorn wavepacket.
@author: R. Bourquin @copyright: Copyright (C) 2010, 2011 R. Bourquin @license: Modified BSD License
This class represents homogeneous 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   | 
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 the wavepacket 
.
| Parameters: | 
  | 
|---|---|
| Returns: | The Hagedorn parameters   | 
Return the HomogeneousQuadrature instance used for evaluating brakets.
| Returns: | The current instance HomogeneousQuadrature. | 
|---|
Compute the effect of the operator 
 on the basis
functions of 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.
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: | 
  | 
|---|
Note
This function is expensive and destructive! It modifies the coefficients of the self instance if the assign parameter is True (default).
Project the Hagedorn wavepacket into the eigenbasis of a given potential 
.
| Parameters: | 
  | 
|---|
Note
This function is expensive and destructive! It modifies the coefficients of the self instance if the assign parameter is True (default).
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 the wavepacket 
.
| Parameters: | 
  | 
|---|
Set the HomogeneousQuadrature instance used for evaluating brakets.
| Parameters: | quadrature – The new HomogeneousQuadrature instance. May be None
to use a dafault one with a quadrature rule of order  . | 
|---|