kpm.svect

Create starting vectors for KPM algorithms.

Functions

kpm.svect.ind(length, index=0, dtype=<type 'float'>)[source]

Return a specific basis state of the site-occupation basis (standard tight-binding basis), i.e. a vector of length length with the element at the given index index equal to 1 and the rest equal to 0, with datatype dtype.

kpm.svect.randind(length, dtype=<type 'float'>)[source]

Return a random basis state of the site-occupation basis (standard tight-binding basis), i.e. a vector of length length with exactly one random element equal to 1 and the rest equal to 0, with datatype dtype.

kpm.svect.randphase(length, dtype=<type 'complex'>)[source]

Return a normalized random-phase vector.

Indices and tables

Table Of Contents

Previous topic

kpm

Next topic

kpm.disc

This Page