HarmonicOscillatorBasis

Provides a concrete implementation of RepresentationBasis using the H.O. Need to make it handle units a bit better. Currently 1D, need to make multidimensional in the future.

Properties and Methods

name: str

 

__init__(self, n_quanta, m=None, re=None, dimensionless=True): 

 

p(self, n): 

 

pmatrix_ho(n): 

There’s one big subtlety to what we’re doing here, which is that for efficiency reasons we return an entirely real matrix The reason for that is we assumed people would mostly use it in the context of stuff like pp, pQp, or pQQp, in which case the imaginary part pulls out and becomes a negative sign We actually use this assumption across all of our representations

  • n: Any

    No description…

  • :returns: sp.csr_matrix

    No description…

 

x(self, n): 

 

qmatrix_ho(n): 
  • n: Any

    No description…

  • :returns: sp.csr_matrix

    No description…

Examples


Edit Examples or Create New Examples
Edit Template or Create New Template
Edit Docstrings