pytc.solver.bug_core.LowRankResult

class pytc.solver.bug_core.LowRankResult(energy, U, S, iterations, converged, stop_reason, rank_hist=<factory>, e_hist=<factory>, t1=None, diagnostics=None)[source]

Bases: object

What every BUG solver returns.

The doubles amplitude is T = U diag(S) U^T in the pair space (U shaped (nocc, nvir, rank) or (nov, rank) as the solver keeps it). energy is the correlation energy, None only for amplitude-only building blocks. diagnostics holds the solver-specific detail (timings, augmentation widths, memory plan, …).

Methods

__delattr__

Implement delattr(self, name).

__dir__

Default dir() implementation.

__eq__

Return self==value.

__format__

Default object formatter.

__ge__

Return self>=value.

__getattribute__

Return getattr(self, name).

__getstate__

Helper for pickle.

__gt__

Return self>value.

__init__

__init_subclass__

This method is called when a class is subclassed.

__le__

Return self<=value.

__lt__

Return self<value.

__ne__

Return self!=value.

__new__

__reduce__

Helper for pickle.

__reduce_ex__

Helper for pickle.

__repr__

Return repr(self).

__setattr__

Implement setattr(self, name, value).

__sizeof__

Size of object in memory, in bytes.

__str__

Return str(self).

__subclasshook__

Abstract classes can override this to customize issubclass().

Attributes

__annotations__

__dataclass_fields__

__dataclass_params__

__dict__

__doc__

__hash__

__match_args__

__module__

__weakref__

list of weak references to the object

diagnostics

t1

energy

U

S

iterations

converged

stop_reason

rank_hist

e_hist

Parameters:
  • energy (float | None)

  • U (Any)

  • S (Any)

  • iterations (int)

  • converged (bool)

  • stop_reason (Literal['amplitude-step', 'energy-plateau', 'maxiter'])

  • rank_hist (list[int])

  • e_hist (list[float])

  • t1 (Any)

  • diagnostics (Any)

energy: float | None
U: Any
S: Any
iterations: int
converged: bool
stop_reason: Literal['amplitude-step', 'energy-plateau', 'maxiter']
rank_hist: list[int]
e_hist: list[float]
t1: Any = None
diagnostics: Any = None