pytc.solver.bug_ccsd.QuadraticOperator

class pytc.solver.bug_ccsd.QuadraticOperator(t1, U, S, direct, B=None, *, block=8, resident=True, apply_rows=8192)[source]

Bases: object

Exact quadratic operator X built once per state, applied as X @ M.

The row blocks of Y = (X_occ + F)/2 are formed once on the device (X_occ is pair-symmetric, so X = Y + Y^T). resident=True keeps the Y row panels on the device (nov^2 doubles). resident=False parks only the upper triangle of the symmetric X in host RAM (nov^2/2 doubles) and streams it back per application. Row panel J stores X[J, J.start:]; the part of Y left of the diagonal is transposed on the device and added into the earlier panels.

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.

__hash__

Return hash(self).

__init__

B = (B_oo, B_ov, B_vv) adds the dressed-integral parts; without it X holds the terms quadratic in T only.

__init_subclass__

This method is called when a class is subclassed.

__le__

Return self<=value.

__lt__

Return self<value.

__matmul__

__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__

__dict__

__doc__

__module__

__weakref__

list of weak references to the object