Operator

Provides a (usually) lazy representation of an operator, which allows things like QQQ and pQp to be calculated block-by-block

Properties and Methods

 

__init__(self, funcs, quanta): 
  • funcs: callable | Iterable[callable]

    The functions use to calculate representation

  • quanta: int | Iterable[int]

    The number of quanta to do the deepest-level calculations up to

 

@property
ndim(self): 

 

@property
shape(self): 

 

@property
tensor(self): 

 

get_inner_indices(self): 

Gets the n-dimensional array of ijkl (e.g.) indices that functions will map over Basically returns the indices of the inner-most tensor

  • :returns: _

    No description…

 

__getitem__(self, item): 

 

get_individual_elements(self, idx): 

TBH I can’t remember what this function is supposed to do ?_?

  • idx: Any

    No description…

  • :returns: _

    No description…

 

get_elements(self, idx): 

 

product_operator_tensor(self): 

Generates the tensor created from the product of funcs over the dimensions dims, Note that this isn’t a totally legit tensor since it’s ragged

  • funcs: Any

    No description…

  • dims: Any

    No description…

  • :returns: _

    No description…

Examples


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