Wavepacket

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

Class documentation

class WaveBlocksND.Wavepacket(parameters)[source]

This class is an abstract interface to wavepackets in general.

clone()[source]

Clone the wavepacket. Return a new copy of the wavepacket and make sure that all references between the two wavepackets get broken.

Raise:NotImplementedError Abstract interface.
gen_id()[source]

Generate an (unique) ID per wavepacket instance.

Note

The packet id is a string of length 32 because this is exactly the length of an ‘md5’ digest in hex representation.

get_dimension()[source]
Returns:The space dimension D of the wavepacket \Psi.
get_id()[source]

Return the packet ID of this wavepacket instance. The ID may be used for storing packets in associative lists.

Returns:The ID of the current instance.
get_number_components()[source]
Returns:The number N of components the wavepacket \Psi has.
set_id(anid)[source]

Manually set a new ID for the current wavepacket instance.

Parameters:anid (str) – The new ID.