BasisTransformationHAWP

About the BasisTransformationHAWP 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

Inheritance diagram of BasisTransformationHAWP

Class documentation

class WaveBlocksND.BasisTransformationHAWP(potential, builder=None)[source]

This class implements basis transformations of Hagedorn wavepackets \Psi(x) between the canonical basis of and the basis \Lambda(x) spanned by the eigenvectors \nu_i(x) of the potential V(x).

__init__(potential, builder=None)[source]

Create a new BasisTransformationHAWP instance for a given potential matrix V(x).

Parameters:
  • potential (A MatrixPotential instance.) – The potential underlying the basis transformation.
  • builder (A Quadrature subclass instance.) – An object that can compute this matrix.
set_matrix_builder(builder)[source]

Set the matrix builder. It is responsible for computing the matrix elements \langle\phi_i|V_{i,j}|\phi_j\rangle. This matrix is used during the basis transformation.

Parameters:builder (A Quadrature subclass instance.) – An object that can compute this matrix.
transform_to_canonical(wavepacket)[source]

Transform the wavepacket \Psi given in the eigenbasis to the canonical basis.

Note that this method acts destructively on the given Wavepacket instance. If this is not desired, clone the packet before handing it over to this method.

Parameters:wavepacket (A Wavepacket subclass instance.) – The Hagedorn wavepacket to transform.
Returns:Another Wavepacket instance containing the transformed wavepacket \Psi^\prime.
transform_to_eigen(wavepacket)[source]

Transform the wavepacket \Psi^\prime given in the canonical basis to the eigenbasis.

Note that this method acts destructively on the given Wavepacket instance. If this is not desired, clone the packet before handing it over to this method.

Parameters:wavepacket (A Wavepacket subclass instance.) – The Hagedorn wavepacket to transform.
Returns:Another Wavepacket instance containing the transformed wavepacket \Psi.