TermComputer
A TermComputer provides a simple interface to compute only some elements of high-dimensional tensors.
It takes a tensor shape and a function to compute tensor elements.
The compute
function should be able to take a block of indices and return all the matrix elements.
Properties and Methods
__init__(self, compute, n_quanta):
@property
diag(self):
get_element(self, n, m):
Computes term elements. Determines first whether it needs to pull single elements or blocks of them.
n
:Any
No description…
m
:Any
No description…
:returns
:_
No description…
__getitem__(self, item):
Examples
Edit Examples or
Create New Examples
Edit Template or
Create New Template
Edit Docstrings