RepresentationBasis
Metaclass for representations. Requires concrete implementations of the position and momentum operators.
Properties and Methods
name: str
__init__(self, function_generator, n_quanta):
function_generator
:Any
No description…
n_quanta
:int
numbers of quanta
__getitem__(self, item):
__repr__(self):
p(self, n):
Generates the momentum matrix up to n-quanta
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`: `_`
>No description...
x(self, n):
Generates the coordinate matrix up to n-quanta
n
:Any
No description…
:returns
:_
No description…
@property
operator_mapping(self):
operator(self, *terms):
representation(self, *terms):
Provides a representation of a product operator specified by ‘terms’
terms
:Any
No description…
:returns
:_
No description…
Examples
Edit Examples or
Create New Examples
Edit Template or
Create New Template
Edit Docstrings