PositionHAWPpsi¶
About the PositionHAWPpsi
class¶
The WaveBlocks Project
@author: R. Bourquin @copyright: Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2016 R. Bourquin @license: Modified BSD License
Inheritance diagram¶
Class documentation¶
-
class
WaveBlocksND.
PositionHAWPpsi
[source]¶ This class implements the computation of the action of the position operator applied a new-kind Hagedorn wavepacket .
-
apply_position
(wavepacket, *, component=None, as_packet=True)¶ Compute the effect of the position operator on the basis functions of a component of the Hagedorn wavepacket .
Parameters: - wavepacket (A
HagedornWavepacketBase
subclass instance.) – The wavepacket containing . - component (Integer or
None
.) – The index of the component . - as_packet (Boolean, default is
True
.) – Whether to return a full packet.
Returns: A list of length or a single pair of extended basis shapes and new coefficients . If requested, copies of the original wavepacket are returned with these new values set. There are packets, one for each space variable component of the position operator.
- wavepacket (A
-
apply_position_component
(wavepacket, component)[source]¶ Compute the effect of the position operator on the basis functions of a component of the new-kind Hagedorn wavepacket .
Parameters: - wavepacket (A
HagedornWavepacketBase
subclass instance.) – The wavepacket containing . - component (Integer.) – The index of the component .
Returns: Extended basis shape and new coefficients for component . The coefficients are stored column-wise with one column per dimension . The array is of shape .
- wavepacket (A
-