ExpansionRepresentation

Provides support for terms that look like 1/2 pGp + 1/2 dV/dQdQ QQ by computing each term on its own

 

__init__(self, coeffs, computers, basis, name=None, logger=None, memory_constrained=False): 
  • coeffs: Iterable[float]

    The expansion coefficients

  • compute: Iterable[callable | Operator]

    the functions that turns indices into values

  • n_quanta: tuple[int]

    the total quanta used in the representations (necessary for shape reasons)

 

@property
is_diagonal(self): 

 

@property
is_zero(self): 

 

@property
skipped_indices(self): 
  • :returns: _

 

clear_cache(self): 

 

__rmul__(self, other): 

 

__mul__(self, other): 

 

__add__(self, other): 

 

get_brakets(self, states, check_orthogonality=True, memory_constrained=False): 

 

get_element(self, n, m): 

 

@property
chunk_size(self): 

 

@property
selection_rules(self): 
  • :returns: _

 

@property
selection_rule_steps(self): 
  • :returns: _

 

get_transformed_space(self, space, rules=None, parallelizer=None, logger=None, **opts): 

Returns the state space obtained by using the held operators to transform space

  • space: BasisStateSpace
  • :returns: SelectionRuleStateSpace

 

__repr__(self): 

Feedback

Examples

Templates

Documentation