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:
objectExact 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=Truekeeps the Y row panels on the device (nov^2 doubles).resident=Falseparks 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